aws-eni 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aws-eni/interface.rb +5 -2
- data/lib/aws-eni/version.rb +1 -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: 68b27be2888889b79b25cf82c4c1deed40d5a2a7
|
4
|
+
data.tar.gz: e5d27764786824060075bf2afebe15e32a99ed7b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 70617c4f309714d61f46bde0316701748d011c522cbaef8a5dd924d74bc0c94c9bdc7e54e7d16a1180a2f538d8e3c8e18163e624aa4db4d5366df1346dfddff4
|
7
|
+
data.tar.gz: 8f06e423e4ba8dbfc7698c65e27f63c8065412fdd2a0768c0bc1da42f6455c48861b8e9b9d186980da4e043601ec6355d20afde7d3d08ab97d712e714b4bf75e
|
data/lib/aws-eni/interface.rb
CHANGED
@@ -215,9 +215,12 @@ module Aws
|
|
215
215
|
|
216
216
|
# Return an array of configured ip addresses (primary + secondary)
|
217
217
|
def local_ips
|
218
|
-
list = cmd("addr show dev #{name} primary", sudo: false) +
|
219
|
-
cmd("addr show dev #{name} secondary", sudo: false)
|
218
|
+
list = cmd("addr show dev #{name} primary", sudo: false, errors: true) +
|
219
|
+
cmd("addr show dev #{name} secondary", sudo: false, errors: true)
|
220
220
|
list.lines.grep(/inet ([0-9\.]+)\/.* #{name}/i){ $1 }
|
221
|
+
rescue
|
222
|
+
raise Errors::UnknownInterface, "Interface #{name} not found on this machine" unless exists?
|
223
|
+
raise
|
221
224
|
end
|
222
225
|
|
223
226
|
# Return an array of ip addresses found in our instance metadata
|
data/lib/aws-eni/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-eni
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mike Greiling
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-06-
|
11
|
+
date: 2015-06-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gli
|