require 'cicd/builder/chefrepo' module CiCd module Builder _lib=File.dirname(__FILE__) $:.unshift(_lib) unless $:.include?(_lib) require 'cicd/builder/manifest/version' module Manifest class Runner < ChefRepo::Runner require 'cicd/builder/manifest/mixlib/build' include CiCd::Builder::Manifest::Build def initialize() super @default_options[:builder] = VERSION end # --------------------------------------------------------------------------------------------------------------- def getBuilderVersion { version: VERSION, major: MAJOR, minor: MINOR, patch: PATCH, } end # --------------------------------------------------------------------------------------------------------------- def setup() $stdout.write("ManifestBuilder v#{CiCd::Builder::Manifest::VERSION}\n") @default_options[:env_keys] << %w( MANIFEST_FILE ) super end end end end end