method
parse!
parse!(args)
public
Hide source
# File railties/lib/commands/plugin.rb, line 598 def parse!(args) options.parse!(args) args = ['http://wiki.rubyonrails.org/rails/pages/Plugins'] if args.empty? args.each do |uri| scrape(uri) do |repo_uri| catch(:next_uri) do if @prompt begin $stdout.print "Add #{repo_uri}? [Y/n] " throw :next_uri if $stdin.gets !~ /^y?$/i rescue Interrupt $stdout.puts exit 1 end elsif @list puts repo_uri throw :next_uri end Repositories.instance.add(repo_uri) puts "discovered: #{repo_uri}" if $verbose or !@prompt end end end Repositories.instance.save end