Sha256: d2e994f0899d9c570e9404625d74263d035264b67912aaf13142920071f9b342
Contents?: true
Size: 607 Bytes
Versions: 18
Compression:
Stored size: 607 Bytes
Contents
class Gem::Commands::TumbleCommand < Gem::AbstractCommand 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 say "Your gem sources are now:" Gem.sources.each do |source| say "- #{source}" end end end
Version data entries
18 entries across 18 versions & 2 rubygems