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

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

#performObject



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