dapp 0.5.3 → 0.5.4

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: 071bbb7b561e8d4ce143364d2c54338397ec0bdf
4
- data.tar.gz: cb648ec82ec73d7068c2b85d36b14550a56c9470
3
+ metadata.gz: e5d017933da4768131f34525742c26e604a39e3b
4
+ data.tar.gz: 121c7b049d68ca081245e026f68884f149f73a62
5
5
  SHA512:
6
- metadata.gz: ece8a2fa0c767a11b76a9a82e774c71812cb272e462f58e2c14c1f0a13abfb4e26e687c9caf5c127e670ca5f49de65a50052efbee8960dd966f5541adb8a6e69
7
- data.tar.gz: 88bdbc9487123425eebff62ff81e41967126addd799470bafe8f9ea9fe5e05caec553463e6c490d17f2a06fa729133750baa2085fd29027e9d3f7ba948291275
6
+ metadata.gz: 88cf75c2621ccdaa2d7c80b93e9685c32bb422841e05c0a1e5443aa6827e79ad59a05796fe8e17b810c055d8b55eece239098e36026b093bef86634deb2305d5
7
+ data.tar.gz: 0120e75385c0043bb9d16e3a97b99f8f6a667a394d09f75bb738a430488b3fef91c4abfbc0693cd9ec3d600b46e9fe8b1c538063df6e2f98dfd759266d3fac07
@@ -93,7 +93,12 @@ module Dapp
93
93
  end
94
94
 
95
95
  def should_be_tagged?
96
- !(image.tagged? || empty?)
96
+ !(image.tagged? || empty? || should_be_not_present?)
97
+ end
98
+
99
+ def should_be_not_present?
100
+ return false if next_stage.nil?
101
+ next_stage.image.tagged? || next_stage.should_be_not_present?
97
102
  end
98
103
 
99
104
  def image_name
@@ -9,6 +9,10 @@ module Dapp
9
9
  description: 'Change to directory',
10
10
  on: :head
11
11
 
12
+ option :build_dir,
13
+ long: '--build-dir PATH',
14
+ description: 'Directory where build cache stored (DIR/.dapps-build by default)'
15
+
12
16
  option :log_quiet,
13
17
  short: '-q',
14
18
  long: '--quiet',
@@ -20,10 +20,6 @@ BANNER
20
20
  long: '--tmp-dir-prefix PREFIX',
21
21
  description: 'Tmp directory prefix'
22
22
 
23
- option :build_dir,
24
- long: '--build-dir PATH',
25
- description: 'Directory where build cache stored (DIR/.dapps-build by default)'
26
-
27
23
  option :git_artifact_branch,
28
24
  long: '--git-artifact-branch BRANCH',
29
25
  description: 'Default branch to archive artifacts from'
@@ -15,10 +15,6 @@ Usage:
15
15
  Options:
16
16
  BANNER
17
17
 
18
- option :build_dir,
19
- long: '--build-dir PATH',
20
- description: 'Directory where build cache stored (DIR/.dapps-build by default)'
21
-
22
18
  option :git_artifact_branch,
23
19
  long: '--git-artifact-branch BRANCH',
24
20
  description: 'Default branch to archive artifacts from'
@@ -1,5 +1,5 @@
1
1
  # Version
2
2
  module Dapp
3
- VERSION = '0.5.3'.freeze
3
+ VERSION = '0.5.4'.freeze
4
4
  BUILD_CACHE_VERSION = 2
5
5
  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.5.3
4
+ version: 0.5.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dmitry Stolyarov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-08-16 00:00:00.000000000 Z
11
+ date: 2016-08-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mixlib-shellout