Class: StackMaster::Commands::Init
- Inherits:
-
Object
- Object
- StackMaster::Commands::Init
- Includes:
- StackMaster::Command
- Defined in:
- lib/stack_master/commands/init.rb
Defined Under Namespace
Classes: InitBinding
Instance Method Summary collapse
-
#initialize(overwrite, region, stack_name) ⇒ Init
constructor
A new instance of Init.
- #perform ⇒ Object
Methods included from StackMaster::Command
Constructor Details
#initialize(overwrite, region, stack_name) ⇒ Init
Returns a new instance of Init.
6 7 8 9 10 |
# File 'lib/stack_master/commands/init.rb', line 6 def initialize(overwrite, region, stack_name) @overwrite = overwrite @region = region @stack_name = stack_name end |
Instance Method Details
#perform ⇒ Object
12 13 14 15 16 17 18 |
# File 'lib/stack_master/commands/init.rb', line 12 def perform if check_files create_stack_master_yml create_stack_json_yml create_parameters_yml end end |