ec2ctl 0.7.8 → 0.7.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ec2ctl/cli.rb +8 -1
- data/lib/ec2ctl/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c9d5765abec98bc65ea4dd0c1276041db0c2766c
|
4
|
+
data.tar.gz: 3ed14b3b91fa16fc850c5f1a567b9f3970df6e86
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bc349a68f3004dafea7daf1951f790b8da4ee30a8dd3434ec3429fb5b86a061eb52a42317e44f1081192d4d0e09a87b0ede2377d462e3e7ff82ae22af24f9967
|
7
|
+
data.tar.gz: da45141f0d9338d1386c4d988741622df08ec521958b4f4146efa9e3bd50bd1d75c4f25c58fa9b9caaf33bcebf3c78067811f63de7bcfbf0af3d63a535ede5f6
|
data/lib/ec2ctl/cli.rb
CHANGED
@@ -35,7 +35,14 @@ module EC2Ctl
|
|
35
35
|
|
36
36
|
set_client(options)
|
37
37
|
|
38
|
-
search
|
38
|
+
search = if options.search
|
39
|
+
options.search.split(",").map {|s| s.split("=")}.inject Hash.new do |acc, pair|
|
40
|
+
acc.merge pair.first => pair.last
|
41
|
+
end
|
42
|
+
else
|
43
|
+
{}
|
44
|
+
end
|
45
|
+
|
39
46
|
attributes = (options.attributes.split(",") + search.keys).uniq
|
40
47
|
instance_infos = client.instance_infos(attributes, search).sort_by {|i| i[options.order]}
|
41
48
|
|
data/lib/ec2ctl/version.rb
CHANGED