lib/bora/cfn/stack.rb in bora-1.7.1 vs lib/bora/cfn/stack.rb in bora-1.7.2

- old
+ new

@@ -22,12 +22,12 @@ call_cfn_action(:create_stack, options, &block) end def update(options, &block) # Parameters that are not valid for the update_stack api - invalid_update_stack_options = %i(on_failure disable_rollback) - update_options = options.select { |key| !invalid_update_stack_options.include?(key) } + invalid_update_stack_options = %i[on_failure disable_rollback] + update_options = options.reject { |key| invalid_update_stack_options.include?(key) } call_cfn_action(:update_stack, update_options, &block) end def create_or_update(options, &block) exists? ? update(options, &block) : create(options, &block) @@ -62,10 +62,10 @@ return unless exists? cloudformation.get_template(stack_name: @stack_name).template_body end def validate(options) - cloudformation.validate_template(options.select { |k| [:template_body, :template_url].include?(k) }) + cloudformation.validate_template(options.select { |k| %i[template_body template_url].include?(k) }) end def status StackStatus.new(underlying_stack) end