rbbt-util 5.21.12 → 5.21.13

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
  SHA1:
3
- metadata.gz: cbd4d23a38b98c466d3ab1b72ffcfb73dfb95ca0
4
- data.tar.gz: f653f6d7a27c46ccb033541dce6cc1856a4097f0
3
+ metadata.gz: b06cf8516814c6318a02559d8e4fdc2070157e1e
4
+ data.tar.gz: 9c6ad7d0a952e326608b4d0ff64fb5d1b45a5c20
5
5
  SHA512:
6
- metadata.gz: 2ca5bf41660d16d1aad616fbf4031d70ba2ec8f5e80b2c595a245d4ddd3870d1589c1385cc21aefae6b83e9babb6c2693db8a3fa259bdfd76ae8720e27c186e1
7
- data.tar.gz: 5e3e86e5620868874ef7f6b4d06ec635cfd7b186982043530ece3d26b22bccc6a9374ae6518fd4f01e6300a9f09ec925dcd55e1abbbe2fcbf5ca36c4804b1ceb
6
+ metadata.gz: 64cfa6be07276c6101cd18a159735dc6d592d13599ce426ddecf88c57f7c72972a51509b90d71e6b407eb3e625eda4c1abe3eb7a355a3678dd400a51475f4143
7
+ data.tar.gz: 8f190990816453f3757876c37a341b1356ec61de8e492cce72f62cfbfa31a5589cb511c8d5b5fbb098c2e1068f777937aacd7f75419d2d1391d2eadbe0428b7f
@@ -378,7 +378,7 @@ module Misc
378
378
  raise $! unless File.exist? path
379
379
  end
380
380
 
381
- content.join if content.respond_to? :join and not content.joined?
381
+ content.join if content.respond_to? :join and not (content.respond_to?(:joined?) and content.joined?)
382
382
 
383
383
  if Lockfile === lock_options[:lock] and lock_options[:lock].locked?
384
384
  lock_options[:lock].unlock
data/lib/rbbt/workflow.rb CHANGED
@@ -432,4 +432,12 @@ module Workflow
432
432
  end
433
433
  end
434
434
 
435
+ def self.load_remote_tasks(filename)
436
+ yaml_text = Open.read(filename)
437
+ remote_workflow_tasks = YAML.load(yaml_text)
438
+ Workflow.process_remote_tasks(remote_workflow_tasks)
439
+ end
440
+
441
+ load_remote_tasks(Rbbt.root.etc.remote_tasks.find) if Rbbt.root.etc.remote_tasks.exists?
442
+
435
443
  end
@@ -240,9 +240,7 @@ if options[:requires]
240
240
  end
241
241
 
242
242
  if options[:remote_workflow_tasks]
243
- yaml_text = Open.read(options[:remote_workflow_tasks])
244
- remote_workflow_tasks = YAML.load(yaml_text)
245
- Workflow.process_remote_tasks(remote_workflow_tasks)
243
+ Workflow.load_remote_tasks(options[:remote_workflow_tasks])
246
244
  end
247
245
 
248
246
  # Set task
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rbbt-util
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.21.12
4
+ version: 5.21.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miguel Vazquez