advance 0.3.12 → 0.3.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/advance.rb +13 -3
- data/lib/advance/version.rb +1 -1
- 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: 2c2accb4cdb32b6038232521c8b9913bdc12e1bc40f8c3c8b55ce8e6d9fde1bf
|
4
|
+
data.tar.gz: 9b07559d315463fbabb73a0bb7822dbb616e622c05c476c1a723fc2d97efacfb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a98648fe897101210763f71729b32dc29b8d9f87f6b01c7abc9d4c02d19eb3ede14031ccb4e45bb4e8f68b99dfc61e23a38dd69b18bcad0583aa5e8262b4397b
|
7
|
+
data.tar.gz: 7aa4b22b710f7ee24cebd81e1a729ded39e318bea95e1a00486b853c935a5d055f977bdac1781ad3bc08dac3fff8320f9b7eec5c85d08649225ec729f43cfa52
|
data/Gemfile.lock
CHANGED
data/lib/advance.rb
CHANGED
@@ -32,6 +32,17 @@ module Advance
|
|
32
32
|
$run_number = last_run_number + 1
|
33
33
|
$cores=`nproc`.to_i
|
34
34
|
puts "Multi steps will use #{$cores} cores"
|
35
|
+
|
36
|
+
$verbose_logging = case ENV["ADVANCE_VERBOSE_LOGGING"]
|
37
|
+
when "true"; true
|
38
|
+
when "false"; false
|
39
|
+
when nil
|
40
|
+
puts "For detailed logging of multi steps, rerun after 'export ADVANCE_VERBOSE_LOGGING=true'"
|
41
|
+
false
|
42
|
+
else
|
43
|
+
puts "env variable ADVANCE_VERBOSE_LOGGING should be 'true', 'false', or not present (defaults to 'false')"
|
44
|
+
puts "currently set to >#{ENV["ADVANCE_VERBOSE_LOGGING"]}<"
|
45
|
+
end
|
35
46
|
end
|
36
47
|
|
37
48
|
def update_meta(step_number, processing_mode, label, command, start_time, duration, file_count)
|
@@ -165,7 +176,6 @@ module Advance
|
|
165
176
|
end
|
166
177
|
|
167
178
|
def multi(command, previous_dir_path, dir_name)
|
168
|
-
no_feedback = false
|
169
179
|
work_in_sub_dir(dir_name) do
|
170
180
|
file_paths = Find.find(previous_dir_path).reject { |p| File.basename(p) =~ %r(^\.) || FileTest.directory?(p) || File.basename(p) == "log" }
|
171
181
|
|
@@ -187,9 +197,9 @@ module Advance
|
|
187
197
|
command.gsub!("{input_file}", file_path)
|
188
198
|
command.gsub!("{file_name}", basename)
|
189
199
|
command.gsub!("{file_name_without_extension}", root_file_name)
|
190
|
-
puts "#{YELLOW}#{command}#{RESET}"
|
200
|
+
puts "#{YELLOW}#{command}#{RESET} " if $verbose_logging
|
191
201
|
work_in_sub_dir(new_dir_name) do
|
192
|
-
do_command command,
|
202
|
+
do_command command, $verbose_logging
|
193
203
|
end
|
194
204
|
rescue
|
195
205
|
puts "%%%% error while processing >>#{file_path}<<"
|
data/lib/advance/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: advance
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- janemacfarlane
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-04-
|
11
|
+
date: 2019-04-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: team_effort
|