method
execute
v2_1_10 -
Show latest stable
- Class:
Gem::Commands::SourcesCommand
execute()public
No documentation available.
# File lib/rubygems/commands/sources_command.rb, line 163
def execute
clear_all if options[:clear_all]
source_uri = options[:add]
add_source source_uri if source_uri
source_uri = options[:remove]
remove_source source_uri if source_uri
update if options[:update]
list if list?
end