lib/concourse-resource/rubygems/support/source.rb in concourse-resource-rubygems-0.1.7 vs lib/concourse-resource/rubygems/support/source.rb in concourse-resource-rubygems-0.2.0
- old
+ new
@@ -13,9 +13,14 @@
@gem ||= source.fetch 'gem'
rescue KeyError
STDERR.puts 'Params is missing gem'
abort
end
+
+ Contract None => String
+ def host
+ @host ||= source.fetch('host') { 'rubygems.org' }
+ end
end
end
end
end