1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/tool/get-config_files
nobu 0b57f67531 config_files.rb: show failure
* tool/config_files.rb (ConfigFiles.download): show failed URI.
  [ruby-core:61792] [Bug #9690]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45494 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-04-01 08:29:36 +00:00

12 lines
259 B
Ruby
Executable file

#!/usr/bin/ruby
require File.expand_path('../config_files', __FILE__)
ARGV.each {|n|
STDOUT.print "Downloading #{n}..."; STDOUT.flush
begin
ConfigFiles.download(n)
STDOUT.puts
rescue => e
STDOUT.puts
abort("#{$0}: #{e.message}")
end
}