dynarex_cron 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/lib/dynarex_cron.rb +2 -3
- metadata +1 -1
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6d10d28a077e83a1e7c865f5a41f5cd440f391ea
|
4
|
+
data.tar.gz: 902d23f805bc7a2725347dd10695d1ea701d896e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b474eaaae566d5e1f9e71921a06351e19ec3d190d4ba2ed5d22600500bd6a954eabc4629d8565faafead4fdc2d8a9cb013e6274d7bb6840103b79c36aa5bea22
|
7
|
+
data.tar.gz: 80743efaeaeb043de59ee1b4d73082d7ddba24bfc5a2c715dc39272471e4e008ff197d876ca58ba144ab0018634fb658166229f4796bef78175745abb3069417
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/dynarex_cron.rb
CHANGED
@@ -22,11 +22,10 @@ class DynarexCron
|
|
22
22
|
while true
|
23
23
|
#puts Time.now.inspect
|
24
24
|
@dynarex.to_h.each do |h|
|
25
|
-
if h[:cron].to_time.strftime(
|
25
|
+
if h[:cron].to_time.strftime(DF) == Time.now.strftime(DF) then
|
26
26
|
Thread.new { run(h[:job]) }
|
27
27
|
t = h[:cron].next
|
28
|
-
s2 = "next run time for job %s is %s" % [h[:job], t.strftime(
|
29
|
-
puts s2
|
28
|
+
s2 = "next run time for job %s is %s" % [h[:job], t.strftime(DF)]
|
30
29
|
end
|
31
30
|
end
|
32
31
|
sleep 60 # wait for 60 seconds
|
metadata
CHANGED
metadata.gz.sig
CHANGED
Binary file
|