krates 1.7.3 → 1.7.8

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: 1a0e95ca486d50d3208979c0a53876e01bc731d6a1d806f725eeb0fb2633613d
4
- data.tar.gz: 5d6b71c00c7f4e15916a19484bcec8319becf73f93552bfcd0270390303e85c9
3
+ metadata.gz: 41fd6a33359f90413deaf7039b194d21cff0a5eef3f380896d16bbc5ec3a07fb
4
+ data.tar.gz: 3be9dcf63fd9fb6bf9ef4df72a46afbaa4874ac3df9f7340866914400a86d424
5
5
  SHA512:
6
- metadata.gz: 31791db739a37f6d720ecbe6f3da59e50eb8a0c496074aba211089330cb85814571fb739096eda331a0ed49ea5261aa6b1e23be52d3c2e612f684ab6d1a2ac9c
7
- data.tar.gz: 573f7d60925c4e7e4ed58b509c184cb76f94b95ce254368e3db7d3b2fd0a590c833853313fbd42aa4a6c66ab81d950a70b827b0358de4f5b2a9480688c480870
6
+ metadata.gz: 40aed3e0d22da73acd4b0dd5d3139958b6d0d049823736c437de13060381a00ff1d0baf714edaca2e4488f11476d8064ffd7f2af7e07f60d36fe106f6cb832b3
7
+ data.tar.gz: 5ac81bae760db88797583151ca6c8d576feea4379de3e0c08833a7343457b8cb3ecf491c6df8f2193ecf594069723684f39009121d2bfd0d2470402381cfb563
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.7.3
1
+ 1.7.8
@@ -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.3
4
+ version: 1.7.8
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-12 00:00:00.000000000 Z
11
+ date: 2020-09-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler