Sha256: 2b073a26fe587484b038211b28bfe69d2ba76a1ba67bac6e7884ac6d892f62f9

Contents?: true

Size: 1.59 KB

Versions: 10

Compression:

Stored size: 1.59 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] << %w(
                                            REPO_PRODUCTS
                                           )
          @default_options[:env_keys] = @default_options[:env_keys].select{|key| key !~ /^CLASSES/}
          super
        end

      end
    end

  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
chefrepo-manifest-builder-0.2.4 lib/cicd/builder/chefrepo-manifest.rb
chefrepo-manifest-builder-0.2.3 lib/cicd/builder/chefrepo-manifest.rb
chefrepo-manifest-builder-0.2.2 lib/cicd/builder/chefrepo-manifest.rb
chefrepo-manifest-builder-0.2.1 lib/cicd/builder/chefrepo-manifest.rb
chefrepo-manifest-builder-0.2.0 lib/cicd/builder/chefrepo-manifest.rb
chefrepo-manifest-builder-0.1.9 lib/cicd/builder/chefrepo-manifest.rb
chefrepo-manifest-builder-0.1.8 lib/cicd/builder/chefrepo-manifest.rb
chefrepo-manifest-builder-0.1.7 lib/cicd/builder/chefrepo-manifest.rb
chefrepo-manifest-builder-0.1.6 lib/cicd/builder/chefrepo-manifest.rb
chefrepo-manifest-builder-0.1.5 lib/cicd/builder/chefrepo-manifest.rb