Class: Completely::Commands::Uninstall

Inherits:
Base
  • Object
show all
Defined in:
lib/completely/commands/uninstall.rb

Instance Method Summary collapse

Methods inherited from Base

environment_config_path, environment_debug, option_function, param_config_path

Instance Method Details

#runObject

Raises:



19
20
21
22
23
24
25
26
27
28
29
30
# File 'lib/completely/commands/uninstall.rb', line 19

def run
  if args['--dry']
    puts installer.uninstall_command_string
    return
  end

  success = installer.uninstall
  raise InstallError, "Failed running command:\nnb`#{installer.uninstall_command_string}`" unless success

  say 'Done'
  say 'You may need to restart your session to test it'
end