Class: StackMaster::Commands::Init

Inherits:
Object
  • Object
show all
Includes:
StackMaster::Command
Defined in:
lib/stack_master/commands/init.rb

Defined Under Namespace

Classes: InitBinding

Instance Method Summary collapse

Methods included from StackMaster::Command

included, #success?

Constructor Details

#initialize(options, region, stack_name) ⇒ Init

Returns a new instance of Init.



8
9
10
11
12
# File 'lib/stack_master/commands/init.rb', line 8

def initialize(options, region, stack_name)
  super(nil, nil, options)
  @region = region
  @stack_name = stack_name
end

Instance Method Details

#performObject



14
15
16
17
18
19
20
# File 'lib/stack_master/commands/init.rb', line 14

def perform
  if check_files
    create_stack_master_yml
    create_stack_json_yml
    create_parameters_yml
  end
end