Class: Roark::Instance
- Inherits:
-
Object
- Object
- Roark::Instance
- Extended by:
- Forwardable
- Defined in:
- lib/roark/instance.rb
Instance Method Summary collapse
- #create(args) ⇒ Object
- #create_ami_from_instance ⇒ Object
-
#initialize(args) ⇒ Instance
constructor
A new instance of Instance.
- #status ⇒ Object
- #stop ⇒ Object
Constructor Details
Instance Method Details
#create(args) ⇒ Object
16 17 18 19 20 21 22 23 |
# File 'lib/roark/instance.rb', line 16 def create(args) parameters = args[:parameters] template = args[:template] stack.create :name => @name, :parameters => parameters, :template => template end |
#create_ami_from_instance ⇒ Object
25 26 27 28 |
# File 'lib/roark/instance.rb', line 25 def create_ami_from_instance create_ami.create :name => @name, :instance_id => instance_id end |
#status ⇒ Object
34 35 36 |
# File 'lib/roark/instance.rb', line 34 def status instance_status.status instance_id end |
#stop ⇒ Object
30 31 32 |
# File 'lib/roark/instance.rb', line 30 def stop stop_instance.stop instance_id end |