dapp 0.13.13 → 0.13.15

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: 02f03bab43041fee2897358ca3262e4d3c712d69
4
- data.tar.gz: 68a67d7bc551e1a4b27a40579dad44fd2c5509ec
3
+ metadata.gz: 5fa0a97a6909cfc4f97cac432fbbadd642182d0b
4
+ data.tar.gz: a95b621146463015efd477df2548108f8456fbb2
5
5
  SHA512:
6
- metadata.gz: 324d9d5c00cb1f4fe580ac4a0ea403559513e61287e9828b358223a7c8594f4717946c3baa6a8b832fc15c023c406bddb65d49a4a7673e96d8e1771c576c87d2
7
- data.tar.gz: 494400490d133e1fc264c8cfd2352026a52c39a5f5644c6f7d917fc65d05c1d87fcf1a0c15e2148d76b175b1e1fe14678060100f9b344d8805f67f5f7a8339ff
6
+ metadata.gz: 71afc61fbe8e6734d32334202833f7895eb78c84183e2ab71f528ab3ab578a535f2616d8f2461fb16209e3527057acb6a228d0852804e65c3f6bbd5ebcf1d0c2
7
+ data.tar.gz: 7ad67260407c8120dd6112611c2224079beb0ca4a91f8fe96028f63d8edcaf880df07f3d5964dda7de6b389af8352ed9c60b54eff55bf676d2b388c5cdb4205e
@@ -80,12 +80,40 @@ module Dapp
80
80
  end
81
81
  end
82
82
 
83
- manifest_start_index = evaluation_output.lines.index("MANIFEST:\n") + 1
84
- hook_start_index = evaluation_output.lines.index("HOOKS:\n") + 1
85
- manifest_end_index = evaluation_output.lines.index("Release \"#{name}\" has been upgraded. Happy Helming!\n")
83
+ if evaluation_output.lines.map(&:strip).grep(/ERROR: Job failed: exit status 1/).any?
84
+ warn evaluation_output
85
+ raise Error::Base, code: :helm_failed
86
+ end
87
+
88
+ hook_start_index = nil
89
+ if ind = evaluation_output.lines.index("HOOKS:\n")
90
+ hook_start_index = ind + 1
91
+ else
92
+ warn "[WARN][DEBUG INFO] Cannot find HOOKS section in helm dry-run output:"
93
+ evaluation_output.lines.each do |line|
94
+ warn "[WARN][DEBUG INFO] #{line.strip}"
95
+ end
96
+ end
97
+
98
+ manifest_start_index = nil
99
+ if ind = evaluation_output.lines.index("MANIFEST:\n")
100
+ manifest_start_index = ind + 1
101
+ else
102
+ warn "[WARN][DEBUG INFO] Cannot find MANIFEST section in helm dry-run output:"
103
+ evaluation_output.lines.each do |line|
104
+ warn "[WARN][DEBUG INFO] #{line.strip}"
105
+ end
106
+ end
107
+
108
+ unless manifest_end_index = evaluation_output.lines.index("Release \"#{name}\" has been upgraded. Happy Helming!\n")
109
+ warn "[WARN][DEBUG INFO] Cannot find end of MANIFEST section in helm dry-run output:"
110
+ evaluation_output.lines.each do |line|
111
+ warn "[WARN][DEBUG INFO] #{line.strip}"
112
+ end
113
+ end
86
114
 
87
- generator.call(evaluation_output.lines[hook_start_index..manifest_start_index-2].join)
88
- generator.call(evaluation_output.lines[manifest_start_index..manifest_end_index-2].join)
115
+ generator.call(evaluation_output.lines[hook_start_index..manifest_start_index-2].join) if hook_start_index and manifest_start_index
116
+ generator.call(evaluation_output.lines[manifest_start_index..manifest_end_index-2].join) if manifest_start_index and manifest_end_index
89
117
  end
90
118
  end
91
119
 
@@ -1,4 +1,4 @@
1
1
  module Dapp
2
- VERSION = '0.13.13'.freeze
2
+ VERSION = '0.13.15'.freeze
3
3
  BUILD_CACHE_VERSION = 15
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.13.13
4
+ version: 0.13.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dmitry Stolyarov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-08-02 00:00:00.000000000 Z
11
+ date: 2017-08-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mixlib-shellout