Sha256: bc34270ee1144e932c2f90739b278cd45760e1a4b02c618a25340953da1093f8
Contents?: true
Size: 607 Bytes
Versions: 1
Compression:
Stored size: 607 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" rescue KeyError STDERR.puts 'config.version is missing number', version abort 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
concourse-resource-rubygems-0.3.3 | lib/concourse-resource/rubygems/in.rb |