Sha256: d12f95bb5430584118fec7591908dc371f40ca38e0ec492c249f7c83e458846b

Contents?: true

Size: 418 Bytes

Versions: 6

Compression:

Stored size: 418 Bytes

Contents

require 'contracts'

module ConcourseResource
  module RubyGems
    module Support
      # Params for GemResource
      module Source
        include ::Contracts::Core
        include ::Contracts::Builtin

        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

6 entries across 6 versions & 1 rubygems

Version Path
concourse-resource-rubygems-0.1.7 lib/concourse-resource/rubygems/support/source.rb
concourse-resource-rubygems-0.1.6 lib/concourse-resource/rubygems/support/source.rb
concourse-resource-rubygems-0.1.5 lib/concourse-resource/rubygems/support/source.rb
concourse-resource-rubygems-0.1.4 lib/concourse-resource/rubygems/support/source.rb
concourse-resource-rubygems-0.1.3 lib/concourse-resource/rubygems/support/source.rb
concourse-resource-rubygems-0.1.2 lib/concourse-resource/rubygems/support/source.rb