knife-ec2 0.5.8 → 0.5.10
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/chef/knife/ec2_base.rb +1 -1
- data/lib/chef/knife/ec2_server_list.rb +10 -9
- data/lib/knife-ec2/version.rb +1 -1
- metadata +2 -2
data/lib/chef/knife/ec2_base.rb
CHANGED
@@ -44,20 +44,21 @@ class Chef
|
|
44
44
|
]
|
45
45
|
connection.servers.all.each do |server|
|
46
46
|
server_list << server.id.to_s
|
47
|
-
server_list <<
|
48
|
-
server_list <<
|
49
|
-
server_list <<
|
50
|
-
server_list <<
|
51
|
-
server_list << server.key_name
|
47
|
+
server_list << server.public_ip_address.to_s
|
48
|
+
server_list << server.private_ip_address.to_s
|
49
|
+
server_list << server.flavor_id.to_s
|
50
|
+
server_list << server.image_id.to_s
|
51
|
+
server_list << server.key_name.to_s
|
52
52
|
server_list << server.groups.join(", ")
|
53
53
|
server_list << begin
|
54
|
-
|
54
|
+
state = server.state.to_s.downcase
|
55
|
+
case state
|
55
56
|
when 'shutting-down','terminated','stopping','stopped'
|
56
|
-
ui.color(
|
57
|
+
ui.color(state, :red)
|
57
58
|
when 'pending'
|
58
|
-
ui.color(
|
59
|
+
ui.color(state, :yellow)
|
59
60
|
else
|
60
|
-
ui.color(
|
61
|
+
ui.color(state, :green)
|
61
62
|
end
|
62
63
|
end
|
63
64
|
end
|
data/lib/knife-ec2/version.rb
CHANGED
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: knife-ec2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.5.
|
5
|
+
version: 0.5.10
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Adam Jacob
|
@@ -11,7 +11,7 @@ autorequire:
|
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
13
|
|
14
|
-
date: 2011-08-
|
14
|
+
date: 2011-08-30 00:00:00 -04:00
|
15
15
|
default_executable:
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|