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 +4 -4
- data/lib/ec2ctl/client.rb +7 -1
- data/lib/ec2ctl/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d105279c33a82a5eaddf5c6faacce968e80bc7a6
|
4
|
+
data.tar.gz: 5e5ab76e6f24fa3fbc2d786f3b3ccd9d0c3e4783
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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(":").
|
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
|
data/lib/ec2ctl/version.rb
CHANGED
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.
|
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-
|
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.
|
150
|
+
rubygems_version: 2.5.1
|
151
151
|
signing_key:
|
152
152
|
specification_version: 4
|
153
153
|
summary: A minimum tool for EC2 instances.
|