Sha256: 662d5e13e519f81166f756273637a479a9aa512031df72cf567d68bbc999837e
Contents?: true
Size: 601 Bytes
Versions: 2
Compression:
Stored size: 601 Bytes
Contents
class Gem::Commands::TumbleCommand < Gem::Command def description 'Enable or disable Gemcutter as your primary gem source.' end def initialize super 'tumble', description end def execute say "Thanks for using Gemcutter!" tumble show_sources end def tumble if Gem.sources.include?(URL) Gem.sources.delete URL Gem.configuration.write else Gem.sources.unshift URL Gem.configuration.write end end def show_sources puts "Your gem sources are now:" Gem.sources.each do |source| puts "- #{source}" end end end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
qrush-gemcutter-0.0.6 | lib/commands/tumble.rb |
gemcutter-0.0.6 | lib/commands/tumble.rb |