specinfra-ec2_metadata-tags 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/specinfra/ec2_metadata/tags/version.rb +1 -1
- data/lib/specinfra/ec2_metadata/tags.rb +3 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 025a310f1465b602ceaab1bab950b3854458d978
|
4
|
+
data.tar.gz: af2548369408fe3f44af70e96da81e37345e847c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 08731c3c53a980095c0086399530cbacdaa67fad188a076810d847107be8435a0a723d6d5508e5e747a5efd0dcebec8dcf2d9bd60b423ea7d036d5266ce696e4
|
7
|
+
data.tar.gz: 5c6691de3ba72e9660d1d93df6bd767e90657b14d6e7d75fa4634e57c1066b565a923793e38a414f2bd309e36ce10e593fbf0ffe140d81c8e6191b8197edebc8
|
@@ -5,7 +5,9 @@ module Specinfra
|
|
5
5
|
class Ec2Metadata
|
6
6
|
class Tags
|
7
7
|
def self.get
|
8
|
-
|
8
|
+
region = host_inventory['ec2']['placement']['availability-zone']
|
9
|
+
region.gsub!(/[a-z]$/, '')
|
10
|
+
ec2 = Aws::EC2::Client.new(:region => region)
|
9
11
|
page = ec2.describe_tags(
|
10
12
|
:filters => [{
|
11
13
|
:name => 'resource-id',
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: specinfra-ec2_metadata-tags
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gosuke Miyashita
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-03-
|
11
|
+
date: 2015-03-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk
|