Class: Rexer::Commands::Install
- Inherits:
-
Object
- Object
- Rexer::Commands::Install
- Includes:
- ActionCallable
- Defined in:
- lib/rexer/commands/install.rb
Instance Method Summary collapse
Methods included from ActionCallable
Instance Method Details
#call(env) ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/rexer/commands/install.rb', line 6 def call(env) definition = load_definition(env) lock_definition = load_lock_definition if lock_definition.nil? install_initially(definition) elsif lock_definition.env != definition.env Switch.new.call(env) else apply_diff(lock_definition, definition) end end |