Module: ExecutableHooks

Defined in:
lib/executable-hooks/version.rb,
lib/executable-hooks/wrapper.rb,
lib/executable-hooks/uninstaller.rb,
lib/executable-hooks/specification.rb

Defined Under Namespace

Modules: Specification Classes: Wrapper

Constant Summary collapse

VERSION =
"1.7.1"

Class Method Summary collapse

Class Method Details

.uninstallObject



6
7
8
9
10
11
12
13
# File 'lib/executable-hooks/uninstaller.rb', line 6

def self.uninstall
  Gem.configuration[:custom_shebang] = "$env #{Gem.default_exec_format % "ruby"}"
  options = RegenerateBinstubsCommand.default_install_options
  RegenerateBinstubsCommand.new.execute_no_wrapper("ruby")
  ExecutableHooks::Wrapper.new(options).uninstall
  options.merge!(:executables => true, :all => true, :ignore => true)
  Gem::Uninstaller.new("executable-hooks", options).uninstall
end