Method: Gem::Commands::SourcesCommand#list
- Defined in:
- lib/rubygems/commands/sources_command.rb
#list ⇒ Object
:nodoc:
233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 |
# File 'lib/rubygems/commands/sources_command.rb', line 233 def list # :nodoc: if configured_sources header = "*** CURRENT SOURCES ***" list = configured_sources else header = "*** NO CONFIGURED SOURCES, DEFAULT SOURCES LISTED BELOW ***" list = Gem.sources end say header say list.each do |src| say src end end |