bcome 2.0.0 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c27e993a1ebc7cb838f3f13927f85ef715aecf18ccebd03c54fb9d6ccb782728
|
4
|
+
data.tar.gz: cfc4d0618d32554c00b0d1c6bd20932cb56bd762fce87504386519db81072bf9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a36e1a6d0b76cb4b1a4dbfac6ce34da68eb07217a190495cea4fd5904ac1b0d6f7f30c5c7ea4b02fcbb68958d4f6472b33fb3e35f6ce5d873484e6afbcfd6434
|
7
|
+
data.tar.gz: b37ee3c185cf7914efb462bbb4279e92255bd711e2283a48ff4a9d40c646d9a7365afd1cdfc5b665f04127087bf7d6fd72d46e610ebad228cc3fd0e996590134
|
@@ -75,11 +75,13 @@ module Bcome::Ssh
|
|
75
75
|
def target_machine_ingress_ip
|
76
76
|
return @context_node.internal_ip_address if @context_node.local_network?
|
77
77
|
|
78
|
-
|
79
|
-
|
78
|
+
if has_hop?
|
79
|
+
@context_node.internal_ip_address
|
80
|
+
elsif @context_node.public_ip_address
|
81
|
+
@context_node.public_ip_address
|
82
|
+
else
|
83
|
+
@context_node.internal_ip_address
|
80
84
|
end
|
81
|
-
|
82
|
-
has_hop? ? @context_node.internal_ip_address : @context_node.public_ip_address
|
83
85
|
end
|
84
86
|
|
85
87
|
private
|
@@ -45,7 +45,12 @@ module ::Bcome::Ssh
|
|
45
45
|
|
46
46
|
def node_host_or_ip
|
47
47
|
return @context_node.internal_ip_address if @context_node.local_network?
|
48
|
-
|
48
|
+
|
49
|
+
if has_proxy? || !@context_node.public_ip_address
|
50
|
+
@context_node.internal_ip_address
|
51
|
+
else
|
52
|
+
@context_node.public_ip_address
|
53
|
+
end
|
49
54
|
end
|
50
55
|
|
51
56
|
def net_ssh_params
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bcome
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Webzakimbo
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-12-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|