Sha256: 28dd5ddc3be981f01fbbf01aa401e1bfad18a928a4fcd6ed4cf711caa440a8fc
Contents?: true
Size: 519 Bytes
Versions: 1
Compression:
Stored size: 519 Bytes
Contents
require 'contracts' require 'concourse-fuselage' require 'concourse-resource/rubygems/core' require 'http' module ConcourseResource module RubyGems # In Step class In < Fuselage::In include Core def filename @filename ||= "#{gem}-#{version.fetch 'number'}.gem" end def download @download ||= HTTP.get "https://#{host}/gems/#{filename}", follow: true end def fetch! File.write "#{workdir}/#{filename}", download.flush end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
concourse-resource-rubygems-0.3.0 | lib/concourse-resource/rubygems/in.rb |