dapp 0.27.9 → 0.27.10
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 +4 -4
- data/lib/dapp/dimg/builder/ansible/assets.rb +21 -4
- data/lib/dapp/kube/dapp/command/deploy.rb +6 -2
- data/lib/dapp/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 80868182e4e924ea03ad4f0408d0f8043e3f5f9d
|
4
|
+
data.tar.gz: 86e0f31d27039293099a176fa9d112afb2de0adf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 515d9c9f831ce4ca8cb13d418d3b280055bbcd81e200a1e0fba4238fcd69158c6ecf7059dc8dcd4aed01fd11f39eb2f2378975ac8afbb9ce2a14cacfdc200ccb
|
7
|
+
data.tar.gz: 62e8cc4a2ca064a58ed1a130079a36eaa40449dc16d3b759e25781a7f7217ba30cf595a352080b781681165fcf5ce6be83645a5e3ff22d46432d8252210504a3
|
@@ -23,7 +23,7 @@ remote_tmp = #{remote_tmp}
|
|
23
23
|
become = yes
|
24
24
|
become_method = sudo
|
25
25
|
become_exe = #{become_exe}
|
26
|
-
become_flags = -E
|
26
|
+
become_flags = -E -H
|
27
27
|
}
|
28
28
|
end
|
29
29
|
|
@@ -172,13 +172,25 @@ class CallbackModule(CallbackBase):
|
|
172
172
|
name = task.name
|
173
173
|
if not name:
|
174
174
|
if task.action in self.FREE_FORM_MODULES:
|
175
|
-
name = task.args
|
175
|
+
name = task.args.get('_raw_params', '')
|
176
|
+
if task.action == 'file':
|
177
|
+
name = task.args.get('path')
|
178
|
+
if task.action == 'copy':
|
179
|
+
name = task.args.get('dest')
|
180
|
+
if task.action == 'group':
|
181
|
+
name = task.args.get('name')
|
182
|
+
if task.action == 'user':
|
183
|
+
name = task.args.get('name')
|
184
|
+
if task.action == 'get_url':
|
185
|
+
name = task.args.get('url')
|
176
186
|
if task.action == 'getent':
|
177
187
|
db = task.args.get('database')
|
178
188
|
key = task.args.get('key')
|
179
189
|
name = '%s %s' % (db, key)
|
180
190
|
if task.action == 'apt':
|
181
191
|
name = task.args.get('name')
|
192
|
+
if task.action == 'composer':
|
193
|
+
name = task.args.get('command', 'install')
|
182
194
|
name = re.sub(r'\s+', r' ', name)
|
183
195
|
if len(name) > 25 :
|
184
196
|
name = '%s...' % name[0:22]
|
@@ -188,10 +200,15 @@ class CallbackModule(CallbackBase):
|
|
188
200
|
''' output the result of a command run '''
|
189
201
|
|
190
202
|
self._display.display("%s | rc=%s >>" % (self._task_header(task, caption), result.get('rc', -1)), color)
|
203
|
+
msg = result.get('msg')
|
204
|
+
if msg:
|
205
|
+
self._display.display(msg, color)
|
191
206
|
# prevent dublication in case of live_stdout
|
192
207
|
if not result.get('live_stdout', False):
|
193
|
-
|
194
|
-
|
208
|
+
stdout = result.get('stdout', None)
|
209
|
+
if stdout:
|
210
|
+
self._display.display("stdout was:", color=C.COLOR_HIGHLIGHT)
|
211
|
+
self._display.display(stdout)
|
195
212
|
stderr = result.get('stderr', '')
|
196
213
|
if stderr:
|
197
214
|
self._display.display("stderr was:", color=C.COLOR_HIGHLIGHT)
|
@@ -154,7 +154,12 @@ module Dapp
|
|
154
154
|
|
155
155
|
begin
|
156
156
|
watch_hooks.each do |job|
|
157
|
-
|
157
|
+
begin
|
158
|
+
Kubernetes::Manager::Job.new(self, job.name).watch_till_done!
|
159
|
+
rescue ::Exception => e
|
160
|
+
sentry_exception(e, extra: {"job-spec" => job.spec})
|
161
|
+
raise
|
162
|
+
end
|
158
163
|
end # watch_hooks.each
|
159
164
|
rescue Kubernetes::Error::Default => e
|
160
165
|
# Default-ошибка -- это ошибка для пользователя которую перехватывает и
|
@@ -165,7 +170,6 @@ module Dapp
|
|
165
170
|
# Поэтому перехватываем и просто отображаем произошедшую
|
166
171
|
# ошибку для информации пользователю без завершения работы dapp.
|
167
172
|
$stderr.puts(::Dapp::Dapp.paint_string(::Dapp::Helper::NetStatus.message(e), :warning))
|
168
|
-
sentry_exception(e, extra: {"job-spec" => job.spec})
|
169
173
|
end
|
170
174
|
|
171
175
|
end # Thread
|
data/lib/dapp/version.rb
CHANGED
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.27.
|
4
|
+
version: 0.27.10
|
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-03-
|
11
|
+
date: 2018-03-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mixlib-shellout
|