Sha256: aac3d2613057cd1e156acc0eb6f502111048fadcf62cae9937baa1042e64d142

Contents?: true

Size: 1.54 KB

Versions: 12

Compression:

Stored size: 1.54 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 = 'CiCd::Builder::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

12 entries across 12 versions & 1 rubygems

Version Path
manifest-builder-0.7.5 lib/cicd/builder/manifest.rb
manifest-builder-0.7.4 lib/cicd/builder/manifest.rb
manifest-builder-0.7.3 lib/cicd/builder/manifest.rb
manifest-builder-0.7.2 lib/cicd/builder/manifest.rb
manifest-builder-0.7.1 lib/cicd/builder/manifest.rb
manifest-builder-0.7.0 lib/cicd/builder/manifest.rb
manifest-builder-0.6.9 lib/cicd/builder/manifest.rb
manifest-builder-0.6.8 lib/cicd/builder/manifest.rb
manifest-builder-0.6.7 lib/cicd/builder/manifest.rb
manifest-builder-0.6.6 lib/cicd/builder/manifest.rb
manifest-builder-0.6.5 lib/cicd/builder/manifest.rb
manifest-builder-0.6.4 lib/cicd/builder/manifest.rb