ec2ctl 0.7.7 → 0.7.8

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: fa3d84d47e143af453d52a57006eea0081432caf
4
- data.tar.gz: dfae70f0c1fe189affaa45b9bcea95ec96db42c3
3
+ metadata.gz: d105279c33a82a5eaddf5c6faacce968e80bc7a6
4
+ data.tar.gz: 5e5ab76e6f24fa3fbc2d786f3b3ccd9d0c3e4783
5
5
  SHA512:
6
- metadata.gz: e9515efc5b065b5d7cc0cc1a8bb1c9d71e99a07c370d7f4d435b58e2b620353311ddf5aaba57f119114803e782587b605ffc3b4fb30d5c3762e08b3319345452
7
- data.tar.gz: bd1fd0091260e0540b5849e229a85e1267e6779e2663c2da3ced044b6c2381df79a073498b8ee9c6b8416e38f668bc8da97bc52c507e4224a3875af869ebd4a3
6
+ metadata.gz: 6ae93e7dc0c6e0736d20f790f03a87039f339a09320a22d4334c66513d60bbaf3e77a68dc6f44576c0a47855815c1a4c5c44b3f5b3552e222a7b10e522f03e78
7
+ data.tar.gz: 089a67e0d9087ba366aa9e7a79230ee10e8b908fd3ffa54bae99715632fa78905dbefe3f6ae06bf32c75fe3e38da936ea591da016d553280524e4376f3313c4c
data/lib/ec2ctl/client.rb CHANGED
@@ -11,7 +11,13 @@ module EC2Ctl
11
11
  instance_info = attributes.inject Hash.new do |acc, attribute|
12
12
  acc[attribute] = case attribute
13
13
  when /\Atag:/i
14
- instance.tags.find {|tag| tag.key == attribute.split(":").last}.value
14
+ tag = instance.tags.find {|tag| tag.key == attribute.split(":")[1..-1].join(":")}
15
+
16
+ if tag
17
+ tag.value
18
+ else
19
+ nil
20
+ end
15
21
  else
16
22
  attribute.split(".").map(&:intern).inject instance.data do |acc, method|
17
23
  acc.send method
@@ -1,3 +1,3 @@
1
1
  module EC2Ctl
2
- VERSION = "0.7.7"
2
+ VERSION = "0.7.8"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ec2ctl
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.7
4
+ version: 0.7.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - y13i
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-05-06 00:00:00.000000000 Z
11
+ date: 2016-06-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: commander
@@ -147,7 +147,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
147
147
  version: '0'
148
148
  requirements: []
149
149
  rubyforge_project:
150
- rubygems_version: 2.4.5.1
150
+ rubygems_version: 2.5.1
151
151
  signing_key:
152
152
  specification_version: 4
153
153
  summary: A minimum tool for EC2 instances.