kontena-cli 1.1.1.rc1 → 1.1.1
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/VERSION +1 -1
- data/lib/kontena/command.rb +2 -2
- data/lib/kontena_cli.rb +4 -0
- data/spec/kontena/kontena_cli_spec.rb +8 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6375c4de944897ae1d7c56fdb0de7bac7cbbe79a
|
|
4
|
+
data.tar.gz: d25ef27c6e5cddc843c90cdb9bec53fbfa9354bf
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0cacb7083c66545a80ba743d289f47e326f488d382d0243339bcd72a4e12af4abfe0be9d7f3f7870e1bd5748df3e8e6edd0d6d971a70d3af507c3e0a31712f2a
|
|
7
|
+
data.tar.gz: fbfc01b96161a08c8e98fb2c60b4d4a418cebd2c829b60f20bbd099dd77bdbc0ad11862b6d6ef69ee7aa4eb4219982b2d9fc9bbf451cb189a3178d0d1a850e05
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.1.1
|
|
1
|
+
1.1.1
|
data/lib/kontena/command.rb
CHANGED
|
@@ -3,7 +3,7 @@ require 'clamp'
|
|
|
3
3
|
class Kontena::Command < Clamp::Command
|
|
4
4
|
|
|
5
5
|
option ['-D', '--debug'], :flag, "Enable debug", environment_variable: 'DEBUG' do
|
|
6
|
-
ENV['DEBUG']
|
|
6
|
+
ENV['DEBUG'] ||= 'true'
|
|
7
7
|
end
|
|
8
8
|
|
|
9
9
|
attr_accessor :arguments
|
|
@@ -85,7 +85,7 @@ class Kontena::Command < Clamp::Command
|
|
|
85
85
|
end
|
|
86
86
|
end
|
|
87
87
|
|
|
88
|
-
# Overwrite Clamp's banner command. Calling banner multiple times
|
|
88
|
+
# Overwrite Clamp's banner command. Calling banner multiple times
|
|
89
89
|
# will now add lines to the banner message instead of overwriting
|
|
90
90
|
# the whole message. This is useful if callbacks add banner messages.
|
|
91
91
|
#
|
data/lib/kontena_cli.rb
CHANGED
|
@@ -4,6 +4,14 @@ require 'kontena/light_prompt'
|
|
|
4
4
|
|
|
5
5
|
describe Kontena do
|
|
6
6
|
context 'prompt' do
|
|
7
|
+
before(:each) do
|
|
8
|
+
Kontena.reset_prompt
|
|
9
|
+
end
|
|
10
|
+
|
|
11
|
+
after(:each) do
|
|
12
|
+
Kontena.reset_prompt
|
|
13
|
+
end
|
|
14
|
+
|
|
7
15
|
it 'uses light prompt on windows' do
|
|
8
16
|
allow(ENV).to receive(:[]).with('OS').and_return('Windows_NT')
|
|
9
17
|
expect(Kontena.prompt).to be_kind_of(Kontena::LightPrompt)
|
|
@@ -19,7 +27,6 @@ describe Kontena do
|
|
|
19
27
|
end
|
|
20
28
|
|
|
21
29
|
it 'accepts a command line as string' do
|
|
22
|
-
|
|
23
30
|
Kontena.run('whoami --bash-completion-path')
|
|
24
31
|
end
|
|
25
32
|
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: kontena-cli
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.1.1
|
|
4
|
+
version: 1.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Kontena, Inc
|
|
@@ -621,9 +621,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
621
621
|
version: 2.1.0
|
|
622
622
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
623
623
|
requirements:
|
|
624
|
-
- - "
|
|
624
|
+
- - ">="
|
|
625
625
|
- !ruby/object:Gem::Version
|
|
626
|
-
version:
|
|
626
|
+
version: '0'
|
|
627
627
|
requirements: []
|
|
628
628
|
rubyforge_project:
|
|
629
629
|
rubygems_version: 2.6.8
|