specinfra-ec2_metadata-tags 0.0.2 → 0.0.3

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: 025a310f1465b602ceaab1bab950b3854458d978
4
- data.tar.gz: af2548369408fe3f44af70e96da81e37345e847c
3
+ metadata.gz: 3ef513df1d94ee233695065203812a5465df4119
4
+ data.tar.gz: a6009b13337def59a721be97ae7105ce75a0b8d4
5
5
  SHA512:
6
- metadata.gz: 08731c3c53a980095c0086399530cbacdaa67fad188a076810d847107be8435a0a723d6d5508e5e747a5efd0dcebec8dcf2d9bd60b423ea7d036d5266ce696e4
7
- data.tar.gz: 5c6691de3ba72e9660d1d93df6bd767e90657b14d6e7d75fa4634e57c1066b565a923793e38a414f2bd309e36ce10e593fbf0ffe140d81c8e6191b8197edebc8
6
+ metadata.gz: 6a65a92bfa6a3027ca8a1def49995d012bb4db1cb7b737c36d0cce6532abc549df6d4848fd1c81aeec44e757f1ab41df77052535e8133952165d87decd4a6049
7
+ data.tar.gz: cd65f30326ec5a29742b852437ba4964b2f545b43ad38cb3ff85901585fca158547ec92a0e9cc6f94efbc9cabe04e2e3e6dc3be84d5a2395d3376b78793b4aed
@@ -5,8 +5,7 @@ module Specinfra
5
5
  class Ec2Metadata
6
6
  class Tags
7
7
  def self.get
8
- region = host_inventory['ec2']['placement']['availability-zone']
9
- region.gsub!(/[a-z]$/, '')
8
+ region = host_inventory['ec2']['placement']['availability-zone'].gsub(/[a-z]$/, '')
10
9
  ec2 = Aws::EC2::Client.new(:region => region)
11
10
  page = ec2.describe_tags(
12
11
  :filters => [{
@@ -1,7 +1,7 @@
1
1
  module Specinfra
2
2
  class Ec2Metadata
3
3
  class Tags
4
- VERSION = "0.0.2"
4
+ VERSION = "0.0.3"
5
5
  end
6
6
  end
7
7
  end
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.2
4
+ version: 0.0.3
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 00:00:00.000000000 Z
11
+ date: 2015-03-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk