Sha256: 3fe483d860e6f9bc070a4b5da270b11ea5cf902e5afe208799d3e01b65c9b673

Contents?: true

Size: 414 Bytes

Versions: 107

Compression:

Stored size: 414 Bytes

Contents

require 'rubygems/command_manager'

##
# This is an example of exactly what NOT to do.
#
# DO NOT include code like this in your rubygems_plugin.rb

class Gem::Commands::InterruptCommand < Gem::Command

  def initialize
    super('interrupt', 'Raises an Interrupt Exception', {})
  end

  def execute
    raise Interrupt, "Interrupt exception"
  end

end

Gem::CommandManager.instance.register_command :interrupt

Version data entries

107 entries across 107 versions & 2 rubygems

Version Path
rubygems-update-2.5.1 test/rubygems/rubygems_plugin.rb
rubygems-update-2.5.0 test/rubygems/rubygems_plugin.rb
rubygems-update-2.0.17 test/rubygems/rubygems_plugin.rb
rubygems-update-2.2.5 test/rubygems/rubygems_plugin.rb
rubygems-update-2.4.8 test/rubygems/rubygems_plugin.rb
rubygems-update-2.0.16 test/rubygems/rubygems_plugin.rb
rubygems-update-2.2.4 test/rubygems/rubygems_plugin.rb
rubygems-update-2.4.7 test/rubygems/rubygems_plugin.rb
rubygems-update-2.4.6 test/rubygems/rubygems_plugin.rb
rubygems-update-2.2.3 test/rubygems/rubygems_plugin.rb
rubygems-update-2.0.15 test/rubygems/rubygems_plugin.rb
rubygems-update-1.8.30 test/rubygems/rubygems_plugin.rb
rubygems-update-2.4.5 test/rubygems/rubygems_plugin.rb
rubygems-update-2.4.4 test/rubygems/rubygems_plugin.rb
rubygems-update-2.4.3 test/rubygems/rubygems_plugin.rb
rubygems-update-2.4.2 test/rubygems/rubygems_plugin.rb
rubygems-update-2.4.1 test/rubygems/rubygems_plugin.rb
rubygems-update-2.4.0 test/rubygems/rubygems_plugin.rb
rubygems-update-2.3.0 test/rubygems/rubygems_plugin.rb
rubygems-update-2.2.2 test/rubygems/rubygems_plugin.rb