Sha256: 138654d53e378c5089633da96535596d6985d380a6097c30eab0f66f8fce5d60

Contents?: true

Size: 1.53 KB

Versions: 1

Compression:

Stored size: 1.53 KB

Contents

require 'cicd/builder/manifest'

module CiCd
  module Builder
    _lib=File.dirname(__FILE__)
    $:.unshift(_lib) unless $:.include?(_lib)

    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
          {
              version:  VERSION,
              major:    MAJOR,
              minor:    MINOR,
              patch:    PATCH,
          }
        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

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
chefrepo-manifest-builder-0.1.4 lib/cicd/builder/chefrepo-manifest.rb