class Object

Constants

@return [String] Tutorial on creating an sfdx app

Leaps

Global configuration for LeapSalesforce








Public Instance Methods

load_variables_from(file) click to toggle source

If variable is present within LeapSalesforce set it

# File lib/leap_salesforce.rb, line 23
def load_variables_from(file)
  YAML.load_file(file).each do |key, value|
    if respond_to? "#{key}="
      if !send(key).nil?
        logger.info "Ignoring #{key} from #{file} as already set"
      else
        send("#{key}=", value)
      end
    else
      logger.info "LeapSalesforce ignoring unknown attribute '#{key}'"
    end
  end
end