dapp 0.35.0 → 0.35.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 59c94384729263dd6beae2c0cfcbd75f09010d43f334726ad53f561e70f43e93
4
- data.tar.gz: ea069cf6302db1aaf1e90291299f9dbf1887f06f091afd4a7bdf9beaaba7be25
3
+ metadata.gz: 4d582445e85c5fb764f8550bd9af362b24a8052501703361ff74e173d3331a5c
4
+ data.tar.gz: 1cf1ee08368dc4d5462a77b5f7b654550033464cad4bfd5dea186415a5cdb5f5
5
5
  SHA512:
6
- metadata.gz: 06f26d814a0f747fd4a40b7dc17d63896bfaf15dcd748a8bd1c7a467dde708bedc43726ab120cb8027e6f7ac1b832eae354c6ede5d9010bc402922981d5fe190
7
- data.tar.gz: 89517f7d50bef08d1d62f9f6fdd73de52068a7097f770326344f4b1b956a42d1517f482c8cb6d0591c465e86c043ee97edcfeaac9dcfc9be6641564d56c78a09
6
+ metadata.gz: 3dbdde8c67331bdcac234990fa4b83db2345d109372617fd8645adfb6b03e6eecba095340088424bb9490310e1c7541be73047d28935c847652b28d7133bf178
7
+ data.tar.gz: 48dca1e28cb796911dde4956287bf01dd95f13f20ea6f281be4320297bf5d1f6457fbb65c57b74fca73f3ec561b74efd74e1af1cbc363a96737a98ffaef7a994
@@ -56,15 +56,13 @@ module Dapp
56
56
  super()
57
57
  end
58
58
 
59
- def run_dapp_command(run_method, options: {}, try_host_docker_login: false)
59
+ def run_dapp_command(run_method, options: {})
60
60
  dapp = ::Dapp::Dapp.new(options: options)
61
61
  ::Dapp::CLI.dapp_object = dapp
62
62
  dapp.sentry_message("Manual usage: `#{options[:dapp_command]}` command") unless ENV['CI']
63
63
 
64
64
  log_dapp_running_time(dapp) do
65
65
  begin
66
- dapp.try_host_docker_login if try_host_docker_login
67
-
68
66
  if block_given?
69
67
  yield dapp
70
68
  elsif !run_method.nil?
@@ -55,6 +55,8 @@ module Dapp
55
55
  @_call_after_before_terminate = []
56
56
 
57
57
  ruby2go_init
58
+
59
+ try_host_docker_login
58
60
  end
59
61
 
60
62
  def options
@@ -39,7 +39,7 @@ BANNER
39
39
  def run(argv = ARGV)
40
40
  self.class.parse_options(self, argv)
41
41
  repo = self.class.required_argument(self, 'repo')
42
- run_dapp_command(run_method, options: cli_options(dimgs_patterns: cli_arguments, repo: repo, verbose: true), try_host_docker_login: true)
42
+ run_dapp_command(run_method, options: cli_options(dimgs_patterns: cli_arguments, repo: repo, verbose: true))
43
43
  end
44
44
  end
45
45
  end
@@ -28,7 +28,7 @@ BANNER
28
28
  def run(argv = ARGV)
29
29
  self.class.parse_options(self, argv)
30
30
  repo = self.class.required_argument(self, 'repo')
31
- run_dapp_command(run_method, options: cli_options(dimgs_patterns: cli_arguments, repo: repo, verbose: true), try_host_docker_login: true)
31
+ run_dapp_command(run_method, options: cli_options(dimgs_patterns: cli_arguments, repo: repo, verbose: true))
32
32
  end
33
33
  end
34
34
  end
@@ -31,9 +31,7 @@ BANNER
31
31
  def run(argv = ARGV)
32
32
  self.class.parse_options(self, argv)
33
33
  repo = self.class.required_argument(self, 'repo')
34
- run_dapp_command(run_method,
35
- options: cli_options(dimgs_patterns: cli_arguments, repo: repo),
36
- try_host_docker_login: true)
34
+ run_dapp_command(run_method, options: cli_options(dimgs_patterns: cli_arguments, repo: repo))
37
35
  end
38
36
  end
39
37
  end
@@ -31,7 +31,7 @@ BANNER
31
31
  def run(argv = ARGV)
32
32
  self.class.parse_options(self, argv)
33
33
  repository = repo
34
- run_dapp_command(run_method, options: cli_options(repo: repository), try_host_docker_login: true)
34
+ run_dapp_command(run_method, options: cli_options(repo: repository))
35
35
  end
36
36
 
37
37
  def repo
@@ -19,7 +19,7 @@ BANNER
19
19
  def run(argv = ARGV)
20
20
  self.class.parse_options(self, argv)
21
21
  repo = self.class.required_argument(self, 'repo')
22
- run_dapp_command(:stages_flush_repo, options: cli_options(repo: repo), try_host_docker_login: true)
22
+ run_dapp_command(:stages_flush_repo, options: cli_options(repo: repo))
23
23
  end
24
24
  end
25
25
  end
@@ -25,9 +25,7 @@ BANNER
25
25
  def run(argv = ARGV)
26
26
  self.class.parse_options(self, argv)
27
27
  repo = self.class.required_argument(self, 'repo')
28
- run_dapp_command(:stages_pull,
29
- options: cli_options(dimgs_patterns: cli_arguments, repo: repo),
30
- try_host_docker_login: true)
28
+ run_dapp_command(:stages_pull, options: cli_options(dimgs_patterns: cli_arguments, repo: repo))
31
29
  end
32
30
  end
33
31
  end
@@ -21,9 +21,7 @@ BANNER
21
21
  def run(argv = ARGV)
22
22
  self.class.parse_options(self, argv)
23
23
  repo = self.class.required_argument(self, 'repo')
24
- run_dapp_command(:stages_push,
25
- options: cli_options(dimgs_patterns: cli_arguments, repo: repo),
26
- try_host_docker_login: true)
24
+ run_dapp_command(:stages_push, options: cli_options(dimgs_patterns: cli_arguments, repo: repo))
27
25
  end
28
26
  end
29
27
  end
@@ -87,9 +87,9 @@ module Dapp
87
87
  begin
88
88
  dimg_labels = dapp.dimg_registry(repo).image_config(docker_tag, dimg.name)["config"]["Labels"]
89
89
  docker_image_id = dapp.dimg_registry(repo).image_id(docker_tag, dimg.name)
90
- rescue ::Dapp::Dimg::Error::Registry => err
90
+ rescue ::Dapp::Dimg::Error::Registry => e
91
91
  unless disable_warnings
92
- dapp.log_warning "Registry `#{err.net_status[:data][:registry]}` is not availabble: cannot determine <dimg>.docker_image_id and <dimg>.git.<ga>.commit_id helm values of dimg#{dimg.name ? " `#{dimg.name}`" : nil}"
92
+ dapp.log_warning "Cannot determine <dimg>.docker_image_id and <dimg>.git.<ga>.commit_id helm values of dimg#{dimg.name ? " `#{dimg.name}`" : nil}: #{e.net_status[:data][:message]}"
93
93
  end
94
94
  end
95
95
  end
@@ -1,4 +1,4 @@
1
1
  module Dapp
2
- VERSION = "0.35.0"
2
+ VERSION = "0.35.1"
3
3
  BUILD_CACHE_VERSION = 31
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.35.0
4
+ version: 0.35.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-09-12 00:00:00.000000000 Z
11
+ date: 2018-09-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mixlib-shellout