class CiCd::Builder::EnvironmentsList::Runner

Public Class Methods

new() click to toggle source

Calls superclass method
# File lib/cicd/builder/environments-list.rb, line 18
def initialize()
  super
  @klass = 'CiCd::Builder::EnvironmentsList'
  @default_options[:builder] = VERSION
end

Public Instance Methods

checkEnvironment() click to toggle source

Calls superclass method
# File lib/cicd/builder/environments-list.rb, line 35
def checkEnvironment()
  @logger.step CLASS+'::'+__method__.to_s
  # We fake some of the keys that the will need later ...
  fakes = @default_options[:env_keys].select{|key| key =~ /^(CLASSES|REPO_PRODUCTS|MANIFEST_FILE)/}
  faked = {}
  fakes.each do |key|
    unless ENV.has_key?(key)
      ENV[key]='faked'
      faked[key] = true
    end
  end
  ret = super
  faked.each do |k,_|
    ENV.delete k
    @default_options[:env_unused].delete k if @default_options[:env_unused]
  end
  @default_options[:env_unused] = @default_options[:env_unused].select{|k| k !~ /^(ARTIFACTORY|AWS_INI)/} if @default_options[:env_unused]
  ret
end
getBuilderVersion() click to toggle source

# File lib/cicd/builder/environments-list.rb, line 25
def getBuilderVersion
  {
      version:  VERSION,
      major:    MAJOR,
      minor:    MINOR,
      patch:    PATCH,
  }
end
setup() click to toggle source

Calls superclass method
# File lib/cicd/builder/environments-list.rb, line 56
def setup()
  $stdout.write("EnvironmentsListBuilder v#{CiCd::Builder::EnvironmentsList::VERSION}\n")
  @default_options[:env_keys] << %w(
                                    ARTIFACTORY_RELEASE_REPO
                                    ARTIFACTORY_ENVIRONMENTS_MODULE
                                   )
  super
end