Sha256: d1a20d7b1dd506cbdfc99767612450a6a1997c7de5db3344786664bc36984f12

Contents?: true

Size: 1.07 KB

Versions: 2

Compression:

Stored size: 1.07 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

        # ---------------------------------------------------------------------------------------------------------------
        def initialize()
          super
          @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")
          super
        end

      end
    end

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
chefrepo-manifest-builder-0.1.3 lib/cicd/builder/chefrepo-manifest.rb
chefrepo-manifest-builder-0.1.1 lib/cicd/builder/chefrepo-manifest.rb