dapp 0.14.20 → 0.14.21

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
  SHA1:
3
- metadata.gz: cf4bfd36c6e6fff2c9450f4370f0692bb4a5f125
4
- data.tar.gz: 89e2da70855182019730305f1acb57292e6498ec
3
+ metadata.gz: d846ed8124c7e2464795e2c8e86b6b53f2d9ab3d
4
+ data.tar.gz: 27b148d9a332541a39c812be10d5224053fcc755
5
5
  SHA512:
6
- metadata.gz: 843f07b9786395ebb95948e2162bfcc0b86ef1c9094c9a9e6f92a1b057529968a03aa23aff7ad1cd4a20a6f84970065ff49e1a24b9f798573c4c1671e86c47f3
7
- data.tar.gz: 57381396ebf484bfc61f13786285b6e7be04af7c3e656ac1a790bfd0a20fa66635e506eb3bb27f4a8d842837881ac41471f4dd226f6e066f1e1998e1856ccf4c
6
+ metadata.gz: 6d74ca445040c23a656af2b757895febbb4868ef6a340a5e238a721ac11bdf4fbd424210aac8afcf6f933a053d89ff1c1b90ee68be4830da5369f94071a8c0fd
7
+ data.tar.gz: 49275e9838504b343ac747c6946a12a278c7d35e53c39886d869f56605fe9748fd037de8e81ac2713b6df521064de4537f07e432f835aab2fe0578c13ba0f838
@@ -59,8 +59,11 @@ module Dapp
59
59
  def run_dapp_command(run_method, *args)
60
60
  dapp = ::Dapp::Dapp.new(*args)
61
61
  begin
62
- yield dapp if block_given?
63
- dapp.public_send(run_method) unless run_method.nil?
62
+ if block_given?
63
+ yield dapp
64
+ elsif run_method.nil?
65
+ dapp.public_send(run_method)
66
+ end
64
67
  end
65
68
  end
66
69
 
@@ -7,10 +7,14 @@ module Dapp::Dimg::CLI
7
7
  end
8
8
 
9
9
  def run_dapp_command(run_method, *args)
10
- super(run_method, *args) do |dapp|
10
+ super(nil, *args) do |dapp|
11
11
  begin
12
12
  dapp.host_docker_login
13
- yield dapp if run_method.nil? && block_given?
13
+ if block_given?
14
+ yield dapp
15
+ elsif run_method.nil?
16
+ dapp.public_send(run_method)
17
+ end
14
18
  ensure
15
19
  dapp.terminate
16
20
  end
@@ -1,4 +1,4 @@
1
1
  module Dapp
2
- VERSION = '0.14.20'.freeze
2
+ VERSION = '0.14.21'.freeze
3
3
  BUILD_CACHE_VERSION = 16
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dapp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.14.20
4
+ version: 0.14.21
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dmitry Stolyarov