lib/simple_deploy/stack.rb in simple_deploy-0.7.3 vs lib/simple_deploy/stack.rb in simple_deploy-0.7.4
- old
+ new
@@ -28,11 +28,11 @@
attributes = stack_attribute_formatter.updated_attributes args[:attributes]
@template_file = args[:template]
@entry.set_attributes attributes
stack_creator.create
-
+
@entry.save
end
def update(args)
if !deployment.clear_for_deployment? && args[:force]
@@ -45,14 +45,14 @@
end
if deployment.clear_for_deployment?
@logger.info "Updating #{@name}."
attributes = stack_attribute_formatter.updated_attributes args[:attributes]
- @template_body = template
+ @template_body = args[:template_body] || template
@entry.set_attributes attributes
- stack_updater.update_stack_if_parameters_changed attributes
+ stack_updater.update_stack attributes
@logger.info "Update complete for #{@name}."
@entry.save
true
else
@@ -63,13 +63,12 @@
def in_progress_update(args)
if args[:caller].kind_of? Stack::Deployment::Status
@logger.info "Updating #{@name}."
attributes = stack_attribute_formatter.updated_attributes args[:attributes]
- @template_body = template
@entry.set_attributes attributes
- stack_updater.update_stack_if_parameters_changed attributes
+ stack_updater.update_stack attributes
@logger.info "Update complete for #{@name}."
@entry.save
true
else