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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 004ef399bbaea720212ff572b75ad76590b6a937a40ddb3412f036445f6aa4db
4
- data.tar.gz: 8d1aa9f12402e41e6783c17cf8b78e9386cc76a01cf65ea9a39efb16330b250c
3
+ metadata.gz: 305b2b990497eb41e92a4abc1aa9beabd40d36c2a048b60a8d41123416e3c80b
4
+ data.tar.gz: 1d1a4d961e7490060a71511b3f118c19c4bfe8b3148ee9138115c88f7df40e57
5
5
  SHA512:
6
- metadata.gz: bfd45ce5a2fb29aa0c7fa0103a5c51eb8b4cb19f8c75c402af16511a9228ee53561a410042fa6d52cf7f823cb7e2c3462eb9982cce5dbef291c552e54b1176d9
7
- data.tar.gz: 79d474d7dd445d53033c61556780ff08cd8609aef2da4de7f7f77bd3b29da9a98122241d173d02a85cf07eb9576783a551ac5b8b463dd75c10bc759d25034450
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
- select{|dependency| ! (defined? WorkflowRemoteClient and WorkflowRemoteClient::RemoteStep === dependency) }.
121
- collect{|dependency| Workflow.relocate_dependency self, dependency}.
122
- select{|dependency| Open.exists?(dependency.path) || ((Open.exists?(dependency.info_file) && (dependency.status == :cleaned) || dependency.status == :waiting)) }.
123
- select{|dependency| ! Open.remote?(dependency.path) }.
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
- select{|dependency| ! dependency.error? }
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
- includes_str = "--include-from='#{tmp_include_file}'"
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
 
@@ -236,6 +236,7 @@ end
236
236
 
237
237
  if options[:update_all_jobs]
238
238
  ENV["RBBT_UPDATE_ALL_JOBS"] = 'true'
239
+ ENV["RBBT_UPDATE"] = 'true'
239
240
  end
240
241
 
241
242
  if options[:workflows]
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.132
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-05 00:00:00.000000000 Z
11
+ date: 2020-02-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake