krates 1.7.4 → 1.7.9

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: 8ce499fe49def48372e5426bc727196e2d0833a61984d24c452905feb4d06921
4
- data.tar.gz: b3d968aeaf09274aa26b9079346afcc4dd5a6563f9cdf280521a79a6a44d497e
3
+ metadata.gz: cee4aeb677dd47d75c2fb94014704708dd32fc41c94fda8e3c21c3f2d8218f04
4
+ data.tar.gz: 2ed1ea4038962ec5808328acc494efbf3c187bf0932fbff8d87919e09db2212f
5
5
  SHA512:
6
- metadata.gz: 7cb17610563b581ef1bbce69ee100800b43e86d9acb67cbc80f472f8985136fc3ce8c6e89d27bc1bba43c87927fa3806a8f19e2abb1c8e629dd79d95532b4d33
7
- data.tar.gz: 18dbf61a2bcb2a49e2578fbeec69110273dc4c943b4a75639eaa79e23dce1d0868c20b649ef42953b95176b78ed6d39a7fe724887c1ecf43a5c6396a42d168ad
6
+ metadata.gz: 74bdfea0235a5e7e82ff149bfee1f152060c2bc312a29fc6cd1e001161d1652176d5910d4d79517598709b775d396bc2a3ffee5e9b8d8a403e1130ed2843fb28
7
+ data.tar.gz: 16913c06f3bb0ad4d8d92dc5b44a55d963db9c0794d7422d3c6ac58eceae987d8660d1a3ccadeedfeb1d874794c7725dcedf776e4cbdc75e704cc9873b523560
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.7.4
1
+ 1.7.9
@@ -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.4
4
+ version: 1.7.9
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-06-21 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