Sha256: 818c1e6e3abd41385dfb1b44f97cd718a97911c93956cf2c4d7635632568f640

Contents?: true

Size: 346 Bytes

Versions: 2

Compression:

Stored size: 346 Bytes

Contents

require 'contracts'

module ConcourseResource
  module RubyGems
    module Support
      # Params for GemResource
      module Source
        Contract None => String
        def gem
          @gem ||= source.fetch 'gem'
        rescue KeyError
          STDERR.puts 'Params is missing gem'
          abort
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
concourse-resource-rubygems-0.1.1 lib/concourse-resource/rubygems/support/source.rb
concourse-resource-rubygems-0.1.0 lib/concourse-resource/rubygems/support/source.rb