Method: KnifeCloudstack::CsStackCreate#run
- Defined in:
- lib/chef/knife/cs_stack_create.rb
#run ⇒ Object
74 75 76 77 78 79 80 81 82 83 84 85 86 |
# File 'lib/chef/knife/cs_stack_create.rb', line 74 def run file_path = File.(@name_args.first) unless File.exist?(file_path) then ui.error "Stack file '#{file_path}' not found. Please check the path." exit 1 end data = File.read file_path stack = Chef::JSONCompat.from_json data create_stack stack #puts "Stack: #{stack.inspect}" end |