Class: CiCd::Builder::ChefRepoManifest::Runner

Inherits:
Manifest::Runner
  • Object
show all
Includes:
Build, Repo
Defined in:
lib/cicd/builder/chefrepo-manifest.rb

Instance Method Summary collapse

Methods included from Repo

#getRepoClass

Methods included from Build

#prepareBuild

Constructor Details

#initializeRunner




18
19
20
21
22
# File 'lib/cicd/builder/chefrepo-manifest.rb', line 18

def initialize()
  super
  @klass = 'CiCd::Builder::ChefRepoManifest'
  @default_options[:builder] = VERSION
end

Instance Method Details

#getBuilderVersionObject




25
26
27
28
29
30
31
32
# File 'lib/cicd/builder/chefrepo-manifest.rb', line 25

def getBuilderVersion
  {
      version:  VERSION,
      major:    MAJOR,
      minor:    MINOR,
      patch:    PATCH,
  }
end

#setupObject




35
36
37
38
39
40
41
42
# File 'lib/cicd/builder/chefrepo-manifest.rb', line 35

def setup()
  $stdout.write("ChefRepoManifestBuilder v#{CiCd::Builder::ChefRepoManifest::VERSION}\n")
  @default_options[:env_keys] << %w(
                                    REPO_PRODUCTS
                                   )
  @default_options[:env_keys] = @default_options[:env_keys].select{|key| key !~ /^CLASSES/}
  super
end