advance 0.4.8 → 0.4.10
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 +14 -10
- data/lib/advance/version.rb +1 -1
- 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: 0b0306aaac120b4fe21e3152a03d020cecf5857b2087e73518a994ff7906b2f7
|
4
|
+
data.tar.gz: 890c13a999ab88173e3931cdcd759215b072b47fbad12fac42511a96af5a3239
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2c22b737e9a0104ebd6bbbae1bab4f02f5e3d2ae8d05f67e64fc60c933ee4f1e2270a6d742432170554b8c9c35e2959b723835b5a854155e53c477d4e2ca1bb9
|
7
|
+
data.tar.gz: 438c8dba215246ec3bb2e706dad88a079d031560db25c51ed16838a7110ce503540f6ae3e7a2494456070b0c1c1fc6f42358dad319991370c51a89d1e96fca51
|
data/Gemfile.lock
CHANGED
data/lib/advance.rb
CHANGED
@@ -240,7 +240,7 @@ module Advance
|
|
240
240
|
work_in_sub_dir(new_dir_name) do
|
241
241
|
do_command command, env_is?("ADVANCE_VERBOSE_LOGGING", false)
|
242
242
|
end
|
243
|
-
do_command_wo_log
|
243
|
+
do_command_wo_log("rm #{file_path}", false) if !env_is?("ADVANCE_SAVE_HISTORY", true)
|
244
244
|
rescue
|
245
245
|
puts "%%%% error while processing >>#{file_path}<<"
|
246
246
|
raise
|
@@ -313,16 +313,20 @@ module Advance
|
|
313
313
|
puts "#{YELLOW}#{command}#{RESET} " if feedback
|
314
314
|
start_time = Time.now
|
315
315
|
stdout, stderr, status = Open3.capture3(command)
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
|
316
|
+
|
317
|
+
if env_is?("ADVANCE_LOG_FILES", true)
|
318
|
+
elapsed_time = Time.now - start_time
|
319
|
+
File.open("log", "w") do |f|
|
320
|
+
f.puts "%%% command: >#{command}<"
|
321
|
+
f.puts "%%% returned status: >#{status}<"
|
322
|
+
f.puts "%%% elapsed time: #{elapsed_time} seconds"
|
323
|
+
f.puts "%%% stdout:"
|
324
|
+
f.puts stdout
|
325
|
+
f.puts "%%% stderr:"
|
326
|
+
f.puts stderr
|
327
|
+
end
|
325
328
|
end
|
329
|
+
|
326
330
|
if !status.success?
|
327
331
|
raise "step #{$step} failed with #{status}\n#{stderr}"
|
328
332
|
end
|
data/lib/advance/version.rb
CHANGED