class ConcourseResource::RubyGems::In
In
Step
Public Instance Methods
download()
click to toggle source
# File lib/concourse-resource/rubygems/in.rb, line 19 def download @download ||= HTTParty.get "https://#{host}/gems/#{filename}" end
fetch!()
click to toggle source
# File lib/concourse-resource/rubygems/in.rb, line 23 def fetch! File.write "#{workdir}/#{filename}", download end
filename()
click to toggle source
# File lib/concourse-resource/rubygems/in.rb, line 12 def filename @filename ||= "#{gem}-#{version.fetch 'number'}.gem" rescue KeyError STDERR.puts 'config.version is missing number', version abort end