Top Level Namespace

Defined Under Namespace

Modules: DataRelationships, LeapSalesforce, Salesforce, SoqlEnum, SoqlGlobalData, SoqlGlobalObjectData, SoqlObjectDescribe, SoqlSettings Classes: MetaDataHandler, MockHandler, SoqlData, SoqlHandler, String, Time

Constant Summary collapse

Leaps =
LeapSalesforce
'https://trailhead.salesforce.com/content/learn/projects/automate-cicd-with-gitlab/enable-dev-hub-and-create-a-connected-app'

Instance Method Summary collapse

Instance Method Details

#load_variables_from(file) ⇒ Object

If variable is present within LeapSalesforce set it



25
26
27
28
29
30
31
32
33
34
35
36
37
# File 'lib/leap_salesforce.rb', line 25

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