Class: StackMaster::Commands::Apply

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Includes:
Commander::UI, StackMaster::Command, Prompter
Defined in:
lib/stack_master/commands/apply.rb

Constant Summary collapse

TEMPLATE_TOO_LARGE_ERROR_MESSAGE =
'The (space compressed) stack is larger than the limit set by AWS. See http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cloudformation-limits.html'.freeze

Instance Method Summary collapse

Methods included from Prompter

#ask?

Methods included from StackMaster::Command

included, #success?

Constructor Details

#initialize(*_args) ⇒ Apply

Returns a new instance of Apply.



9
10
11
12
13
# File 'lib/stack_master/commands/apply.rb', line 9

def initialize(*_args)
  super
  @s3_config = @stack_definition.s3
  @from_time = Time.now
end

Instance Method Details

#performObject



15
16
17
18
19
20
21
22
# File 'lib/stack_master/commands/apply.rb', line 15

def perform
  diff_stacks
  ensure_valid_parameters!
  ensure_valid_template_body_size!
  create_or_update_stack
  tail_stack_events unless StackMaster.quiet?
  set_stack_policy
end