batch_manager 0.3.7 → 0.3.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/batch_manager/executor.rb +1 -4
- data/lib/batch_manager/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eaa0eb636c2efd29269478afe59182015eebb35f
|
4
|
+
data.tar.gz: 381f7f985c89c37bf5dab2dcf10ceca8ca644753
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 25a0bda7f4b85ab6e670b9439a11ed2f273502322c77746d1a4e5764e97807b31c09ec697b63fe73b634d3baf9e8f40f9be5245e27a9cabcb131a468a0219388
|
7
|
+
data.tar.gz: a0abd5c4a17c90283a582d4a927319e8ae307df3081a2b5928f50b862b24180fb710ab3ef2f06e51c0f0bfc67c2c6cc47f776d5a88537379b3c07a70066dd9a9
|
@@ -31,12 +31,9 @@ module BatchManager
|
|
31
31
|
|
32
32
|
def exec_batch_script
|
33
33
|
write_log_header
|
34
|
-
eval(File.read(@batch_file_path))
|
34
|
+
eval(File.read(@batch_file_path), nil, @batch_file_path)
|
35
35
|
@logger.info "Succeeded."
|
36
36
|
@batch_status.update_schema if @wet
|
37
|
-
rescue => e
|
38
|
-
@logger.error e
|
39
|
-
@logger.info "Failed."
|
40
37
|
ensure
|
41
38
|
puts "Log saved at: #{@logger.log_file}" if @logger.log_file
|
42
39
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: batch_manager
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Weihu Chen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-12-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|