dapp 0.31.14 → 0.31.15
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/dapp/dapp/shellout/base.rb +2 -1
- data/lib/dapp/dimg/builder/ansible.rb +0 -1
- data/lib/dapp/dimg/git_artifact.rb +14 -8
- data/lib/dapp/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7c8038323b15eae4d8ca002fe75314d1ec15c6399af305442e7d8a163a981013
|
4
|
+
data.tar.gz: f22e2c78582d721b9b1aec1d1db953d3188c49eaea75d7de6183eccdc24028a6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5cbdef16dd8859b9b1df96a5b5edb62d561f039515366508ec3ae6e2c333b811ab0e08eda0cb6ed6cb675f30f51485cae754c84dc13f7ca7828ec3ae7e53efbd
|
7
|
+
data.tar.gz: eca193fd863de5c8386656c13bcf44f1d5b8c3dc81617c0f8e8fe35621160ba9c96d5eb18514300085c749af127ab4ca4533ba577f2339c6fe5621f314f28f61
|
@@ -62,10 +62,11 @@ module Dapp
|
|
62
62
|
stream = Stream.new
|
63
63
|
if verbose && !quiet
|
64
64
|
kwargs[:live_stream] = Proxy::Base.new(stream, STDOUT, with_time: time)
|
65
|
+
kwargs[:live_stderr] = Proxy::Error.new(stream, STDERR, with_time: time)
|
65
66
|
else
|
66
67
|
kwargs[:live_stdout] = Proxy::Base.new(stream, with_time: time)
|
68
|
+
kwargs[:live_stderr] = Proxy::Error.new(stream, with_time: time)
|
67
69
|
end
|
68
|
-
kwargs[:live_stderr] = Proxy::Error.new(stream, with_time: time)
|
69
70
|
|
70
71
|
shellout(*args, **kwargs).tap(&:error!)
|
71
72
|
rescue ::Mixlib::ShellOut::ShellCommandFailed => e
|
@@ -155,7 +155,6 @@ module Dapp
|
|
155
155
|
image.add_env('PYTHONPATH', container_workdir.join('lib'))
|
156
156
|
image.add_env('PYTHONIOENCODING', 'utf-8')
|
157
157
|
image.add_env('ANSIBLE_PREPEND_SYSTEM_PATH', dimg.dapp.dappdeps_base_path)
|
158
|
-
image.add_env('LC_ALL', 'C.UTF-8')
|
159
158
|
image.add_volumes_from("#{ansible_container}:rw")
|
160
159
|
image.add_volume "#{host_workdir(stage)}:#{container_workdir}:ro"
|
161
160
|
image.add_volume "#{host_tmpdir(stage)}:#{container_tmpdir}:rw"
|
@@ -108,7 +108,7 @@ module Dapp
|
|
108
108
|
options[:owner] = owner
|
109
109
|
options[:group] = group
|
110
110
|
|
111
|
-
options[:ignore_signature_auto_calculation]= ignore_signature_auto_calculation
|
111
|
+
options[:ignore_signature_auto_calculation] = ignore_signature_auto_calculation
|
112
112
|
end
|
113
113
|
end
|
114
114
|
|
@@ -130,15 +130,20 @@ module Dapp
|
|
130
130
|
test_path = [test_path, current_path_part].compact.join('/')
|
131
131
|
|
132
132
|
match = File.fnmatch(test_path, embedded_rel_path, File::FNM_PATHNAME|File::FNM_DOTMATCH)
|
133
|
-
break unless match ||
|
133
|
+
break unless match ||
|
134
|
+
File.fnmatch(File.join(test_path, '**'), embedded_rel_path, File::FNM_PATHNAME|File::FNM_DOTMATCH) ||
|
135
|
+
check_subpath?(test_path, embedded_rel_path)
|
134
136
|
|
135
137
|
any = (current_path_part == '**')
|
136
138
|
|
137
139
|
if any
|
138
140
|
inherited_paths << [current_path_part, path_parts].flatten.join('/')
|
139
141
|
inherited_paths << path_parts.join('/') unless path_parts.empty?
|
140
|
-
elsif match
|
141
|
-
inherited_paths <<
|
142
|
+
elsif match && !path_parts.empty?
|
143
|
+
inherited_paths << path_parts.join('/')
|
144
|
+
break
|
145
|
+
elsif path_parts.empty?
|
146
|
+
inherited_paths << '**'
|
142
147
|
break
|
143
148
|
end
|
144
149
|
end
|
@@ -305,9 +310,9 @@ module Dapp
|
|
305
310
|
else
|
306
311
|
repo.head_commit
|
307
312
|
end
|
308
|
-
end.tap do |c|
|
309
|
-
repo.dapp.log_info("Repository `#{repo.name}`: latest commit `#{c}` to `#{to}`") unless ignore_signature_auto_calculation
|
310
313
|
end
|
314
|
+
end.tap do |c|
|
315
|
+
repo.dapp.log_info("Repository `#{repo.name}`: latest commit `#{c}` to `#{to}`") unless ignore_signature_auto_calculation
|
311
316
|
end
|
312
317
|
end
|
313
318
|
|
@@ -369,10 +374,11 @@ module Dapp
|
|
369
374
|
def archive_file_with_tar_writer(stage, commit)
|
370
375
|
tar_write(dimg.tmp_path('archives', archive_file_name(commit))) do |tar|
|
371
376
|
each_archive_entry(stage, commit) do |path, content, mode|
|
377
|
+
relative_path = path[1..-1]
|
372
378
|
if mode == 0o120000 # symlink
|
373
|
-
tar.add_symlink
|
379
|
+
tar.add_symlink relative_path, content, mode
|
374
380
|
else
|
375
|
-
tar.add_file
|
381
|
+
tar.add_file relative_path, mode do |tf|
|
376
382
|
tf.write content
|
377
383
|
end
|
378
384
|
end
|
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.31.
|
4
|
+
version: 0.31.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: 2018-07-
|
11
|
+
date: 2018-07-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mixlib-shellout
|