smqacloud 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/smqacloud.rb +8 -4
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 35c54ce2de5c390b1da148c960fe76a7c47057db
|
4
|
+
data.tar.gz: bd5b217f6b28ee5c54becaa04d97434067228390
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 40eefa8a186f8222ae91ea92d1782d136a4d7ffd6dae484fcb9c6adc1de72cd57123848c49c74e038b91f6a24dc45622e691e0252cd56ac8283e0da399245d3b
|
7
|
+
data.tar.gz: eb16c0b79f1cebcdb6cf4c94c73ac30993bc5e4faf0f119d076212e04b4cb4972c854f18bd17a5bfbbfa14aadc37d8fb354093cf1b224628f55cb846c749988b
|
data/lib/smqacloud.rb
CHANGED
@@ -44,14 +44,16 @@ $add_variable = Hash.new
|
|
44
44
|
|
45
45
|
if $var.has_key?("path") == true then
|
46
46
|
if $var["path"].empty? == false then
|
47
|
-
|
47
|
+
path = $var["path"]
|
48
48
|
end
|
49
49
|
else
|
50
|
-
|
50
|
+
path = $env["path"]
|
51
51
|
end
|
52
52
|
req_all_scripts(path)
|
53
53
|
dur1 = Time.now
|
54
|
-
|
54
|
+
taskName = $task_name
|
55
|
+
load "#{taskName}.rb"
|
56
|
+
# send($task_name)
|
55
57
|
|
56
58
|
rescue Exception => e
|
57
59
|
|
@@ -111,7 +113,9 @@ $add_variable = Hash.new
|
|
111
113
|
end
|
112
114
|
req_all_scripts(path)
|
113
115
|
dur1 = Time.now
|
114
|
-
|
116
|
+
taskName = $task_name
|
117
|
+
load "#{taskName}.rb"
|
118
|
+
# send($task_name)
|
115
119
|
|
116
120
|
rescue Exception => e
|
117
121
|
puts "Exception occured, Checkpoint should have more info."
|