Class: Rexer::Commands::Uninstall

Inherits:
Object
  • Object
show all
Includes:
ActionCallable
Defined in:
lib/rexer/commands/uninstall.rb

Instance Method Summary collapse

Methods included from ActionCallable

#call_action

Constructor Details

#initializeUninstall

Returns a new instance of Uninstall.



6
7
8
# File 'lib/rexer/commands/uninstall.rb', line 6

def initialize
  @lock_definition = Definition::Lock.load_data
end

Instance Method Details

#callObject



10
11
12
13
14
15
16
17
# File 'lib/rexer/commands/uninstall.rb', line 10

def call
  return if no_lock_file_found

  uninstall_themes
  uninstall_plugins

  delete_lock_file
end