dynarex_cron 0.9.1 → 0.9.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +2 -1
- data.tar.gz.sig +0 -0
- data/lib/dynarex_cron.rb +9 -8
- 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: 7d6d831aa410f982a4d6e362fc3054e93b897198
|
4
|
+
data.tar.gz: 2b9761c099406b8e3433f30e188d0ae72b2b8cc9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c0880d7fcb65d010950510a5561306df1ea96ab96cb809d996b82e53df0d6a72a288ade8496ea3c9ee2935fd3e63e40daf1ec1227c24ea2866408a11a89d13b0
|
7
|
+
data.tar.gz: 94e202eec354151472036d76aa5a0790221514ea2a84d71119c2eb9a5f1bbb144fcf54f0ef08951964e7360bf44e3d9c64fb3bf43341e8bd0a85fcd47abad666
|
checksums.yaml.gz.sig
CHANGED
@@ -1 +1,2 @@
|
|
1
|
-
|
1
|
+
�ɭ�p�,YNe!�yӷ)�X'�6m|��VX���X=4�6���9z������9d;ZV��!&�:�G�3-��y2�K7/�8�H#|��j�5>2��s�s\��7����u�L+�;n�㶛��ss��1��{�8��A��f�l ���N�]>;��!��hf�T������T+�(��v�s�,������6,
|
2
|
+
��422��8!�W@�C�)�Єa�Ʉ��x��!u�W@���4(;"U��v�cl��|���Y
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/dynarex_cron.rb
CHANGED
@@ -14,7 +14,7 @@ class DynarexCron
|
|
14
14
|
# options: e.g. sps_address: 'sps', sps_port: '59000'
|
15
15
|
#
|
16
16
|
def initialize(dxfile=nil, sps_address: 'sps', sps_port: '59000', \
|
17
|
-
log: nil, time_offset: 0)
|
17
|
+
log: nil, time_offset: 0, logtopic: 'DynarexCron')
|
18
18
|
|
19
19
|
|
20
20
|
@dxfile, @sps_address, @sps_port, @log = dxfile, sps_address, sps_port, log
|
@@ -24,6 +24,7 @@ class DynarexCron
|
|
24
24
|
@time_offset = time_offset.to_i
|
25
25
|
|
26
26
|
@cron_entries = []
|
27
|
+
@logtopic = logtopic
|
27
28
|
|
28
29
|
|
29
30
|
if @dxfile then
|
@@ -41,7 +42,7 @@ class DynarexCron
|
|
41
42
|
@running = true
|
42
43
|
|
43
44
|
if @log then
|
44
|
-
@log.info '
|
45
|
+
@log.info @logtopic + '/start: Time.now: ' \
|
45
46
|
+ (Time.now + @time_offset).strftime(DF)
|
46
47
|
end
|
47
48
|
|
@@ -64,7 +65,7 @@ class DynarexCron
|
|
64
65
|
@buffer = buffer
|
65
66
|
|
66
67
|
rescue
|
67
|
-
@log.debug '
|
68
|
+
@log.debug @logtopic + '/start: warning: ' + ($!).inspect
|
68
69
|
end
|
69
70
|
|
70
71
|
end
|
@@ -118,8 +119,8 @@ class DynarexCron
|
|
118
119
|
datetime = (Time.now + @time_offset).strftime(DF)
|
119
120
|
|
120
121
|
if @log then
|
121
|
-
@log.info '
|
122
|
-
@log.info '
|
122
|
+
@log.info @logtopic + '/iterate: datetime: ' + datetime
|
123
|
+
@log.info @logtopic + '/iterate: cron.to_time: ' \
|
123
124
|
+ h[:cron].to_time.strftime(DF)
|
124
125
|
end
|
125
126
|
|
@@ -128,7 +129,7 @@ class DynarexCron
|
|
128
129
|
begin
|
129
130
|
|
130
131
|
if h[:fqm].empty? and @log then
|
131
|
-
@log.debug '
|
132
|
+
@log.debug @logtopic + '/iterate: no h[:fqw] found ' + h.inspect
|
132
133
|
end
|
133
134
|
|
134
135
|
msg = h[:fqm].gsub('!Time',Time.now.strftime("%H:%M"))
|
@@ -138,8 +139,8 @@ class DynarexCron
|
|
138
139
|
rescue
|
139
140
|
|
140
141
|
if @log then
|
141
|
-
@log.debug '
|
142
|
-
@log.debug '
|
142
|
+
@log.debug @logtopic + '/iterate: cron: ' + h[:cron].inspect
|
143
|
+
@log.debug @logtopic + '/iterate: h: ' + h.inspect + ' : ' \
|
143
144
|
+ ($!).inspect
|
144
145
|
end
|
145
146
|
|
metadata
CHANGED
metadata.gz.sig
CHANGED
Binary file
|