libis-workflow-mongoid 2.0.20 → 2.0.21
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/libis/workflow/mongoid/run.rb +5 -0
- data/lib/libis/workflow/mongoid/version.rb +1 -1
- 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: 369adbd930676cc3f1f7abed09eaca268b62c850
|
4
|
+
data.tar.gz: 0e2cc8877e36ec37adc8386474f9172d8a42d88d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 54ccafbc16c97b63ddbe1747e1e37fdf305e79d14a16d980b3d4e968e324b7d6d13986e67a8cd26169b106afd35fe402bc4b73478a89f0807f44c492e73ba827
|
7
|
+
data.tar.gz: 4d758a5f8f305c6db546b8533dad291780bfee4e2eca27ed58c3f186d793707d30c0492c7898377387d4a05c4aab3d6775181264c8a3e80fafac3840f488cc45
|
@@ -44,6 +44,7 @@ module Libis
|
|
44
44
|
end
|
45
45
|
|
46
46
|
def run(action = :run)
|
47
|
+
self.start_date = Time.now
|
47
48
|
self.tasks = []
|
48
49
|
super action
|
49
50
|
self.reload
|
@@ -79,6 +80,10 @@ module Libis
|
|
79
80
|
::Logging::Repository.instance.delete(self.name)
|
80
81
|
end
|
81
82
|
|
83
|
+
def name
|
84
|
+
"#{self.job.name}-#{self.id.generation_time.strftime('%Y%m%d-%H%M%S')}-#{self.id.to_s[8..-1]}" rescue self.id.to_s
|
85
|
+
end
|
86
|
+
|
82
87
|
end
|
83
88
|
|
84
89
|
end
|
@@ -1,7 +1,7 @@
|
|
1
1
|
module Libis
|
2
2
|
module Workflow
|
3
3
|
module Mongoid
|
4
|
-
VERSION = '2.0.
|
4
|
+
VERSION = '2.0.21' unless const_defined? :VERSION # the guard is against a redefinition warning that happens on Travis
|
5
5
|
end
|
6
6
|
end
|
7
7
|
end
|