kontena-cli 0.8.3 → 0.8.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/bin/kontena +2 -0
- data/lib/kontena/cli/apps/deploy_command.rb +1 -1
- data/lib/kontena/cli/reset_password_command.rb +4 -2
- data/spec/kontena/cli/app/deploy_command_spec.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0628f196135c9957f21c05c15285a0f371189591
|
4
|
+
data.tar.gz: 11a863701cb5882231050becdc6580785d32d8cb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 889e623ca9d6d28f7539b32f71ef88b7e885e7a9f23210fbdddda03a7b0f039c0d4eb736295d8c56724389a1b5fdce410ba8a49e0d4276bac4242ed7083d8ad0
|
7
|
+
data.tar.gz: fe438888d3eee5e24d4ef5b06e94cd7a81030de268509fa9e98619a510dbf71d45dd2bfb671d4e1a708e1f9cc136c754876ec71675f7d7f81fe4fb2bd9d7c908
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.8.
|
1
|
+
0.8.4
|
data/bin/kontena
CHANGED
@@ -21,6 +21,7 @@ require 'kontena/cli/whoami_command'
|
|
21
21
|
require 'kontena/cli/verify_account_command'
|
22
22
|
require 'kontena/cli/invite_command'
|
23
23
|
require 'kontena/cli/forgot_password_command'
|
24
|
+
require 'kontena/cli/reset_password_command'
|
24
25
|
require 'kontena/cli/container_command'
|
25
26
|
require 'kontena/cli/grid_command'
|
26
27
|
require 'kontena/cli/node_command'
|
@@ -51,6 +52,7 @@ class MainCommand < Clamp::Command
|
|
51
52
|
subcommand "verify-account", "Verify registered account", Kontena::Cli::VerifyAccountCommand
|
52
53
|
subcommand "invite", "Invite user to Kontena Master", Kontena::Cli::InviteCommand
|
53
54
|
subcommand "forgot-password", "Request password reset for Kontena account", Kontena::Cli::ForgotPasswordCommand
|
55
|
+
subcommand "reset-password", "Reset Kontena account password", Kontena::Cli::ResetPasswordCommand
|
54
56
|
subcommand "version", "Show version", Kontena::Cli::VersionCommand
|
55
57
|
|
56
58
|
def execute
|
@@ -91,7 +91,7 @@ module Kontena::Cli::Apps
|
|
91
91
|
end
|
92
92
|
|
93
93
|
def in_deploy_queue?(name)
|
94
|
-
deploy_queue.find {|service| service['
|
94
|
+
deploy_queue.find {|service| service['name'] == prefixed_name(name)} != nil
|
95
95
|
end
|
96
96
|
|
97
97
|
def merge_env_vars(options)
|
@@ -4,9 +4,11 @@ class Kontena::Cli::ResetPasswordCommand < Clamp::Command
|
|
4
4
|
parameter "TOKEN", "Password reset token"
|
5
5
|
|
6
6
|
def execute
|
7
|
+
require 'highline/import'
|
8
|
+
|
7
9
|
require_api_url
|
8
|
-
password =
|
9
|
-
password2 =
|
10
|
+
password = ask("Password: ") { |q| q.echo = "*" }
|
11
|
+
password2 = ask("Password again: ") { |q| q.echo = "*" }
|
10
12
|
if password != password2
|
11
13
|
abort("Passwords don't match")
|
12
14
|
end
|
@@ -108,7 +108,7 @@ yml
|
|
108
108
|
allow(File).to receive(:read).with('kontena.yml').and_return(kontena_yml)
|
109
109
|
allow(File).to receive(:read).with('docker-compose.yml').and_return(docker_compose_yml)
|
110
110
|
allow(subject).to receive(:get_service).and_raise(Kontena::Errors::StandardError.new(404, 'Not Found'))
|
111
|
-
allow(subject).to receive(:create_service).and_return({'id' => 'kontena-test-mysql'},{'id' => 'kontena-test-wordpress'})
|
111
|
+
allow(subject).to receive(:create_service).and_return({'id' => 'cli/kontena-test-mysql', 'name' => 'kontena-test-mysql'},{'id' => 'cli/kontena-test-wordpress', 'name' => 'kontena-test-wordpress'})
|
112
112
|
allow(subject).to receive(:current_grid).and_return('1')
|
113
113
|
allow(subject).to receive(:deploy_service).and_return(nil)
|
114
114
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kontena-cli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kontena, Inc
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-09-
|
11
|
+
date: 2015-09-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|