Method: CloudFormationTool::CLI::Create#execute

Defined in:
lib/cloud_formation_tool/cli/create.rb

#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