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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3dbff2ff0349b92efd0c4662cc5ba5bb9c77a107
4
- data.tar.gz: e97fcc44533ceea1d85f3ca6e2384738885c83b9
3
+ metadata.gz: ab58b121ba8d5549900c91ed049cf981726887f1
4
+ data.tar.gz: 95dd37e1e372fadebaa843ad40b2b4322603258a
5
5
  SHA512:
6
- metadata.gz: 830eb29eb810e75dd9404f44771813b39b5eaffc6a6739f93214d3917138cdc67ecb4f8582da684c28f296158400bae84497854a4dceef89340f7299205a13bc
7
- data.tar.gz: 7676eef00836559b62814f9833d4877f6f8dd042a9d936f0b758c2e5127aa6f88c25bf6e2076245c62077239e1a9d84586a6bc5d028b7d0946e3d46891a5fb80
6
+ metadata.gz: 660a01b17f02ac9d417af94f301620869d2ef4df9e8b936d1ee1d19cf4f53080e526aef13214c621f5661506a5ba10a79240dd0128509c732b92158c36f2fbe6
7
+ data.tar.gz: 993c9515fd21ceca54ee401891b4c8858a48379615c02e7fa6610c5d5d3a6c46fa8f37d2c844ec755128f9769d5671900d39929e2370dcee40b4422d806c95bc
@@ -53,6 +53,7 @@ require 'dapp/error/shellout'
53
53
  require 'dapp/exception/base'
54
54
  require 'dapp/cli'
55
55
  require 'dapp/cli/options/tag'
56
+ require 'dapp/cli/options/ssh'
56
57
  require 'dapp/cli/command/base'
57
58
  require 'dapp/cli/command/update'
58
59
  require 'dapp/cli/command/slug'
@@ -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|
@@ -9,6 +9,7 @@ Usage:
9
9
  Options:
10
10
  BANNER
11
11
  extend ::Dapp::CLI::Options::Tag
12
+ extend ::Dapp::CLI::Options::Ssh
12
13
 
13
14
  option :namespace,
14
15
  long: '--namespace NAME',
@@ -4,6 +4,8 @@ module Dapp
4
4
  module Command
5
5
  module Deploy
6
6
  def kube_deploy
7
+ setup_ssh_agent
8
+
7
9
  helm_release do |release|
8
10
  do_deploy = proc do
9
11
  kube_run_deploy(release)
@@ -1,4 +1,4 @@
1
1
  module Dapp
2
- VERSION = "0.28.0"
2
+ VERSION = "0.28.1"
3
3
  BUILD_CACHE_VERSION = 28
4
4
  end
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.0
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-04-26 00:00:00.000000000 Z
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