scout-gear 10.11.7 → 10.11.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/scout/workflow/deployment/local.rb +3 -2
- data/lib/scout/workflow/task/inputs.rb +6 -0
- data/scout-gear.gemspec +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6b7bdc9df1c419e24e56b1ed672153c50fb0e9ef052eba9f94631eed580263d3
|
|
4
|
+
data.tar.gz: 24ddb2d5458824e3fe6a13506dbba71509fc6b940ff11de5f9f622a7f22ff40f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e13fca602e72dad7ec0d5546f43036206e2e9dad99f429946fbc7ced2201b5a06039092a7e6f1b9342a0e5861e1e40e96e6ed31211f5cfd15b87b6970af36155
|
|
7
|
+
data.tar.gz: d292d7dbc6d4f92ed6d03e6f4245067d5d96964ae9a9013e33ed54200a77a9af5831ad10983ba4056468c7a920061613273027f89671e5fcafee64556a632402
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
10.11.
|
|
1
|
+
10.11.8
|
|
@@ -155,13 +155,14 @@ class Workflow::LocalExecutor
|
|
|
155
155
|
jobs = [jobs]
|
|
156
156
|
end
|
|
157
157
|
|
|
158
|
+
batches = Workflow::Orchestrator.job_batches(rules, jobs)
|
|
159
|
+
|
|
158
160
|
if jobs.length == 1
|
|
159
|
-
bar = jobs.first.progress_bar("
|
|
161
|
+
bar = jobs.first.progress_bar("Processing batches for #{jobs.first.short_path}", max: batches.length)
|
|
160
162
|
else
|
|
161
163
|
bar = true
|
|
162
164
|
end
|
|
163
165
|
|
|
164
|
-
batches = Workflow::Orchestrator.job_batches(rules, jobs)
|
|
165
166
|
batches.each do |batch|
|
|
166
167
|
rules = IndiferentHash.setup batch[:rules]
|
|
167
168
|
rules.delete :erase if jobs.include?(batch[:top_level])
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
require 'scout/named_array'
|
|
2
2
|
module Task
|
|
3
3
|
def self.format_input(value, type, options = {})
|
|
4
|
+
return nil if value.nil?
|
|
4
5
|
return value if IO === value || StringIO === value || Step === value
|
|
5
6
|
|
|
7
|
+
return value.to_i if type == :integer && ! value.nil?
|
|
8
|
+
return value.to_f if type == :float && ! value.nil?
|
|
9
|
+
|
|
6
10
|
if String === value && Path.is_filename?(value) && ! [:path, :file, :folder, :binary, :tsv].include?(type) && ! (options && (options[:noload] || options[:stream] || options[:nofile] || options[:asfile]))
|
|
7
11
|
if Open.exists?(value) && ! Open.directory?(value)
|
|
8
12
|
Persist.load(value, type)
|
|
@@ -13,6 +17,8 @@ module Task
|
|
|
13
17
|
if m = type.to_s.match(/(.*)_array/)
|
|
14
18
|
if Array === value
|
|
15
19
|
value.collect{|v| self.format_input(v, m[1].to_sym, options) }
|
|
20
|
+
else
|
|
21
|
+
value
|
|
16
22
|
end
|
|
17
23
|
else
|
|
18
24
|
value
|
data/scout-gear.gemspec
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
|
3
3
|
# Instead, edit Juwelier::Tasks in Rakefile, and run 'rake gemspec'
|
|
4
4
|
# -*- encoding: utf-8 -*-
|
|
5
|
-
# stub: scout-gear 10.11.
|
|
5
|
+
# stub: scout-gear 10.11.8 ruby lib
|
|
6
6
|
|
|
7
7
|
Gem::Specification.new do |s|
|
|
8
8
|
s.name = "scout-gear".freeze
|
|
9
|
-
s.version = "10.11.
|
|
9
|
+
s.version = "10.11.8".freeze
|
|
10
10
|
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
|
|
12
12
|
s.require_paths = ["lib".freeze]
|