dapp 0.28.0 → 0.28.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/lib/dapp.rb +1 -0
- data/lib/dapp/cli/options/ssh.rb +18 -0
- data/lib/dapp/dimg/cli/command/dimg/bp.rb +1 -7
- data/lib/dapp/dimg/cli/command/dimg/build.rb +1 -7
- data/lib/dapp/dimg/cli/command/dimg/run.rb +3 -7
- data/lib/dapp/kube/cli/command/kube/deploy.rb +1 -0
- data/lib/dapp/kube/dapp/command/deploy.rb +2 -0
- data/lib/dapp/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ab58b121ba8d5549900c91ed049cf981726887f1
|
4
|
+
data.tar.gz: 95dd37e1e372fadebaa843ad40b2b4322603258a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 660a01b17f02ac9d417af94f301620869d2ef4df9e8b936d1ee1d19cf4f53080e526aef13214c621f5661506a5ba10a79240dd0128509c732b92158c36f2fbe6
|
7
|
+
data.tar.gz: 993c9515fd21ceca54ee401891b4c8858a48379615c02e7fa6610c5d5d3a6c46fa8f37d2c844ec755128f9769d5671900d39929e2370dcee40b4422d806c95bc
|
data/lib/dapp.rb
CHANGED
@@ -0,0 +1,18 @@
|
|
1
|
+
module Dapp
|
2
|
+
class CLI
|
3
|
+
module Options
|
4
|
+
module Ssh
|
5
|
+
def self.extended(klass)
|
6
|
+
klass.class_eval do
|
7
|
+
option :ssh_key,
|
8
|
+
long: '--ssh-key SSH_KEY',
|
9
|
+
description: ['Enable only specified ssh keys ',
|
10
|
+
'(use system ssh-agent by default)'].join,
|
11
|
+
default: nil,
|
12
|
+
proc: ->(v) { composite_options(:ssh_key) << v }
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
@@ -16,6 +16,7 @@ BANNER
|
|
16
16
|
# build options
|
17
17
|
|
18
18
|
extend ::Dapp::Dimg::CLI::Options::Introspection
|
19
|
+
extend ::Dapp::CLI::Options::Ssh
|
19
20
|
|
20
21
|
option :tmp_dir_prefix,
|
21
22
|
long: '--tmp-dir-prefix PREFIX',
|
@@ -30,13 +31,6 @@ BANNER
|
|
30
31
|
long: '--git-artifact-branch BRANCH',
|
31
32
|
description: 'Default branch to archive artifacts from'
|
32
33
|
|
33
|
-
option :ssh_key,
|
34
|
-
long: '--ssh-key SSH_KEY',
|
35
|
-
description: ['Enable only specified ssh keys ',
|
36
|
-
'(use system ssh-agent by default)'].join,
|
37
|
-
default: nil,
|
38
|
-
proc: ->(v) { composite_options(:ssh_key) << v }
|
39
|
-
|
40
34
|
option :build_context_directory,
|
41
35
|
long: '--build-context-directory DIR_PATH',
|
42
36
|
default: nil
|
@@ -13,6 +13,7 @@ Options:
|
|
13
13
|
BANNER
|
14
14
|
|
15
15
|
extend ::Dapp::Dimg::CLI::Options::Introspection
|
16
|
+
extend ::Dapp::CLI::Options::Ssh
|
16
17
|
|
17
18
|
option :tmp_dir_prefix,
|
18
19
|
long: '--tmp-dir-prefix PREFIX',
|
@@ -27,13 +28,6 @@ BANNER
|
|
27
28
|
long: '--git-artifact-branch BRANCH',
|
28
29
|
description: 'Default branch to archive artifacts from'
|
29
30
|
|
30
|
-
option :ssh_key,
|
31
|
-
long: '--ssh-key SSH_KEY',
|
32
|
-
description: ['Enable only specified ssh keys ',
|
33
|
-
'(use system ssh-agent by default)'].join,
|
34
|
-
default: nil,
|
35
|
-
proc: ->(v) { composite_options(:ssh_key) << v }
|
36
|
-
|
37
31
|
option :build_context_directory,
|
38
32
|
long: '--build-context-directory DIR_PATH',
|
39
33
|
default: nil
|
@@ -12,18 +12,14 @@ Usage:
|
|
12
12
|
|
13
13
|
Options:
|
14
14
|
BANNER
|
15
|
+
|
16
|
+
extend ::Dapp::CLI::Options::Ssh
|
17
|
+
|
15
18
|
option :stage,
|
16
19
|
long: '--stage STAGE',
|
17
20
|
description: "Run one of the following stages (#{list_msg_format(DIMG_STAGES)})",
|
18
21
|
proc: STAGE_PROC.call(DIMG_STAGES)
|
19
22
|
|
20
|
-
option :ssh_key,
|
21
|
-
long: '--ssh-key SSH_KEY',
|
22
|
-
description: ['Enable only specified ssh keys ',
|
23
|
-
'(use system ssh-agent by default)'].join,
|
24
|
-
default: nil,
|
25
|
-
proc: ->(v) { composite_options(:ssh_key) << v }
|
26
|
-
|
27
23
|
def read_options(args)
|
28
24
|
self.class.cli_wrapper(self) do
|
29
25
|
args.each_with_index do |arg, i|
|
data/lib/dapp/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dapp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.28.
|
4
|
+
version: 0.28.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dmitry Stolyarov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-05-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mixlib-shellout
|
@@ -469,6 +469,7 @@ files:
|
|
469
469
|
- lib/dapp/cli/command/base.rb
|
470
470
|
- lib/dapp/cli/command/slug.rb
|
471
471
|
- lib/dapp/cli/command/update.rb
|
472
|
+
- lib/dapp/cli/options/ssh.rb
|
472
473
|
- lib/dapp/cli/options/tag.rb
|
473
474
|
- lib/dapp/config/config.rb
|
474
475
|
- lib/dapp/config/directive/base.rb
|