Sha256: 284f8b4a0e976b1a1a8a8e2ebc7368fa1003e30d0e8aef7cc2c4d2113e0f1b35

Contents?: true

Size: 745 Bytes

Versions: 4

Compression:

Stored size: 745 Bytes

Contents

require 'json'
require_relative 'step'
require_relative 'support/build_metadata'
require_relative 'support/params'
require_relative 'support/work_dir'

module Fuselage
  class Out < Step
    include Support::BuildMetadata
    include Support::Params
    include Support::WorkDir

    Contract None => HashOf[String, String]
    def version
      fail NotImplementedError
    end

    Contract None => ArrayOf[Maybe[HashOf[String, String]]]
    def metadata
      []
    end

    Contract None => String
    def output
      JSON.dump version: version, metadata: metadata
    end

    Contract None => Any
    def update!
      fail NotImplementedError
    end

    Contract None => String
    def run
      update!
      super
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
concourse-fuselage-0.5.8 lib/concourse-fuselage/out.rb
concourse-fuselage-0.5.7 lib/concourse-fuselage/out.rb
concourse-fuselage-0.5.2 lib/concourse-fuselage/out.rb
concourse-fuselage-0.5.1 lib/concourse-fuselage/out.rb