rbbt-util 5.26.132 → 5.26.133
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rbbt/workflow/step/run.rb +8 -6
- data/lib/rbbt/workflow/util/archive.rb +3 -4
- data/share/rbbt_commands/workflow/task +1 -0
- 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: 305b2b990497eb41e92a4abc1aa9beabd40d36c2a048b60a8d41123416e3c80b
|
4
|
+
data.tar.gz: 1d1a4d961e7490060a71511b3f118c19c4bfe8b3148ee9138115c88f7df40e57
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f31ec3f71b32e894e4a2755011184fa2a036b3dff1720725f6848b5e90cd62434ae4df4a617bc9ca95cbf56799564a6ca6bacc78923ac6e84185b853569fc89c
|
7
|
+
data.tar.gz: 7fd22893c76e6f75e0903e8122b1e3462d534d61ddeb2a4352e7887febc55f6769116b0428349568e033e7c91f738ed4ac434555a2926074f086c5b46de79b78
|
@@ -112,17 +112,19 @@ class Step
|
|
112
112
|
end
|
113
113
|
|
114
114
|
def updatable?
|
115
|
-
(ENV["RBBT_UPDATE_ALL_JOBS"] == 'true' || Open.exists?(info_file)) && ! (relocated? && done?)
|
115
|
+
(ENV["RBBT_UPDATE_ALL_JOBS"] == 'true' || ( ENV["RBBT_UPDATE"] == "true" && Open.exists?(info_file)) && status != :noinfo && ! (relocated? && done?))
|
116
116
|
end
|
117
117
|
|
118
118
|
def dependency_checks
|
119
|
+
return [] if ENV["RBBT_UPDATE"] != "true"
|
120
|
+
|
119
121
|
rec_dependencies.
|
120
|
-
|
121
|
-
|
122
|
-
select{|dependency| Open.exists?(dependency.path) || ((Open.exists?(dependency.info_file) && (dependency.status == :cleaned) || dependency.status == :waiting)) }.
|
123
|
-
select{|dependency|
|
122
|
+
reject{|dependency| (defined?(WorkflowRemoteClient) && WorkflowRemoteClient::RemoteStep === dependency) || Open.remote?(dependency.path) }.
|
123
|
+
reject{|dependency| dependency.error? }.
|
124
|
+
#select{|dependency| Open.exists?(dependency.path) || ((Open.exists?(dependency.info_file) && (dependency.status == :cleaned) || dependency.status == :waiting)) }.
|
125
|
+
#select{|dependency| Open.exists?(dependency.path) || ((Open.exists?(dependency.info_file) && (dependency.status == :cleaned) || dependency.status == :waiting)) }.
|
124
126
|
select{|dependency| dependency.updatable? }.
|
125
|
-
|
127
|
+
collect{|dependency| Workflow.relocate_dependency(self, dependency)}
|
126
128
|
end
|
127
129
|
|
128
130
|
def input_checks
|
@@ -204,18 +204,17 @@ puts resource[path].find(search_path)
|
|
204
204
|
|
205
205
|
files_and_dirs = Set.new( files )
|
206
206
|
files.each do |file|
|
207
|
-
parts = file.split("/")[0..-2]
|
207
|
+
parts = file.split("/")[0..-2].reject{|p| p.empty?}
|
208
208
|
while parts.any?
|
209
209
|
files_and_dirs << parts * "/"
|
210
210
|
parts.pop
|
211
211
|
end
|
212
212
|
end
|
213
213
|
|
214
|
-
TmpFile.with_file(files_and_dirs.to_a * "\n") do |tmp_include_file|
|
214
|
+
TmpFile.with_file(files_and_dirs.sort_by{|l| l.length}.to_a * "\n", false) do |tmp_include_file|
|
215
215
|
test_str = options[:test] ? '-nv' : ''
|
216
216
|
|
217
|
-
|
218
|
-
cmd = "rsync -avztAXHP --progress #{test_str} --include-from='#{tmp_include_file}' --exclude='*' #{source}/ #{target}/ #{other_rsync_args}"
|
217
|
+
cmd = "rsync -avztAXHP --progress #{test_str} --files-from='#{tmp_include_file}' #{source}/ #{target}/ #{other_rsync_args}"
|
219
218
|
|
220
219
|
cmd << " && rm -Rf #{source}" if options[:delete]
|
221
220
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rbbt-util
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.26.
|
4
|
+
version: 5.26.133
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Miguel Vazquez
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-02-
|
11
|
+
date: 2020-02-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|