Class: Rexer::Commands::Update
- Inherits:
-
Object
- Object
- Rexer::Commands::Update
- Includes:
- ActionCallable
- Defined in:
- lib/rexer/commands/update.rb
Instance Method Summary collapse
- #call(extension_names) ⇒ Object
-
#initialize ⇒ Update
constructor
A new instance of Update.
Methods included from ActionCallable
Constructor Details
#initialize ⇒ Update
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 |