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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2c05ac9474f73a94d39f56697e991e994e717997d6723b58a4d22096809930b8
4
- data.tar.gz: 7b8b0ca94625a8485dfac740c66e436bf6ba5ad2b27179ca301b4b606adaeff8
3
+ metadata.gz: 2c2accb4cdb32b6038232521c8b9913bdc12e1bc40f8c3c8b55ce8e6d9fde1bf
4
+ data.tar.gz: 9b07559d315463fbabb73a0bb7822dbb616e622c05c476c1a723fc2d97efacfb
5
5
  SHA512:
6
- metadata.gz: fe5fe56350c8453b55ca0d223c10a7a712ade0b234ddd4db50bd070e7d011ff9444d5071b0afdcdc7ec82f8d9ffbb3a7f7ec05a5abf4d62584c7e5b4e3845d24
7
- data.tar.gz: f54df03e18270c38618610bb7a73d23331fe24e9bca169a76b2da296de9b1b918f843ebe69d24531a97bf2c517a1cf65fea015f29b115acf7715eec212fad07f
6
+ metadata.gz: a98648fe897101210763f71729b32dc29b8d9f87f6b01c7abc9d4c02d19eb3ede14031ccb4e45bb4e8f68b99dfc61e23a38dd69b18bcad0583aa5e8262b4397b
7
+ data.tar.gz: 7aa4b22b710f7ee24cebd81e1a729ded39e318bea95e1a00486b853c935a5d055f977bdac1781ad3bc08dac3fff8320f9b7eec5c85d08649225ec729f43cfa52
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- advance (0.3.12)
4
+ advance (0.3.13)
5
5
  team_effort
6
6
 
7
7
  GEM
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, no_feedback
202
+ do_command command, $verbose_logging
193
203
  end
194
204
  rescue
195
205
  puts "%%%% error while processing >>#{file_path}<<"
@@ -1,3 +1,3 @@
1
1
  module Advance
2
- VERSION = "0.3.12"
2
+ VERSION = "0.3.13"
3
3
  end
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.12
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-22 00:00:00.000000000 Z
11
+ date: 2019-04-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: team_effort