rbatch 2.0.0 → 2.1.0
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.
- data/CHANGELOG +7 -0
- data/README.ja.md +70 -47
- data/README.md +261 -238
- data/bin/rbatch-init +27 -6
- data/doc/RBatch/CommonConfig.html +108 -12
- data/doc/RBatch/Config.html +108 -12
- data/doc/RBatch/Log.html +108 -65
- data/doc/RBatch/RunConf.html +78 -78
- data/doc/RBatch.html +274 -44
- data/doc/created.rid +9 -9
- data/doc/index.html +30 -8
- data/doc/lib/rbatch/cmd_rb.html +1 -1
- data/doc/lib/rbatch/common_config_rb.html +1 -1
- data/doc/lib/rbatch/config_rb.html +1 -1
- data/doc/lib/rbatch/double_run_checker_rb.html +1 -1
- data/doc/lib/rbatch/log_rb.html +1 -1
- data/doc/lib/rbatch/run_conf_rb.html +1 -1
- data/doc/lib/rbatch/version_rb.html +1 -1
- data/doc/lib/rbatch_rb.html +1 -1
- data/lib/rbatch/common_config.rb +36 -10
- data/lib/rbatch/config.rb +36 -10
- data/lib/rbatch/log.rb +12 -1
- data/lib/rbatch/run_conf.rb +4 -1
- data/lib/rbatch/version.rb +1 -1
- data/lib/rbatch.rb +68 -14
- data/sample/.rbatchrc +127 -0
- data/spec/cmd_spec.rb +2 -4
- data/spec/common_config_spec.rb +38 -7
- data/spec/config_spec.rb +36 -6
- data/spec/log_spec.rb +6 -6
- data/spec/rbatch_spec.rb +2 -4
- data/spec/run_conf_spec.rb +3 -2
- data/spec/spec_helper.rb +5 -0
- metadata +5 -3
- data/sample/conf/rbatch.yaml +0 -68
data/doc/RBatch.html
CHANGED
@@ -108,6 +108,8 @@
|
|
108
108
|
<h3 class="section-header">Methods</h3>
|
109
109
|
<ul class="link-list">
|
110
110
|
|
111
|
+
<li><a href="#method-i-add_log">#add_log</a></li>
|
112
|
+
|
111
113
|
<li><a href="#method-i-cmd">#cmd</a></li>
|
112
114
|
|
113
115
|
<li><a href="#method-i-common_config">#common_config</a></li>
|
@@ -122,12 +124,22 @@
|
|
122
124
|
|
123
125
|
<li><a href="#method-i-journal">#journal</a></li>
|
124
126
|
|
127
|
+
<li><a href="#method-i-journals">#journals</a></li>
|
128
|
+
|
129
|
+
<li><a href="#method-i-lib_dir">#lib_dir</a></li>
|
130
|
+
|
125
131
|
<li><a href="#method-i-log_dir">#log_dir</a></li>
|
126
132
|
|
127
133
|
<li><a href="#method-i-program_base">#program_base</a></li>
|
128
134
|
|
129
135
|
<li><a href="#method-i-program_name">#program_name</a></li>
|
130
136
|
|
137
|
+
<li><a href="#method-i-program_path">#program_path</a></li>
|
138
|
+
|
139
|
+
<li><a href="#method-i-reload_common_config">#reload_common_config</a></li>
|
140
|
+
|
141
|
+
<li><a href="#method-i-reload_config">#reload_config</a></li>
|
142
|
+
|
131
143
|
<li><a href="#method-i-run_conf">#run_conf</a></li>
|
132
144
|
|
133
145
|
<li><a href="#method-i-run_conf_path">#run_conf_path</a></li>
|
@@ -224,6 +236,40 @@
|
|
224
236
|
<h3 class="section-header">Public Instance Methods</h3>
|
225
237
|
|
226
238
|
|
239
|
+
<div id="add-log-method" class="method-detail ">
|
240
|
+
<a name="method-i-add_log"></a>
|
241
|
+
|
242
|
+
<div class="method-heading">
|
243
|
+
|
244
|
+
<span class="method-name">add_log</span><span
|
245
|
+
class="method-args">(log)</span>
|
246
|
+
<span class="method-click-advice">click to toggle source</span>
|
247
|
+
|
248
|
+
</div>
|
249
|
+
|
250
|
+
<div class="method-description">
|
251
|
+
|
252
|
+
|
253
|
+
|
254
|
+
|
255
|
+
|
256
|
+
<div class="method-source-code"
|
257
|
+
id="add-log-source">
|
258
|
+
<pre>
|
259
|
+
<span class="ruby-comment cmt"># File lib/rbatch.rb, line 31</span>
|
260
|
+
31: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_log</span>(<span class="ruby-identifier">log</span>)
|
261
|
+
32: <span class="ruby-identifier">@@logs</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">log</span>
|
262
|
+
33: <span class="ruby-keyword kw">end</span></pre>
|
263
|
+
</div>
|
264
|
+
|
265
|
+
</div>
|
266
|
+
|
267
|
+
|
268
|
+
|
269
|
+
|
270
|
+
</div>
|
271
|
+
|
272
|
+
|
227
273
|
<div id="cmd-method" class="method-detail ">
|
228
274
|
<a name="method-i-cmd"></a>
|
229
275
|
|
@@ -273,17 +319,15 @@ shortcut of <a href="RBatch/Cmd.html">RBatch::Cmd</a>
|
|
273
319
|
|
274
320
|
<div class="method-description">
|
275
321
|
|
276
|
-
|
277
|
-
Alias of RBatch::CommonConfig.new
|
278
|
-
</p>
|
322
|
+
|
279
323
|
|
280
324
|
|
281
325
|
|
282
326
|
<div class="method-source-code"
|
283
327
|
id="common-config-source">
|
284
328
|
<pre>
|
285
|
-
|
286
|
-
|
329
|
+
<span class="ruby-comment cmt"># File lib/rbatch.rb, line 29</span>
|
330
|
+
29: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">common_config</span> ; <span class="ruby-identifier">@@common_config</span> ; <span class="ruby-keyword kw">end</span></pre>
|
287
331
|
</div>
|
288
332
|
|
289
333
|
</div>
|
@@ -314,8 +358,8 @@ Alias of RBatch::CommonConfig.new
|
|
314
358
|
<div class="method-source-code"
|
315
359
|
id="conf-dir-source">
|
316
360
|
<pre>
|
317
|
-
<span class="ruby-comment cmt"># File lib/rbatch.rb, line
|
318
|
-
|
361
|
+
<span class="ruby-comment cmt"># File lib/rbatch.rb, line 25</span>
|
362
|
+
25: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">conf_dir</span> ; <span class="ruby-identifier">@@run_conf</span>[<span class="ruby-value">:conf_dir</span>].<span class="ruby-identifier">gsub</span>(<span class="ruby-value str">"<home>"</span>,<span class="ruby-identifier">@@home_dir</span>) ; <span class="ruby-keyword kw">end</span></pre>
|
319
363
|
</div>
|
320
364
|
|
321
365
|
</div>
|
@@ -339,17 +383,15 @@ Alias of RBatch::CommonConfig.new
|
|
339
383
|
|
340
384
|
<div class="method-description">
|
341
385
|
|
342
|
-
|
343
|
-
Alias of RBatch::Config.new
|
344
|
-
</p>
|
386
|
+
|
345
387
|
|
346
388
|
|
347
389
|
|
348
390
|
<div class="method-source-code"
|
349
391
|
id="config-source">
|
350
392
|
<pre>
|
351
|
-
|
352
|
-
|
393
|
+
<span class="ruby-comment cmt"># File lib/rbatch.rb, line 28</span>
|
394
|
+
28: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">config</span> ; <span class="ruby-identifier">@@config</span> ; <span class="ruby-keyword kw">end</span></pre>
|
353
395
|
</div>
|
354
396
|
|
355
397
|
</div>
|
@@ -380,8 +422,8 @@ Alias of RBatch::Config.new
|
|
380
422
|
<div class="method-source-code"
|
381
423
|
id="home-dir-source">
|
382
424
|
<pre>
|
383
|
-
<span class="ruby-comment cmt"># File lib/rbatch.rb, line
|
384
|
-
|
425
|
+
<span class="ruby-comment cmt"># File lib/rbatch.rb, line 22</span>
|
426
|
+
22: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">home_dir</span> ; <span class="ruby-identifier">@@home_dir</span> ; <span class="ruby-keyword kw">end</span></pre>
|
385
427
|
</div>
|
386
428
|
|
387
429
|
</div>
|
@@ -412,22 +454,29 @@ Alias of RBatch::Config.new
|
|
412
454
|
<div class="method-source-code"
|
413
455
|
id="init-source">
|
414
456
|
<pre>
|
415
|
-
<span class="ruby-comment cmt"># File lib/rbatch.rb, line
|
416
|
-
|
417
|
-
|
418
|
-
|
419
|
-
|
420
|
-
|
421
|
-
|
422
|
-
|
423
|
-
|
424
|
-
|
425
|
-
|
426
|
-
|
427
|
-
|
428
|
-
|
429
|
-
|
430
|
-
|
457
|
+
<span class="ruby-comment cmt"># File lib/rbatch.rb, line 46</span>
|
458
|
+
46: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">init</span>
|
459
|
+
47: <span class="ruby-identifier">@@journal_verbose</span> = <span class="ruby-constant">ENV</span>[<span class="ruby-value str">"RB_VERBOSE"</span>].<span class="ruby-identifier">to_i</span> <span class="ruby-keyword kw">if</span> <span class="ruby-constant">ENV</span>[<span class="ruby-value str">"RB_VERBOSE"</span>]
|
460
|
+
48: <span class="ruby-constant">RBatch</span>.<span class="ruby-identifier">journal</span> <span class="ruby-value">:info</span>,<span class="ruby-node">"=== START RBatch === (PID=#{$$.to_s})"</span>
|
461
|
+
49: <span class="ruby-identifier">@@program_name</span> = <span class="ruby-identifier">$PROGRAM_NAME</span>
|
462
|
+
50: <span class="ruby-identifier">@@program_base</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">basename</span>(<span class="ruby-identifier">$PROGRAM_NAME</span>)
|
463
|
+
51: <span class="ruby-identifier">@@program_path</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">expand_path</span>(<span class="ruby-identifier">@@program_name</span>)
|
464
|
+
52: <span class="ruby-keyword kw">if</span> <span class="ruby-constant">ENV</span>[<span class="ruby-value str">"RB_HOME"</span>]
|
465
|
+
53: <span class="ruby-identifier">@@home_dir</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">expand_path</span>(<span class="ruby-constant">ENV</span>[<span class="ruby-value str">"RB_HOME"</span>])
|
466
|
+
54: <span class="ruby-constant">RBatch</span>.<span class="ruby-identifier">journal</span> <span class="ruby-value">:debug</span>,<span class="ruby-node">"RB_HOME : \"#{@@home_dir}\" (defined by $RB_HOME)"</span>
|
467
|
+
55: <span class="ruby-keyword kw">else</span>
|
468
|
+
56: <span class="ruby-identifier">@@home_dir</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">expand_path</span>(<span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-constant">File</span>.<span class="ruby-identifier">dirname</span>(<span class="ruby-identifier">@@program_name</span>) , <span class="ruby-value str">".."</span>))
|
469
|
+
57: <span class="ruby-constant">RBatch</span>.<span class="ruby-identifier">journal</span> <span class="ruby-value">:debug</span>,<span class="ruby-node">"RB_HOME : \"#{@@home_dir}\" (default)"</span>
|
470
|
+
58: <span class="ruby-keyword kw">end</span>
|
471
|
+
59: <span class="ruby-identifier">@@run_conf_path</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-identifier">@@home_dir</span>,<span class="ruby-value str">".rbatchrc"</span>)
|
472
|
+
60: <span class="ruby-constant">RBatch</span>.<span class="ruby-identifier">journal</span> <span class="ruby-value">:info</span>,<span class="ruby-node">"Load Run-Conf: \"#{@@run_conf_path}\""</span>
|
473
|
+
61: <span class="ruby-identifier">@@run_conf</span> = <span class="ruby-constant">RunConf</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">@@run_conf_path</span>,<span class="ruby-identifier">@@home_dir</span>)
|
474
|
+
62: <span class="ruby-constant">RBatch</span>.<span class="ruby-identifier">journal</span> <span class="ruby-value">:debug</span>,<span class="ruby-node">"RBatch option : #{@@run_conf.inspect}"</span>
|
475
|
+
63: <span class="ruby-identifier">@@common_config</span> = <span class="ruby-constant">RBatch</span><span class="ruby-operator">::</span><span class="ruby-constant">CommonConfig</span>.<span class="ruby-identifier">new</span>
|
476
|
+
64: <span class="ruby-constant">RBatch</span>.<span class="ruby-identifier">journal</span> <span class="ruby-value">:info</span>,<span class="ruby-node">"Load Config : \"#{@@common_config.path}\""</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">@@common_config</span>.<span class="ruby-identifier">exist?</span>
|
477
|
+
65: <span class="ruby-identifier">@@config</span> = <span class="ruby-constant">RBatch</span><span class="ruby-operator">::</span><span class="ruby-constant">Config</span>.<span class="ruby-identifier">new</span>
|
478
|
+
66: <span class="ruby-constant">RBatch</span>.<span class="ruby-identifier">journal</span> <span class="ruby-value">:info</span>,<span class="ruby-node">"Load Config : \"#{@@config.path}\""</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">@@config</span>.<span class="ruby-identifier">exist?</span>
|
479
|
+
67: <span class="ruby-keyword kw">end</span></pre>
|
431
480
|
</div>
|
432
481
|
|
433
482
|
</div>
|
@@ -458,10 +507,83 @@ Alias of RBatch::Config.new
|
|
458
507
|
<div class="method-source-code"
|
459
508
|
id="journal-source">
|
460
509
|
<pre>
|
461
|
-
<span class="ruby-comment cmt"># File lib/rbatch.rb, line
|
462
|
-
|
463
|
-
|
464
|
-
|
510
|
+
<span class="ruby-comment cmt"># File lib/rbatch.rb, line 34</span>
|
511
|
+
34: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">journal</span>(<span class="ruby-identifier">level</span>,<span class="ruby-identifier">str</span>)
|
512
|
+
35: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">@@journal_verbose_map</span>[<span class="ruby-identifier">level</span>] <span class="ruby-operator"><=</span> <span class="ruby-identifier">@@journal_verbose</span>
|
513
|
+
36: <span class="ruby-identifier">str</span> = <span class="ruby-value str">"[RBatch] "</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">str</span>
|
514
|
+
37: <span class="ruby-identifier">puts</span> <span class="ruby-identifier">str</span>
|
515
|
+
38: <span class="ruby-identifier">@@journals</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">str</span>
|
516
|
+
39: <span class="ruby-identifier">@@logs</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">log</span><span class="ruby-operator">|</span>
|
517
|
+
40: <span class="ruby-keyword kw">if</span> <span class="ruby-constant">RBatch</span>.<span class="ruby-identifier">run_conf</span>[<span class="ruby-value">:mix_rbatch_msg_to_log</span>]
|
518
|
+
41: <span class="ruby-identifier">log</span>.<span class="ruby-identifier">journal</span>(<span class="ruby-identifier">str</span>)
|
519
|
+
42: <span class="ruby-keyword kw">end</span>
|
520
|
+
43: <span class="ruby-keyword kw">end</span>
|
521
|
+
44: <span class="ruby-keyword kw">end</span>
|
522
|
+
45: <span class="ruby-keyword kw">end</span></pre>
|
523
|
+
</div>
|
524
|
+
|
525
|
+
</div>
|
526
|
+
|
527
|
+
|
528
|
+
|
529
|
+
|
530
|
+
</div>
|
531
|
+
|
532
|
+
|
533
|
+
<div id="journals-method" class="method-detail ">
|
534
|
+
<a name="method-i-journals"></a>
|
535
|
+
|
536
|
+
<div class="method-heading">
|
537
|
+
|
538
|
+
<span class="method-name">journals</span><span
|
539
|
+
class="method-args">()</span>
|
540
|
+
<span class="method-click-advice">click to toggle source</span>
|
541
|
+
|
542
|
+
</div>
|
543
|
+
|
544
|
+
<div class="method-description">
|
545
|
+
|
546
|
+
|
547
|
+
|
548
|
+
|
549
|
+
|
550
|
+
<div class="method-source-code"
|
551
|
+
id="journals-source">
|
552
|
+
<pre>
|
553
|
+
<span class="ruby-comment cmt"># File lib/rbatch.rb, line 30</span>
|
554
|
+
30: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">journals</span> ; <span class="ruby-identifier">@@journals</span> ; <span class="ruby-keyword kw">end</span></pre>
|
555
|
+
</div>
|
556
|
+
|
557
|
+
</div>
|
558
|
+
|
559
|
+
|
560
|
+
|
561
|
+
|
562
|
+
</div>
|
563
|
+
|
564
|
+
|
565
|
+
<div id="lib-dir-method" class="method-detail ">
|
566
|
+
<a name="method-i-lib_dir"></a>
|
567
|
+
|
568
|
+
<div class="method-heading">
|
569
|
+
|
570
|
+
<span class="method-name">lib_dir</span><span
|
571
|
+
class="method-args">()</span>
|
572
|
+
<span class="method-click-advice">click to toggle source</span>
|
573
|
+
|
574
|
+
</div>
|
575
|
+
|
576
|
+
<div class="method-description">
|
577
|
+
|
578
|
+
|
579
|
+
|
580
|
+
|
581
|
+
|
582
|
+
<div class="method-source-code"
|
583
|
+
id="lib-dir-source">
|
584
|
+
<pre>
|
585
|
+
<span class="ruby-comment cmt"># File lib/rbatch.rb, line 27</span>
|
586
|
+
27: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">lib_dir</span> ; <span class="ruby-identifier">@@run_conf</span>[<span class="ruby-value">:lib_dir</span>].<span class="ruby-identifier">gsub</span>(<span class="ruby-value str">"<home>"</span>,<span class="ruby-identifier">@@home_dir</span>) ; <span class="ruby-keyword kw">end</span></pre>
|
465
587
|
</div>
|
466
588
|
|
467
589
|
</div>
|
@@ -492,8 +614,8 @@ Alias of RBatch::Config.new
|
|
492
614
|
<div class="method-source-code"
|
493
615
|
id="log-dir-source">
|
494
616
|
<pre>
|
495
|
-
<span class="ruby-comment cmt"># File lib/rbatch.rb, line
|
496
|
-
|
617
|
+
<span class="ruby-comment cmt"># File lib/rbatch.rb, line 26</span>
|
618
|
+
26: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">log_dir</span> ; <span class="ruby-identifier">@@run_conf</span>[<span class="ruby-value">:log_dir</span>].<span class="ruby-identifier">gsub</span>(<span class="ruby-value str">"<home>"</span>,<span class="ruby-identifier">@@home_dir</span>) ; <span class="ruby-keyword kw">end</span></pre>
|
497
619
|
</div>
|
498
620
|
|
499
621
|
</div>
|
@@ -524,8 +646,8 @@ Alias of RBatch::Config.new
|
|
524
646
|
<div class="method-source-code"
|
525
647
|
id="program-base-source">
|
526
648
|
<pre>
|
527
|
-
<span class="ruby-comment cmt"># File lib/rbatch.rb, line
|
528
|
-
|
649
|
+
<span class="ruby-comment cmt"># File lib/rbatch.rb, line 20</span>
|
650
|
+
20: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">program_base</span> ; <span class="ruby-identifier">@@program_base</span> ; <span class="ruby-keyword kw">end</span></pre>
|
529
651
|
</div>
|
530
652
|
|
531
653
|
</div>
|
@@ -556,8 +678,116 @@ Alias of RBatch::Config.new
|
|
556
678
|
<div class="method-source-code"
|
557
679
|
id="program-name-source">
|
558
680
|
<pre>
|
559
|
-
<span class="ruby-comment cmt"># File lib/rbatch.rb, line
|
560
|
-
|
681
|
+
<span class="ruby-comment cmt"># File lib/rbatch.rb, line 19</span>
|
682
|
+
19: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">program_name</span> ; <span class="ruby-identifier">@@program_name</span> ; <span class="ruby-keyword kw">end</span></pre>
|
683
|
+
</div>
|
684
|
+
|
685
|
+
</div>
|
686
|
+
|
687
|
+
|
688
|
+
|
689
|
+
|
690
|
+
</div>
|
691
|
+
|
692
|
+
|
693
|
+
<div id="program-path-method" class="method-detail ">
|
694
|
+
<a name="method-i-program_path"></a>
|
695
|
+
|
696
|
+
<div class="method-heading">
|
697
|
+
|
698
|
+
<span class="method-name">program_path</span><span
|
699
|
+
class="method-args">()</span>
|
700
|
+
<span class="method-click-advice">click to toggle source</span>
|
701
|
+
|
702
|
+
</div>
|
703
|
+
|
704
|
+
<div class="method-description">
|
705
|
+
|
706
|
+
|
707
|
+
|
708
|
+
|
709
|
+
|
710
|
+
<div class="method-source-code"
|
711
|
+
id="program-path-source">
|
712
|
+
<pre>
|
713
|
+
<span class="ruby-comment cmt"># File lib/rbatch.rb, line 21</span>
|
714
|
+
21: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">program_path</span> ; <span class="ruby-identifier">@@program_path</span> ; <span class="ruby-keyword kw">end</span></pre>
|
715
|
+
</div>
|
716
|
+
|
717
|
+
</div>
|
718
|
+
|
719
|
+
|
720
|
+
|
721
|
+
|
722
|
+
</div>
|
723
|
+
|
724
|
+
|
725
|
+
<div id="reload-common-config-method" class="method-detail ">
|
726
|
+
<a name="method-i-reload_common_config"></a>
|
727
|
+
|
728
|
+
<div class="method-heading">
|
729
|
+
|
730
|
+
<span class="method-name">reload_common_config</span><span
|
731
|
+
class="method-args">()</span>
|
732
|
+
<span class="method-click-advice">click to toggle source</span>
|
733
|
+
|
734
|
+
</div>
|
735
|
+
|
736
|
+
<div class="method-description">
|
737
|
+
|
738
|
+
|
739
|
+
|
740
|
+
|
741
|
+
|
742
|
+
<div class="method-source-code"
|
743
|
+
id="reload-common-config-source">
|
744
|
+
<pre>
|
745
|
+
<span class="ruby-comment cmt"># File lib/rbatch.rb, line 75</span>
|
746
|
+
75: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">reload_common_config</span>
|
747
|
+
76: <span class="ruby-keyword kw">begin</span>
|
748
|
+
77: <span class="ruby-identifier">@@common_config</span> = <span class="ruby-constant">RBatch</span><span class="ruby-operator">::</span><span class="ruby-constant">CommonConfig</span>.<span class="ruby-identifier">new</span>
|
749
|
+
78: <span class="ruby-constant">RBatch</span>.<span class="ruby-identifier">journal</span> <span class="ruby-value">:info</span>,<span class="ruby-node">"Load Config : \"#{@@common_config.path}\""</span>
|
750
|
+
79: <span class="ruby-keyword kw">rescue</span> <span class="ruby-constant">Errno</span><span class="ruby-operator">::</span><span class="ruby-constant">ENOENT</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">e</span>
|
751
|
+
80: <span class="ruby-keyword kw">end</span>
|
752
|
+
81: <span class="ruby-keyword kw">end</span></pre>
|
753
|
+
</div>
|
754
|
+
|
755
|
+
</div>
|
756
|
+
|
757
|
+
|
758
|
+
|
759
|
+
|
760
|
+
</div>
|
761
|
+
|
762
|
+
|
763
|
+
<div id="reload-config-method" class="method-detail ">
|
764
|
+
<a name="method-i-reload_config"></a>
|
765
|
+
|
766
|
+
<div class="method-heading">
|
767
|
+
|
768
|
+
<span class="method-name">reload_config</span><span
|
769
|
+
class="method-args">()</span>
|
770
|
+
<span class="method-click-advice">click to toggle source</span>
|
771
|
+
|
772
|
+
</div>
|
773
|
+
|
774
|
+
<div class="method-description">
|
775
|
+
|
776
|
+
|
777
|
+
|
778
|
+
|
779
|
+
|
780
|
+
<div class="method-source-code"
|
781
|
+
id="reload-config-source">
|
782
|
+
<pre>
|
783
|
+
<span class="ruby-comment cmt"># File lib/rbatch.rb, line 68</span>
|
784
|
+
68: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">reload_config</span>
|
785
|
+
69: <span class="ruby-keyword kw">begin</span>
|
786
|
+
70: <span class="ruby-identifier">@@config</span> = <span class="ruby-constant">RBatch</span><span class="ruby-operator">::</span><span class="ruby-constant">Config</span>.<span class="ruby-identifier">new</span>
|
787
|
+
71: <span class="ruby-constant">RBatch</span>.<span class="ruby-identifier">journal</span> <span class="ruby-value">:info</span>, <span class="ruby-node">"Load Config : \"#{@@config.path}\""</span>
|
788
|
+
72: <span class="ruby-keyword kw">rescue</span> <span class="ruby-constant">Errno</span><span class="ruby-operator">::</span><span class="ruby-constant">ENOENT</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">e</span>
|
789
|
+
73: <span class="ruby-keyword kw">end</span>
|
790
|
+
74: <span class="ruby-keyword kw">end</span></pre>
|
561
791
|
</div>
|
562
792
|
|
563
793
|
</div>
|
@@ -588,8 +818,8 @@ Alias of RBatch::Config.new
|
|
588
818
|
<div class="method-source-code"
|
589
819
|
id="run-conf-source">
|
590
820
|
<pre>
|
591
|
-
<span class="ruby-comment cmt"># File lib/rbatch.rb, line
|
592
|
-
|
821
|
+
<span class="ruby-comment cmt"># File lib/rbatch.rb, line 24</span>
|
822
|
+
24: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">run_conf</span> ; <span class="ruby-identifier">@@run_conf</span> ; <span class="ruby-keyword kw">end</span></pre>
|
593
823
|
</div>
|
594
824
|
|
595
825
|
</div>
|
@@ -620,8 +850,8 @@ Alias of RBatch::Config.new
|
|
620
850
|
<div class="method-source-code"
|
621
851
|
id="run-conf-path-source">
|
622
852
|
<pre>
|
623
|
-
<span class="ruby-comment cmt"># File lib/rbatch.rb, line
|
624
|
-
|
853
|
+
<span class="ruby-comment cmt"># File lib/rbatch.rb, line 23</span>
|
854
|
+
23: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">run_conf_path</span> ; <span class="ruby-identifier">@@run_conf_path</span> ; <span class="ruby-keyword kw">end</span></pre>
|
625
855
|
</div>
|
626
856
|
|
627
857
|
</div>
|
data/doc/created.rid
CHANGED
@@ -1,9 +1,9 @@
|
|
1
|
-
|
2
|
-
lib/rbatch/config.rb
|
3
|
-
lib/rbatch/version.rb
|
4
|
-
lib/rbatch/run_conf.rb
|
5
|
-
lib/rbatch/cmd.rb
|
6
|
-
lib/rbatch/common_config.rb
|
7
|
-
lib/rbatch/log.rb
|
8
|
-
lib/rbatch/double_run_checker.rb
|
9
|
-
lib/rbatch.rb
|
1
|
+
Fri, 10 Jan 2014 03:08:45 +0900
|
2
|
+
lib/rbatch/config.rb Fri, 10 Jan 2014 03:06:32 +0900
|
3
|
+
lib/rbatch/version.rb Thu, 02 Jan 2014 01:41:28 +0900
|
4
|
+
lib/rbatch/run_conf.rb Fri, 10 Jan 2014 03:06:32 +0900
|
5
|
+
lib/rbatch/cmd.rb Thu, 02 Jan 2014 01:41:28 +0900
|
6
|
+
lib/rbatch/common_config.rb Fri, 10 Jan 2014 03:06:32 +0900
|
7
|
+
lib/rbatch/log.rb Fri, 10 Jan 2014 03:06:32 +0900
|
8
|
+
lib/rbatch/double_run_checker.rb Thu, 02 Jan 2014 01:41:28 +0900
|
9
|
+
lib/rbatch.rb Fri, 10 Jan 2014 03:06:32 +0900
|
data/doc/index.html
CHANGED
@@ -66,11 +66,11 @@
|
|
66
66
|
|
67
67
|
<li><a href="RBatch/Log.html#method-c-new">::new — RBatch::Log</a></li>
|
68
68
|
|
69
|
-
<li><a href="RBatch/
|
69
|
+
<li><a href="RBatch/RunConf.html#method-c-new">::new — RBatch::RunConf</a></li>
|
70
70
|
|
71
71
|
<li><a href="RBatch/CommonConfig.html#method-c-new">::new — RBatch::CommonConfig</a></li>
|
72
72
|
|
73
|
-
<li><a href="RBatch/
|
73
|
+
<li><a href="RBatch/CmdResult.html#method-c-new">::new — RBatch::CmdResult</a></li>
|
74
74
|
|
75
75
|
<li><a href="RBatch/Cmd.html#method-c-new">::new — RBatch::Cmd</a></li>
|
76
76
|
|
@@ -78,14 +78,16 @@
|
|
78
78
|
|
79
79
|
<li><a href="RBatch/Log.html#method-c-verbose%3D">::verbose= — RBatch::Log</a></li>
|
80
80
|
|
81
|
-
<li><a href="RBatch/Config.html#method-i-%5B%5D">#[] — RBatch::Config</a></li>
|
82
|
-
|
83
81
|
<li><a href="RBatch/RunConf.html#method-i-%5B%5D">#[] — RBatch::RunConf</a></li>
|
84
82
|
|
83
|
+
<li><a href="RBatch/Config.html#method-i-%5B%5D">#[] — RBatch::Config</a></li>
|
84
|
+
|
85
85
|
<li><a href="RBatch/CommonConfig.html#method-i-%5B%5D">#[] — RBatch::CommonConfig</a></li>
|
86
86
|
|
87
87
|
<li><a href="RBatch/RunConf.html#method-i-%5B%5D%3D">#[]= — RBatch::RunConf</a></li>
|
88
88
|
|
89
|
+
<li><a href="RBatch.html#method-i-add_log">#add_log — RBatch</a></li>
|
90
|
+
|
89
91
|
<li><a href="RBatch/DoubleRunChecker.html#method-i-check">#check — RBatch::DoubleRunChecker</a></li>
|
90
92
|
|
91
93
|
<li><a href="RBatch/Log.html#method-i-close">#close — RBatch::Log</a></li>
|
@@ -106,6 +108,10 @@
|
|
106
108
|
|
107
109
|
<li><a href="RBatch/Log.html#method-i-error">#error — RBatch::Log</a></li>
|
108
110
|
|
111
|
+
<li><a href="RBatch/Config.html#method-i-exist%3F">#exist? — RBatch::Config</a></li>
|
112
|
+
|
113
|
+
<li><a href="RBatch/CommonConfig.html#method-i-exist%3F">#exist? — RBatch::CommonConfig</a></li>
|
114
|
+
|
109
115
|
<li><a href="RBatch/Log.html#method-i-fatal">#fatal — RBatch::Log</a></li>
|
110
116
|
|
111
117
|
<li><a href="RBatch.html#method-i-home_dir">#home_dir — RBatch</a></li>
|
@@ -116,6 +122,12 @@
|
|
116
122
|
|
117
123
|
<li><a href="RBatch.html#method-i-journal">#journal — RBatch</a></li>
|
118
124
|
|
125
|
+
<li><a href="RBatch/Log.html#method-i-journal">#journal — RBatch::Log</a></li>
|
126
|
+
|
127
|
+
<li><a href="RBatch.html#method-i-journals">#journals — RBatch</a></li>
|
128
|
+
|
129
|
+
<li><a href="RBatch.html#method-i-lib_dir">#lib_dir — RBatch</a></li>
|
130
|
+
|
119
131
|
<li><a href="RBatch/RunConf.html#method-i-load">#load — RBatch::RunConf</a></li>
|
120
132
|
|
121
133
|
<li><a href="RBatch/DoubleRunChecker.html#method-i-lock_file_name">#lock_file_name — RBatch::DoubleRunChecker</a></li>
|
@@ -130,16 +142,22 @@
|
|
130
142
|
|
131
143
|
<li><a href="RBatch/Log.html#method-i-opt">#opt — RBatch::Log</a></li>
|
132
144
|
|
133
|
-
<li><a href="RBatch/CommonConfig.html#method-i-path">#path — RBatch::CommonConfig</a></li>
|
134
|
-
|
135
145
|
<li><a href="RBatch/Config.html#method-i-path">#path — RBatch::Config</a></li>
|
136
146
|
|
147
|
+
<li><a href="RBatch/CommonConfig.html#method-i-path">#path — RBatch::CommonConfig</a></li>
|
148
|
+
|
137
149
|
<li><a href="RBatch.html#method-i-program_base">#program_base — RBatch</a></li>
|
138
150
|
|
139
151
|
<li><a href="RBatch.html#method-i-program_name">#program_name — RBatch</a></li>
|
140
152
|
|
153
|
+
<li><a href="RBatch.html#method-i-program_path">#program_path — RBatch</a></li>
|
154
|
+
|
141
155
|
<li><a href="RBatch/RunConf.html#method-i-reload">#reload — RBatch::RunConf</a></li>
|
142
156
|
|
157
|
+
<li><a href="RBatch.html#method-i-reload_common_config">#reload_common_config — RBatch</a></li>
|
158
|
+
|
159
|
+
<li><a href="RBatch.html#method-i-reload_config">#reload_config — RBatch</a></li>
|
160
|
+
|
143
161
|
<li><a href="RBatch/RunConf.html#method-i-reset">#reset — RBatch::RunConf</a></li>
|
144
162
|
|
145
163
|
<li><a href="RBatch/Cmd.html#method-i-run">#run — RBatch::Cmd</a></li>
|
@@ -160,14 +178,18 @@
|
|
160
178
|
|
161
179
|
<li><a href="RBatch/CmdResult.html#method-i-stdout_file">#stdout_file — RBatch::CmdResult</a></li>
|
162
180
|
|
181
|
+
<li><a href="RBatch/CommonConfig.html#method-i-to_h">#to_h — RBatch::CommonConfig</a></li>
|
182
|
+
|
183
|
+
<li><a href="RBatch/Config.html#method-i-to_h">#to_h — RBatch::Config</a></li>
|
184
|
+
|
163
185
|
<li><a href="RBatch/CmdResult.html#method-i-to_h">#to_h — RBatch::CmdResult</a></li>
|
164
186
|
|
187
|
+
<li><a href="RBatch/CmdResult.html#method-i-to_s">#to_s — RBatch::CmdResult</a></li>
|
188
|
+
|
165
189
|
<li><a href="RBatch/Config.html#method-i-to_s">#to_s — RBatch::Config</a></li>
|
166
190
|
|
167
191
|
<li><a href="RBatch/CommonConfig.html#method-i-to_s">#to_s — RBatch::CommonConfig</a></li>
|
168
192
|
|
169
|
-
<li><a href="RBatch/CmdResult.html#method-i-to_s">#to_s — RBatch::CmdResult</a></li>
|
170
|
-
|
171
193
|
<li><a href="RBatch/Log.html#method-i-warn">#warn — RBatch::Log</a></li>
|
172
194
|
|
173
195
|
</ul>
|
data/doc/lib/rbatch/cmd_rb.html
CHANGED
data/doc/lib/rbatch/log_rb.html
CHANGED