rbbt-util 5.32.4 → 5.32.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rbbt/resource.rb +5 -1
- data/lib/rbbt/workflow.rb +11 -0
- data/share/rbbt_commands/migrate +3 -3
- 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: 421178e8bb0a2b8631af02c890c177132a9bfdad08d62cc7bb728cab9679f8f0
|
4
|
+
data.tar.gz: 893045f7ff08c8bfbd1701dd6da74aee5e8b59a1f2af7d8fba21c06535f06e92
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fd00a95c8217671959abcddd6591243afdc9920f46bbda881161eb7f60e0c08a591194057c25d8e69f1ffcd192abcea1feacfc714c032033debdfa7378e60290
|
7
|
+
data.tar.gz: 645deeb97dfd4b30a0e552efa5f7fede9edbb0d6936d0c3849e4354ceafcdbba41739efbd1a421e80c5fcf462a426d3765e05f04933748765ed066fb1edd168f
|
data/lib/rbbt/resource.rb
CHANGED
@@ -159,7 +159,11 @@ module Resource
|
|
159
159
|
begin
|
160
160
|
produce(path.annotate(path + '.gz'), force)
|
161
161
|
rescue ResourceNotFound
|
162
|
-
|
162
|
+
begin
|
163
|
+
produce(path.annotate(path + '.bgz'), force)
|
164
|
+
rescue ResourceNotFound
|
165
|
+
raise ResourceNotFound, "Resource is missing and does not seem to be claimed: #{ self } -- #{ path } "
|
166
|
+
end
|
163
167
|
end
|
164
168
|
else
|
165
169
|
raise ResourceNotFound, "Resource is missing and does not seem to be claimed: #{ self } -- #{ path } "
|
data/lib/rbbt/workflow.rb
CHANGED
@@ -600,6 +600,17 @@ module Workflow
|
|
600
600
|
true
|
601
601
|
end
|
602
602
|
end
|
603
|
+
|
604
|
+
if ! Open.exists?(step.info_file)
|
605
|
+
begin
|
606
|
+
workflow = step.path.split("/")[-3]
|
607
|
+
task_name = step.path.split("/")[-2]
|
608
|
+
workflow = Kernel.const_get workflow
|
609
|
+
step.task = workflow.tasks[task_name.to_sym]
|
610
|
+
rescue
|
611
|
+
Log.exception $!
|
612
|
+
end
|
613
|
+
end
|
603
614
|
step
|
604
615
|
end
|
605
616
|
|
data/share/rbbt_commands/migrate
CHANGED
@@ -94,12 +94,12 @@ real_paths.each do |source|
|
|
94
94
|
end
|
95
95
|
|
96
96
|
if options[:target]
|
97
|
-
target_path = [options[:target], target] * ":"
|
97
|
+
target_path = [options[:target], "'" + target + "'"] * ":"
|
98
98
|
else
|
99
|
-
target_path = target
|
99
|
+
target_path = "'" + target + "'"
|
100
100
|
end
|
101
101
|
|
102
|
-
cmd = "rsync -avztAXHP --copy-unsafe-links #{test_str} #{excludes_str} #{source} #{target_path} #{other * " "}"
|
102
|
+
cmd = "rsync -avztAXHP --copy-unsafe-links #{test_str} #{excludes_str} '#{source}' #{target_path} #{other * " "}"
|
103
103
|
|
104
104
|
cmd << " && rm -Rf #{source}" if options[:delete]
|
105
105
|
|
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.32.
|
4
|
+
version: 5.32.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Miguel Vazquez
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-04-
|
11
|
+
date: 2021-04-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|