Class: Roark::Aws::Ec2::StopInstance
- Inherits:
-
Object
- Object
- Roark::Aws::Ec2::StopInstance
- Defined in:
- lib/roark/aws/ec2/stop_instance.rb
Instance Method Summary collapse
-
#initialize(connection) ⇒ StopInstance
constructor
A new instance of StopInstance.
- #stop(id) ⇒ Object
Constructor Details
#initialize(connection) ⇒ StopInstance
Returns a new instance of StopInstance.
5 6 7 |
# File 'lib/roark/aws/ec2/stop_instance.rb', line 5 def initialize(connection) @connection = connection end |
Instance Method Details
#stop(id) ⇒ Object
9 10 11 |
# File 'lib/roark/aws/ec2/stop_instance.rb', line 9 def stop(id) @connection.ec2.instances[id].stop end |