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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d105279c33a82a5eaddf5c6faacce968e80bc7a6
4
- data.tar.gz: 5e5ab76e6f24fa3fbc2d786f3b3ccd9d0c3e4783
3
+ metadata.gz: c9d5765abec98bc65ea4dd0c1276041db0c2766c
4
+ data.tar.gz: 3ed14b3b91fa16fc850c5f1a567b9f3970df6e86
5
5
  SHA512:
6
- metadata.gz: 6ae93e7dc0c6e0736d20f790f03a87039f339a09320a22d4334c66513d60bbaf3e77a68dc6f44576c0a47855815c1a4c5c44b3f5b3552e222a7b10e522f03e78
7
- data.tar.gz: 089a67e0d9087ba366aa9e7a79230ee10e8b908fd3ffa54bae99715632fa78905dbefe3f6ae06bf32c75fe3e38da936ea591da016d553280524e4376f3313c4c
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 = options.search ? options.search.split(",").map {|s| s.split("=")}.to_h : {}
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
 
@@ -1,3 +1,3 @@
1
1
  module EC2Ctl
2
- VERSION = "0.7.8"
2
+ VERSION = "0.7.9"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ec2ctl
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.8
4
+ version: 0.7.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - y13i