Class: CloudFormationTool::CLI::Create

Inherits:
Clamp::Command
  • Object
show all
Includes:
ParamSupport
Defined in:
lib/cloud_formation_tool/cli/create.rb

Instance Method Summary collapse

Methods included from ParamSupport

#get_params, included, #read_param_file

Instance Method Details

#executeObject



14
15
16
17
18
19
20
21
22
# File 'lib/cloud_formation_tool/cli/create.rb', line 14

def execute
  name = stack_name || File.basename(File.dirname(File.expand_path(file)))
  st = CloudFormation::Stack.new(name)
  log "Creating stack #{name}"
  start = Time.now
  log "Created " + st.create(file, get_params).to_s
  st.monitor(start)
  puts st.output
end