class Gem::Commands::SourcesCommand

def description # :nodoc:

:nodoc:
def description # :nodoc:
  <<-EOF
byGems fetches gems from the sources you have configured (stored in your
.gemrc).
e default source is https://rubygems.org, but you may have other sources
nfigured.  This guide will help you update your sources or configure
urself to use your own gem server.
thout any arguments the sources lists your currently configured sources:
$ gem sources
*** CURRENT SOURCES ***
https://rubygems.org
is may list multiple sources or non-rubygems sources.  You probably
nfigured them before or have an old `~/.gemrc`.  If you have sources you
 not recognize you should remove them.
byGems has been configured to serve gems via the following URLs through
s history:
http://gems.rubyforge.org (RubyGems 1.3.5 and earlier)
http://rubygems.org       (RubyGems 1.3.6 through 1.8.30, and 2.0.0)
https://rubygems.org      (RubyGems 2.0.1 and newer)
nce all of these sources point to the same set of gems you only need one
 them in your list.  https://rubygems.org is recommended as it brings the
otections of an SSL connection to gem downloads.
 add a source use the --add argument:
  $ gem sources --add https://rubygems.org
  https://rubygems.org added to sources
byGems will check to see if gems can be installed from the source given
fore it is added.
 remove a source use the --remove argument:
  $ gem sources --remove https://rubygems.org/
  https://rubygems.org/ removed from sources
  EOF
end