krates 1.7.5 → 1.7.10

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: 394ee54c0dfdd7763857915312c73e0f575fc8ccfd95285e5fc8b581d6c4c654
4
- data.tar.gz: 26b81b154bfa6577803cf243d38c76d93caa2a79fef202b76332f073b195205c
3
+ metadata.gz: 8e7c5825ed499cf25d099d650944f0d497c51d014559197272bf5ce4640f12c3
4
+ data.tar.gz: 45fdb9199ea8ae73223117678f7d9cd79f0287945ac9a5068a1cc029a5b71d91
5
5
  SHA512:
6
- metadata.gz: 53d397422db502e699100965f11c5c70df063b36ca69482da8ab4a72c13edbc86cf21c3f924f5eb83c5b036e38c3bdc117b3c399987339d07ed09f3f1ab2af05
7
- data.tar.gz: 725face504255044a35458b3526a56072200dacc7f1631938acb54d8bc5a5ad74c6af89a746ffe50449c246024be5c77af1fe56b850bbf8ff0ff960ca0c3beda
6
+ metadata.gz: f205ba9460d990beaa4826fa5e2e69df34fe55eb775f256163543d98ec87a510f787b71660b245dbe776d8810eee61b7d84de5710984579c28b14c6f319e6167
7
+ data.tar.gz: fd56788464f98035893bd78c76153ca981fb82455d51bb7f3a64b58d3ca75251d5b1cfbbeb85781291aaa8784b38e6ad79f9bcaf05241b08a87f6f11f5b3064f
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.7.5
1
+ 1.7.10
@@ -8,7 +8,7 @@ module Kontena::Cli::Master
8
8
 
9
9
  parameter "[COMMANDS] ...", "Run command on host"
10
10
 
11
- option ["-i", "--identity-file"], "IDENTITY_FILE", "Path to ssh private key"
11
+ option ["-i", "--identity-file"], "IDENTITY_FILE", "Path to ssh private key", environment_variable: 'KRATES_MASTER_IDENTITY_FILE'
12
12
  option ["-u", "--user"], "USER", "Login as a user", default: "core"
13
13
 
14
14
  requires_current_master
@@ -10,7 +10,7 @@ module Kontena::Cli::Nodes
10
10
  parameter "[NODE]", "SSH to Grid node. Use --any to connect to the first available node"
11
11
  parameter "[COMMANDS] ...", "Run command on host"
12
12
  option ["-a", "--any"], :flag, "Connect to first available node"
13
- option ["-i", "--identity-file"], "IDENTITY_FILE", "Path to ssh private key"
13
+ option ["-i", "--identity-file"], "IDENTITY_FILE", "Path to ssh private key", environment_variable: 'KRATES_NODE_IDENTITY_FILE'
14
14
  option ["-u", "--user"], "USER", "Login as a user", default: "core"
15
15
  option "--private-ip", :flag, "Connect to node's private IP address"
16
16
  option "--internal-ip", :flag, "Connect to node's internal IP address (requires VPN connection)"
@@ -33,7 +33,7 @@ module Kontena::Cli::Nodes
33
33
 
34
34
  provider = Array(node["labels"]).find{ |l| l.start_with?('provider=')}.to_s.split('=').last
35
35
 
36
- if provider == 'vagrant'
36
+ if provider == 'vagrant' && !internal_ip?
37
37
  unless Kontena::PluginManager::Common.installed?('vagrant')
38
38
  exit_with_error 'You need to install vagrant plugin to ssh into this node. Use kontena plugin install vagrant'
39
39
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: krates
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.5
4
+ version: 1.7.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pavel Tsurbeleu
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-07-05 00:00:00.000000000 Z
11
+ date: 2021-05-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler