Class: SimpleDeploy::StackUpdater
- Inherits:
-
Object
- Object
- SimpleDeploy::StackUpdater
- Defined in:
- lib/simple_deploy/stack/stack_updater.rb
Instance Method Summary collapse
-
#initialize(args) ⇒ StackUpdater
constructor
A new instance of StackUpdater.
- #update_stack(attributes) ⇒ Object
Constructor Details
#initialize(args) ⇒ StackUpdater
Returns a new instance of StackUpdater.
6 7 8 9 10 11 12 |
# File 'lib/simple_deploy/stack/stack_updater.rb', line 6 def initialize(args) @config = SimpleDeploy.config @logger = SimpleDeploy.logger @entry = args[:entry] @name = args[:name] @template_body = args[:template_body] end |
Instance Method Details
#update_stack(attributes) ⇒ Object
14 15 16 17 18 19 20 21 22 |
# File 'lib/simple_deploy/stack/stack_updater.rb', line 14 def update_stack(attributes) if parameter_updated?(attributes) || @template_body @logger.debug 'Updated parameters or new template found.' update else @logger.debug 'No parameters require updating and no new template found.' false end end |