lib/commands/tumble.rb in gemcutter-0.1.8 vs lib/commands/tumble.rb in gemcutter-0.2.0
- old
+ new
@@ -1,32 +1,13 @@
class Gem::Commands::TumbleCommand < Gem::AbstractCommand
def description
- 'Enable or disable Gemcutter as your primary gem source.'
+ "Deprecated method of upgrading to Gemcutter.org for gem downloads"
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
- say "Your gem sources are now:"
- Gem.sources.each do |source|
- say "- #{source}"
- end
+ say "This command is deprecated, Gemcutter.org is the primary source for gems."
end
end