Sha256: b7874f81d7c2a796f18660968b22076346e066dd8ba877450eeccea5e84fb710

Contents?: true

Size: 1.5 KB

Versions: 1

Compression:

Stored size: 1.5 KB

Contents

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'
        require 'cicd/builder/manifest/mixlib/repo'
        include CiCd::Builder::Manifest::Build
        include CiCd::Builder::Manifest::Repo

        # ---------------------------------------------------------------------------------------------------------------
        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
                                            CLASSES_FILE
                                            CLASSES_MANIFEST_FILE
                                           )
          super
        end

      end
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
manifest-builder-0.6.2 lib/cicd/builder/manifest.rb