def persist(options, cfg)
      overrides = options[:options]
      overrides.each { |k, v| cfg[k] = v } if overrides
      cfg_file = AgentConfig.store_cfg(options[:agent_name], cfg)
      unless options[:quiet]
        puts "Generated configuration file for #{options[:agent_name]} agent: #{cfg_file}" unless options[:quiet]
      end
      true
    end
def persist(options, cfg)
      overrides = options[:options]
      overrides.each { |k, v| cfg[k] = v } if overrides
      cfg_file = AgentConfig.store_cfg(options[:agent_name], cfg)
      unless options[:quiet]
        puts "Generated configuration file for #{options[:agent_name]} agent: #{cfg_file}" unless options[:quiet]
      end
      true
    end
Write configuration options to file after applying any overrides

 === Parameters
 options(Hash):: Command line options
 cfg(Hash):: Configurations options with which specified options are to be merged

 === Return
 true:: Always return true