Class: StackMaster::Commands::Apply
- Inherits:
-
Object
- Object
- StackMaster::Commands::Apply
- 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
-
#initialize(config, stack_definition, options = Commander::Command::Options.new) ⇒ Apply
constructor
A new instance of Apply.
- #perform ⇒ Object
Methods included from Prompter
Methods included from StackMaster::Command
Constructor Details
#initialize(config, stack_definition, options = Commander::Command::Options.new) ⇒ Apply
Returns a new instance of Apply.
9 10 11 12 13 14 15 16 17 |
# File 'lib/stack_master/commands/apply.rb', line 9 def initialize(config, stack_definition, = Commander::Command::Options.new) @config = config @s3_config = stack_definition.s3 @stack_definition = stack_definition @from_time = Time.now = .on_failure ||= nil .yes_param ||= nil end |
Instance Method Details
#perform ⇒ Object
19 20 21 22 23 24 25 26 |
# File 'lib/stack_master/commands/apply.rb', line 19 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 |