lib/cicd/builder/chefrepo-manifest.rb in chefrepo-manifest-builder-0.1.3 vs lib/cicd/builder/chefrepo-manifest.rb in chefrepo-manifest-builder-0.1.4
- old
+ new
@@ -7,14 +7,19 @@
require 'cicd/builder/chefrepo-manifest/version'
module ChefRepoManifest
class Runner < Manifest::Runner
+ require 'cicd/builder/chefrepo-manifest/mixlib/build'
+ include CiCd::Builder::ChefRepoManifest::Build
+ require 'cicd/builder/chefrepo-manifest/mixlib/repo'
+ include CiCd::Builder::ChefRepoManifest::Repo
# ---------------------------------------------------------------------------------------------------------------
def initialize()
super
+ @klass = 'CiCd::Builder::ChefRepoManifest'
@default_options[:builder] = VERSION
end
# ---------------------------------------------------------------------------------------------------------------
def getBuilderVersion
@@ -27,9 +32,12 @@
end
# ---------------------------------------------------------------------------------------------------------------
def setup()
$stdout.write("ChefRepoManifestBuilder v#{CiCd::Builder::ChefRepoManifest::VERSION}\n")
+ @default_options[:env_keys].select{|key| key !~ /^CLASSES/} << %w(
+ REPO_PRODUCTS
+ )
super
end
end
end