stem 0.5.6 → 0.5.7
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/stem/instance.rb +6 -2
- metadata +6 -6
data/lib/stem/instance.rb
CHANGED
@@ -63,8 +63,8 @@ module Stem
|
|
63
63
|
swirl.call "TerminateInstances", "InstanceId" => instance_id
|
64
64
|
end
|
65
65
|
|
66
|
-
def stop instance_id
|
67
|
-
swirl.call "StopInstances", "InstanceId" => instance_id
|
66
|
+
def stop instance_id, force = false
|
67
|
+
swirl.call "StopInstances", "InstanceId" => instance_id, "Force" => force
|
68
68
|
end
|
69
69
|
|
70
70
|
def start instance_id
|
@@ -76,6 +76,10 @@ module Stem
|
|
76
76
|
swirl.call("DescribeInstances", "InstanceId" => instance)["reservationSet"][0]["instancesSet"][0]
|
77
77
|
end
|
78
78
|
|
79
|
+
def console_output instance
|
80
|
+
swirl.call("GetConsoleOutput", "InstanceId" => instance)
|
81
|
+
end
|
82
|
+
|
79
83
|
def list
|
80
84
|
instances = swirl.call("DescribeInstances")
|
81
85
|
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: stem
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
5
|
-
prerelease:
|
4
|
+
hash: 5
|
5
|
+
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 5
|
9
|
-
-
|
10
|
-
version: 0.5.
|
9
|
+
- 7
|
10
|
+
version: 0.5.7
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Peter van Hardenberg
|
@@ -17,7 +17,7 @@ autorequire:
|
|
17
17
|
bindir: bin
|
18
18
|
cert_chain: []
|
19
19
|
|
20
|
-
date: 2011-03-
|
20
|
+
date: 2011-03-09 00:00:00 -08:00
|
21
21
|
default_executable:
|
22
22
|
dependencies:
|
23
23
|
- !ruby/object:Gem::Dependency
|
@@ -189,7 +189,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
189
189
|
requirements: []
|
190
190
|
|
191
191
|
rubyforge_project:
|
192
|
-
rubygems_version: 1.
|
192
|
+
rubygems_version: 1.3.7
|
193
193
|
signing_key:
|
194
194
|
specification_version: 2
|
195
195
|
summary: an EC2 instance management library designed to get out of your way and give you instances
|