elastip 0.2.0 → 0.2.1

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: 16a385f98e85a116010ed6d3e3294980c1600c04
4
- data.tar.gz: 26d021dc4708b0c97dc405e2be0371b7d1f637c1
3
+ metadata.gz: ac1e342a3ee90d62cc1098ee778c9f0fb2066951
4
+ data.tar.gz: 4187ecde13a4838275d9e8dc367da51e3df76552
5
5
  SHA512:
6
- metadata.gz: fe3ba9e86cf116562c9d346e9b2b53d2a924aeb1641ff2c28e33a3f0e385328d623026a224916f08591eca8adfcf460e2165f96bf35591ddb9aa48dbe35eebfd
7
- data.tar.gz: b6f272271a4ebfa5fd00abab6c2208fd6da209a752422b0f6fd038d69f34d06e0ccf0bd3de139761b7f9ff94d1351a7b51d6ff0d143202b7ef198df7232ad6ee
6
+ metadata.gz: 2d37abc6473d4ce5ba8e153be37faa450aa85e4be5d6e5442accae9c5c9186de2490176b44389bcbefe4ea0d653b2a4a514fce370711d48b59e4197d5bd6376a
7
+ data.tar.gz: c7c8b2f1f7786c5fd5ae2461d44d45feb523f8d82fd44222fa85ed301c369b51e3f7270c7b1b778cf0765f854a3675e551556f57903663db05de21c03b995692
data/.travis.yml CHANGED
@@ -7,7 +7,7 @@ script: rake
7
7
  deploy:
8
8
  provider: rubygems
9
9
  api_key:
10
- secure: "mBGWs5QFmmspHjc+qNywVywwu16KUT0GNqeSasAC3I8JraNTk7NDqOM9HBix67WaPvrY7t3qXTXi52pXhYciyV4tkqBSD5b8TreXQA/ABpvkZvGrbbBjfjHHZ7D0ilmmxnR1ygR07T0ozSvtWIrymOTbhQFfU7sGLwexn4ve7z0fWJEyMGcQJPA5h7gJmUtjgeTc0IO3Et4B8yiIIqdLs0zFRMAPx2WOeKJhaHHEvByViQsfuMsBxzbRrD6MTRqfMVSEPp5dAis0bdycbgwqJ9EEbtvEafBK5fmnbAUJmB6UI8HZ5pP6W7Z3Vz/br2h2L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  tags: true
@@ -1,3 +1,3 @@
1
1
  module Elastip
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
data/lib/elastip.rb CHANGED
@@ -21,7 +21,7 @@ module Elastip
21
21
  instances = ec2_instances
22
22
 
23
23
  target_instances = active_envs.map do |active|
24
- instance = instances.find{|x| x[:tags].any?{|y| active == y[:value] }}
24
+ instance = instances.find{|x| x[:tags].any?{|y| active == y[:value] } && x[:state][:name] != 'terminated'}
25
25
  {instance: active, ip: instance[:private_ip_address]}
26
26
  end
27
27
  target_instances.map{|x| x[:ip]}
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: elastip
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - pcboy
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-02-07 00:00:00.000000000 Z
11
+ date: 2017-02-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -135,7 +135,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
135
135
  version: '0'
136
136
  requirements: []
137
137
  rubyforge_project:
138
- rubygems_version: 2.5.1
138
+ rubygems_version: 2.4.6
139
139
  signing_key:
140
140
  specification_version: 4
141
141
  summary: Elastip helps you find the ip addresses of your elastic beanstalk instances