Class: Rexer::Commands::Update

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

Instance Method Summary collapse

Methods included from ActionCallable

#call_action

Constructor Details

#initializeUpdate

Returns a new instance of Update.



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

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

Instance Method Details

#call(extension_names) ⇒ Object



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

def call(extension_names)
  return if no_lock_file_found

  extension_names ||= []
  extension_names.map!(&:to_sym)

  update_themes(extension_names)
  update_plugins(extension_names)
end