Class: CloudFormationTool::CLI::Create
- Inherits:
-
Clamp::Command
- Object
- Clamp::Command
- CloudFormationTool::CLI::Create
- 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
#execute ⇒ Object
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.(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 |