vidar 0.10.2 → 0.11.0
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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/vidar/cli.rb +9 -2
- data/lib/vidar/config.rb +1 -0
- data/lib/vidar/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5679fe9c0628ba2bda1ba1ea67e3d6a03fb904d3efac60469e87b5eafbc53305
|
|
4
|
+
data.tar.gz: 31e5e63195717afb6a22e1b5650efcf762aedd65e10fd97b1de712aaa7adaf95
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e31cb15a1b95ac839a7942c9dc01a69132ee51195df788b2fbf8b5d1f66d56799c83a4c680f6d5974e0b88d72885ef48885cfb28d81fa03f4c53c07c3a310a2e
|
|
7
|
+
data.tar.gz: 4e76a3722633e592acb909c9d87e00ae9ae62011b7331e6ef65a93543d42c15405f660e2731c67173d76e85482ad3eb72255b33137cd87489892c53737bd18ab
|
data/Gemfile.lock
CHANGED
data/lib/vidar/cli.rb
CHANGED
|
@@ -134,7 +134,7 @@ module Vidar
|
|
|
134
134
|
end
|
|
135
135
|
|
|
136
136
|
desc "kube_exec", "Execute given command in the first running pod"
|
|
137
|
-
method_option :command
|
|
137
|
+
method_option :command
|
|
138
138
|
method_option :name, required: false
|
|
139
139
|
def kube_exec
|
|
140
140
|
Log.info "Current kubectl context: #{Config.get!(:kubectl_context)}"
|
|
@@ -164,7 +164,14 @@ module Vidar
|
|
|
164
164
|
method_option :command, required: false
|
|
165
165
|
method_option :name, required: false
|
|
166
166
|
def console
|
|
167
|
-
invoke :kube_exec, name: options[:name], command: options[:command] || Config.get!(:console_command)
|
|
167
|
+
invoke :kube_exec, [], name: options[:name], command: options[:command] || Config.get!(:console_command)
|
|
168
|
+
end
|
|
169
|
+
|
|
170
|
+
desc "ssh", "Execute shell command in the first running pod"
|
|
171
|
+
method_option :command, required: false
|
|
172
|
+
method_option :name, required: false
|
|
173
|
+
def ssh
|
|
174
|
+
invoke :kube_exec, [], name: options[:name], command: options[:command] || Config.get!(:shell_command)
|
|
168
175
|
end
|
|
169
176
|
|
|
170
177
|
method_option :revision, required: false
|
data/lib/vidar/config.rb
CHANGED
|
@@ -9,6 +9,7 @@ module Vidar
|
|
|
9
9
|
revision: -> { `git rev-parse HEAD`.strip },
|
|
10
10
|
revision_name: -> { `git show --pretty=format:"%s (%h)" -s HEAD`.strip },
|
|
11
11
|
kubectl_context: -> { `kubectl config current-context`.strip },
|
|
12
|
+
shell_command: -> { "/bin/sh" },
|
|
12
13
|
console_command: -> { "bin/console" },
|
|
13
14
|
}.freeze
|
|
14
15
|
|
data/lib/vidar/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: vidar
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.11.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Krzysztof Knapik
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: exe
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2019-11-
|
|
12
|
+
date: 2019-11-21 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: colorize
|