lib/sem4r/profile.rb
#
# Return list of profile contained into config file
#
Return list of profile contained into config file
Return list of profile contained into config file
def profiles(profile_file = nil)
        unless profile_file
          config = search_config
          unless config
            raise Sem4rError, "config file 'sem4r' not found"
          end
          profile_file = config.config_file
        end
        yaml = YAML::load(File.open(profile_file))
        profiles = yaml['google_adwords']
        profiles
      end
def profiles ( profile_file = nil ) unless profile_file config = search_config unless config raise Sem4rError , "config file 'sem4r' not found" end profile_file = config . config_file end yaml = YAML :: load ( File . open ( profile_file ) ) profiles = yaml [ 'google_adwords' ] profiles end
Return list of profile contained into config file
Return list of profile contained into config file
# puts "Loaded profiles from #{profile_file}"
profile_file
<not_specific>