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