bcome 2.0.0 → 2.0.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
  SHA256:
3
- metadata.gz: 6487e49ca4d5c08aa0ffa0debb3fa7451db2a2e5cafa03c4962e40bf8790f3dc
4
- data.tar.gz: 8a0878e1514dd2207939474d30998e4ac777de4ef68da8eff0570fe776d54602
3
+ metadata.gz: c27e993a1ebc7cb838f3f13927f85ef715aecf18ccebd03c54fb9d6ccb782728
4
+ data.tar.gz: cfc4d0618d32554c00b0d1c6bd20932cb56bd762fce87504386519db81072bf9
5
5
  SHA512:
6
- metadata.gz: fccfbb6428abfc99e58865369574f04860833015d7dbe4062f93533dcf3b8362e051603371db25b396012ee94c51e565d0666c8766bd139b52577897da18e3ff
7
- data.tar.gz: 920284c1ba38dfeb1c688fb78d262f7d5762a3350aa61fa6145045cde303599e391fe60076f2207bf2d90ccabafc38c7c0e38cda9a99dcc65bfad309ab37ebe1
6
+ metadata.gz: a36e1a6d0b76cb4b1a4dbfac6ce34da68eb07217a190495cea4fd5904ac1b0d6f7f30c5c7ea4b02fcbb68958d4f6472b33fb3e35f6ce5d873484e6afbcfd6434
7
+ data.tar.gz: b37ee3c185cf7914efb462bbb4279e92255bd711e2283a48ff4a9d40c646d9a7365afd1cdfc5b665f04127087bf7d6fd72d46e610ebad228cc3fd0e996590134
@@ -7,7 +7,7 @@ module Bcome
7
7
  end
8
8
 
9
9
  def self.release
10
- '2.0.0'
10
+ '2.0.1'
11
11
  end
12
12
 
13
13
  def self.release_name
@@ -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
- unless has_hop?
79
- raise ::Bcome::Exception::InvalidProxyConfig, "missing target ip address for #{@context_node.identifier}. Perhaps you meant to configure a proxy?" unless @context_node.public_ip_address
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
- has_proxy? ? @context_node.internal_ip_address : @context_node.public_ip_address
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.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-10-18 00:00:00.000000000 Z
11
+ date: 2020-12-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport