Class: Stack
- Inherits:
-
CloudstackCli::Base
- Object
- Thor
- CloudstackCli::Base
- Stack
- Defined in:
- lib/cloudstack-cli/commands/stack.rb
Instance Attribute Summary
Attributes inherited from CloudstackCli::Base
Instance Method Summary collapse
Instance Method Details
#create(stack_file) ⇒ Object
4 5 6 7 8 9 10 11 12 |
# File 'lib/cloudstack-cli/commands/stack.rb', line 4 def create(stack_file) #begin stack = JSON.parse(File.read(stack_file)) #rescue Exception => e $stderr.puts "Can't find the stack file #{stack_file}." exit #end p stack end |