Sha256: 707417aec72a624c950596f11048e3eb22291f7203b6b1a9447188136f800255

Contents?: true

Size: 301 Bytes

Versions: 5

Compression:

Stored size: 301 Bytes

Contents

require 'rubygems/command_manager'

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

5 entries across 5 versions & 1 rubygems

Version Path
rubygems-update-1.3.6 test/rubygems_plugin.rb
rubygems-update-1.3.5 test/rubygems_plugin.rb
rubygems-update-1.3.2 test/rubygems_plugin.rb
rubygems-update-1.3.3 test/rubygems_plugin.rb
rubygems-update-1.3.4 test/rubygems_plugin.rb