gce-host 0.5.5 → 0.5.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/CHANGELOG.md +6 -0
- data/lib/gce/host/host_data.rb +5 -2
- data/lib/gce/host/version.rb +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 3c52da0f7a955416550c729c1c81a657c3e5003e55e59558f8410f44f583829f
|
4
|
+
data.tar.gz: 7fd2a1323e1f973a2c3a5117ca4a4feb798b091695d6664d9c0193a4cc0600fa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1d088f43f1bcec37f38a97558b749697f2aafa8e46b37c313cf2e878611cd15d08069707e4a372f9ef7e7fe5647dcc436f15beaa16370aed9f691e8dec8135b3
|
7
|
+
data.tar.gz: 48d4100af2b932d8a2835581eeef566d35eab3c755fd0fe852b2a0f8f626512967128d7afb3ceca873c0debc41e7ecb03c55229022be5436e9649986710fbe7b
|
data/CHANGELOG.md
CHANGED
data/lib/gce/host/host_data.rb
CHANGED
@@ -64,11 +64,14 @@ class GCE
|
|
64
64
|
end
|
65
65
|
|
66
66
|
def public_ip_address
|
67
|
-
instance.network_interfaces.first.access_configs
|
67
|
+
access_configs = instance.network_interfaces.first.access_configs
|
68
|
+
access_configs ? access_configs.first.nat_ip : nil
|
68
69
|
end
|
69
70
|
|
70
71
|
def public_ip_addresses
|
71
|
-
instance.network_interfaces.map {|i|
|
72
|
+
instance.network_interfaces.map {|i|
|
73
|
+
i.access_configs ? i.access_configs.map(&:nat_ip) : nil
|
74
|
+
}.flatten(1).compact
|
72
75
|
end
|
73
76
|
|
74
77
|
def creation_timestamp
|
data/lib/gce/host/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gce-host
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Naotoshi Seo
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-01-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-api-client
|
@@ -231,8 +231,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
231
231
|
- !ruby/object:Gem::Version
|
232
232
|
version: '0'
|
233
233
|
requirements: []
|
234
|
-
|
235
|
-
rubygems_version: 2.6.13
|
234
|
+
rubygems_version: 3.0.1
|
236
235
|
signing_key:
|
237
236
|
specification_version: 4
|
238
237
|
summary: Search hosts on GCP GCE
|