rbatch 2.1.6 → 2.1.7

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.
Files changed (74) hide show
  1. data/.gitignore +1 -0
  2. data/README.ja.md +5 -2
  3. data/README.md +12 -8
  4. data/lib/rbatch/cmd.rb +51 -10
  5. data/lib/rbatch/config.rb +47 -10
  6. data/lib/rbatch/controller.rb +1 -0
  7. data/lib/rbatch/double_run_checker.rb +2 -0
  8. data/lib/rbatch/journal.rb +1 -0
  9. data/lib/rbatch/log.rb +111 -41
  10. data/lib/rbatch/run_conf.rb +1 -0
  11. data/lib/rbatch/variables.rb +2 -0
  12. data/lib/rbatch/version.rb +1 -1
  13. data/lib/rbatch.rb +46 -0
  14. data/spec/rbatch/config_spec.rb +26 -0
  15. metadata +3 -61
  16. data/doc/RBatch/Cmd.html +0 -321
  17. data/doc/RBatch/CmdException.html +0 -164
  18. data/doc/RBatch/CmdResult.html +0 -494
  19. data/doc/RBatch/CommonConfig/Exception.html +0 -159
  20. data/doc/RBatch/CommonConfig.html +0 -456
  21. data/doc/RBatch/Config/Exception.html +0 -159
  22. data/doc/RBatch/Config.html +0 -416
  23. data/doc/RBatch/Controller.html +0 -374
  24. data/doc/RBatch/DoubleRunCheckException.html +0 -164
  25. data/doc/RBatch/DoubleRunChecker.html +0 -279
  26. data/doc/RBatch/Journal.html +0 -332
  27. data/doc/RBatch/Log.html +0 -667
  28. data/doc/RBatch/LogException.html +0 -164
  29. data/doc/RBatch/RBatch/RBatch/ConfigException.html +0 -164
  30. data/doc/RBatch/RBatch/RBatch.html +0 -163
  31. data/doc/RBatch/RBatch/VariablesException.html +0 -164
  32. data/doc/RBatch/RBatch.html +0 -165
  33. data/doc/RBatch/RunConf/Exception.html +0 -164
  34. data/doc/RBatch/RunConf.html +0 -503
  35. data/doc/RBatch/Variables.html +0 -437
  36. data/doc/RBatch.html +0 -411
  37. data/doc/created.rid +0 -11
  38. data/doc/images/brick.png +0 -0
  39. data/doc/images/brick_link.png +0 -0
  40. data/doc/images/bug.png +0 -0
  41. data/doc/images/bullet_black.png +0 -0
  42. data/doc/images/bullet_toggle_minus.png +0 -0
  43. data/doc/images/bullet_toggle_plus.png +0 -0
  44. data/doc/images/date.png +0 -0
  45. data/doc/images/find.png +0 -0
  46. data/doc/images/loadingAnimation.gif +0 -0
  47. data/doc/images/macFFBgHack.png +0 -0
  48. data/doc/images/package.png +0 -0
  49. data/doc/images/page_green.png +0 -0
  50. data/doc/images/page_white_text.png +0 -0
  51. data/doc/images/page_white_width.png +0 -0
  52. data/doc/images/plugin.png +0 -0
  53. data/doc/images/ruby.png +0 -0
  54. data/doc/images/tag_green.png +0 -0
  55. data/doc/images/wrench.png +0 -0
  56. data/doc/images/wrench_orange.png +0 -0
  57. data/doc/images/zoom.png +0 -0
  58. data/doc/index.html +0 -197
  59. data/doc/js/darkfish.js +0 -118
  60. data/doc/js/jquery.js +0 -32
  61. data/doc/js/quicksearch.js +0 -114
  62. data/doc/js/thickbox-compressed.js +0 -10
  63. data/doc/lib/rbatch/cmd_rb.html +0 -60
  64. data/doc/lib/rbatch/common_config_rb.html +0 -56
  65. data/doc/lib/rbatch/config_rb.html +0 -56
  66. data/doc/lib/rbatch/controller_rb.html +0 -66
  67. data/doc/lib/rbatch/double_run_checker_rb.html +0 -56
  68. data/doc/lib/rbatch/journal_rb.html +0 -52
  69. data/doc/lib/rbatch/log_rb.html +0 -60
  70. data/doc/lib/rbatch/run_conf_rb.html +0 -56
  71. data/doc/lib/rbatch/variables_rb.html +0 -54
  72. data/doc/lib/rbatch/version_rb.html +0 -52
  73. data/doc/lib/rbatch_rb.html +0 -54
  74. data/doc/rdoc.css +0 -763
@@ -1,416 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
3
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5
- <head>
6
- <meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
7
-
8
- <title>Class: RBatch::Config</title>
9
-
10
- <link rel="stylesheet" href="../rdoc.css" type="text/css" media="screen" />
11
-
12
- <script src="../js/jquery.js" type="text/javascript" charset="utf-8"></script>
13
- <script src="../js/thickbox-compressed.js" type="text/javascript" charset="utf-8"></script>
14
- <script src="../js/quicksearch.js" type="text/javascript" charset="utf-8"></script>
15
- <script src="../js/darkfish.js" type="text/javascript" charset="utf-8"></script>
16
-
17
- </head>
18
- <body id="top" class="class">
19
-
20
- <div id="metadata">
21
- <div id="home-metadata">
22
- <div id="home-section" class="section">
23
- <h3 class="section-header">
24
- <a href="../index.html">Home</a>
25
- <a href="../index.html#classes">Classes</a>
26
- <a href="../index.html#methods">Methods</a>
27
- </h3>
28
- </div>
29
- </div>
30
-
31
- <div id="file-metadata">
32
- <div id="file-list-section" class="section">
33
- <h3 class="section-header">In Files</h3>
34
- <div class="section-body">
35
- <ul>
36
-
37
- <li><a href="../lib/rbatch/config_rb.html?TB_iframe=true&amp;height=550&amp;width=785"
38
- class="thickbox" title="lib/rbatch/config.rb">lib/rbatch/config.rb</a></li>
39
-
40
- </ul>
41
- </div>
42
- </div>
43
-
44
-
45
- </div>
46
-
47
- <div id="class-metadata">
48
-
49
- <!-- Parent Class -->
50
- <div id="parent-class-section" class="section">
51
- <h3 class="section-header">Parent</h3>
52
-
53
- <p class="link">Object</p>
54
-
55
- </div>
56
-
57
-
58
-
59
-
60
-
61
-
62
-
63
- <!-- Method Quickref -->
64
- <div id="method-list-section" class="section">
65
- <h3 class="section-header">Methods</h3>
66
- <ul class="link-list">
67
-
68
- <li><a href="#method-c-new">::new</a></li>
69
-
70
- <li><a href="#method-i-5B-5D">#[]</a></li>
71
-
72
- <li><a href="#method-i-exist-3F">#exist?</a></li>
73
-
74
- <li><a href="#method-i-path">#path</a></li>
75
-
76
- <li><a href="#method-i-to_h">#to_h</a></li>
77
-
78
- <li><a href="#method-i-to_s">#to_s</a></li>
79
-
80
- </ul>
81
- </div>
82
-
83
-
84
-
85
- </div>
86
-
87
- <div id="project-metadata">
88
-
89
-
90
-
91
- <div id="classindex-section" class="section project-section">
92
- <h3 class="section-header">Class/Module Index
93
- <span class="search-toggle"><img src="../images/find.png"
94
- height="16" width="16" alt="[+]"
95
- title="show/hide quicksearch" /></span></h3>
96
- <form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
97
- <fieldset>
98
- <legend>Quicksearch</legend>
99
- <input type="text" name="quicksearch" value=""
100
- class="quicksearch-field" />
101
- </fieldset>
102
- </form>
103
-
104
- <ul class="link-list">
105
-
106
- <li><a href="../RBatch.html">RBatch</a></li>
107
-
108
- <li><a href="../RBatch/Cmd.html">RBatch::Cmd</a></li>
109
-
110
- <li><a href="../RBatch/CmdException.html">RBatch::CmdException</a></li>
111
-
112
- <li><a href="../RBatch/CmdResult.html">RBatch::CmdResult</a></li>
113
-
114
- <li><a href="../RBatch/Config.html">RBatch::Config</a></li>
115
-
116
- <li><a href="../RBatch/Controller.html">RBatch::Controller</a></li>
117
-
118
- <li><a href="../RBatch/DoubleRunCheckException.html">RBatch::DoubleRunCheckException</a></li>
119
-
120
- <li><a href="../RBatch/DoubleRunChecker.html">RBatch::DoubleRunChecker</a></li>
121
-
122
- <li><a href="../RBatch/Journal.html">RBatch::Journal</a></li>
123
-
124
- <li><a href="../RBatch/Log.html">RBatch::Log</a></li>
125
-
126
- <li><a href="../RBatch/LogException.html">RBatch::LogException</a></li>
127
-
128
- <li><a href="../RBatch/RBatch.html">RBatch::RBatch</a></li>
129
-
130
- <li><a href="../RBatch/RBatch/RBatch.html">RBatch::RBatch::RBatch</a></li>
131
-
132
- <li><a href="../RBatch/RBatch/RBatch/ConfigException.html">RBatch::RBatch::RBatch::ConfigException</a></li>
133
-
134
- <li><a href="../RBatch/RBatch/VariablesException.html">RBatch::RBatch::VariablesException</a></li>
135
-
136
- <li><a href="../RBatch/RunConf.html">RBatch::RunConf</a></li>
137
-
138
- <li><a href="../RBatch/RunConf/Exception.html">RBatch::RunConf::Exception</a></li>
139
-
140
- <li><a href="../RBatch/Variables.html">RBatch::Variables</a></li>
141
-
142
- </ul>
143
- <div id="no-class-search-results" style="display: none;">No matching classes.</div>
144
- </div>
145
-
146
-
147
- </div>
148
- </div>
149
-
150
- <div id="documentation">
151
- <h1 class="class">RBatch::Config</h1>
152
-
153
- <div id="description" class="description">
154
-
155
- </div><!-- description -->
156
-
157
-
158
-
159
-
160
- <div id="5Buntitled-5D" class="documentation-section">
161
-
162
-
163
-
164
-
165
-
166
-
167
-
168
-
169
- <!-- Methods -->
170
-
171
- <div id="public-class-method-details" class="method-section section">
172
- <h3 class="section-header">Public Class Methods</h3>
173
-
174
-
175
- <div id="new-method" class="method-detail ">
176
- <a name="method-c-new"></a>
177
-
178
-
179
- <div class="method-heading">
180
- <span class="method-name">new</span><span
181
- class="method-args">(path)</span>
182
- <span class="method-click-advice">click to toggle source</span>
183
- </div>
184
-
185
-
186
- <div class="method-description">
187
-
188
-
189
-
190
-
191
-
192
- <div class="method-source-code" id="new-source">
193
- <pre>
194
- <span class="ruby-comment"># File lib/rbatch/config.rb, line 9</span>
195
- <span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">path</span>)
196
- <span class="ruby-ivar">@path</span> = <span class="ruby-identifier">path</span>
197
- <span class="ruby-keyword">begin</span>
198
- <span class="ruby-ivar">@hash</span> = <span class="ruby-constant">YAML</span><span class="ruby-operator">::</span><span class="ruby-identifier">load_file</span>(<span class="ruby-ivar">@path</span>)
199
- <span class="ruby-keyword">rescue</span> <span class="ruby-constant">Errno</span><span class="ruby-operator">::</span><span class="ruby-constant">ENOENT</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">e</span>
200
- <span class="ruby-ivar">@hash</span> = <span class="ruby-keyword">nil</span>
201
- <span class="ruby-keyword">end</span>
202
- <span class="ruby-keyword">end</span></pre>
203
- </div><!-- new-source -->
204
-
205
- </div>
206
-
207
-
208
-
209
-
210
- </div><!-- new-method -->
211
-
212
-
213
- </div><!-- public-class-method-details -->
214
-
215
- <div id="public-instance-method-details" class="method-section section">
216
- <h3 class="section-header">Public Instance Methods</h3>
217
-
218
-
219
- <div id="5B-5D-method" class="method-detail ">
220
- <a name="method-i-5B-5D"></a>
221
-
222
-
223
- <div class="method-heading">
224
- <span class="method-name">[]</span><span
225
- class="method-args">(key)</span>
226
- <span class="method-click-advice">click to toggle source</span>
227
- </div>
228
-
229
-
230
- <div class="method-description">
231
-
232
-
233
-
234
-
235
-
236
- <div class="method-source-code" id="5B-5D-source">
237
- <pre>
238
- <span class="ruby-comment"># File lib/rbatch/config.rb, line 17</span>
239
- <span class="ruby-keyword">def</span><span class="ruby-operator">[]</span>(<span class="ruby-identifier">key</span>)
240
- <span class="ruby-keyword">if</span> <span class="ruby-ivar">@hash</span>.<span class="ruby-identifier">nil?</span>
241
- <span class="ruby-identifier">raise</span> <span class="ruby-constant">RBatch</span><span class="ruby-operator">::</span><span class="ruby-constant">ConfigException</span>, <span class="ruby-node">&quot;Config file \&quot;#{@path}\&quot; does not exist&quot;</span>
242
- <span class="ruby-keyword">end</span>
243
- <span class="ruby-keyword">if</span> <span class="ruby-ivar">@hash</span>[<span class="ruby-identifier">key</span>].<span class="ruby-identifier">nil?</span>
244
- <span class="ruby-keyword">if</span> <span class="ruby-identifier">key</span>.<span class="ruby-identifier">class</span> <span class="ruby-operator">==</span> <span class="ruby-constant">Symbol</span>
245
- <span class="ruby-identifier">raise</span> <span class="ruby-constant">RBatch</span><span class="ruby-operator">::</span><span class="ruby-constant">ConfigException</span>, <span class="ruby-node">&quot;Value of key(:#{key} (Symbol)) is nil. By any chance, dou you mistake key class Symbol for String?&quot;</span>
246
- <span class="ruby-keyword">elsif</span> <span class="ruby-identifier">key</span>.<span class="ruby-identifier">class</span> <span class="ruby-operator">==</span> <span class="ruby-constant">String</span>
247
- <span class="ruby-identifier">raise</span> <span class="ruby-constant">RBatch</span><span class="ruby-operator">::</span><span class="ruby-constant">ConfigException</span>, <span class="ruby-node">&quot;Value of key(\&quot;#{key}\&quot; (String)) is nil&quot;</span>
248
- <span class="ruby-keyword">else</span>
249
- <span class="ruby-identifier">raise</span> <span class="ruby-constant">RBatch</span><span class="ruby-operator">::</span><span class="ruby-constant">ConfigException</span>, <span class="ruby-node">&quot;Value of key(#{key}) is nil.&quot;</span>
250
- <span class="ruby-keyword">end</span>
251
- <span class="ruby-keyword">else</span>
252
- <span class="ruby-ivar">@hash</span>[<span class="ruby-identifier">key</span>]
253
- <span class="ruby-keyword">end</span>
254
- <span class="ruby-keyword">end</span></pre>
255
- </div><!-- 5B-5D-source -->
256
-
257
- </div>
258
-
259
-
260
-
261
-
262
- </div><!-- 5B-5D-method -->
263
-
264
-
265
- <div id="exist-3F-method" class="method-detail ">
266
- <a name="method-i-exist-3F"></a>
267
-
268
-
269
- <div class="method-heading">
270
- <span class="method-name">exist?</span><span
271
- class="method-args">()</span>
272
- <span class="method-click-advice">click to toggle source</span>
273
- </div>
274
-
275
-
276
- <div class="method-description">
277
-
278
-
279
-
280
-
281
-
282
- <div class="method-source-code" id="exist-3F-source">
283
- <pre>
284
- <span class="ruby-comment"># File lib/rbatch/config.rb, line 34</span>
285
- <span class="ruby-keyword">def</span> <span class="ruby-identifier">exist?</span> ; <span class="ruby-operator">!</span> <span class="ruby-ivar">@hash</span>.<span class="ruby-identifier">nil?</span> ; <span class="ruby-keyword">end</span></pre>
286
- </div><!-- exist-3F-source -->
287
-
288
- </div>
289
-
290
-
291
-
292
-
293
- </div><!-- exist-3F-method -->
294
-
295
-
296
- <div id="path-method" class="method-detail ">
297
- <a name="method-i-path"></a>
298
-
299
-
300
- <div class="method-heading">
301
- <span class="method-name">path</span><span
302
- class="method-args">()</span>
303
- <span class="method-click-advice">click to toggle source</span>
304
- </div>
305
-
306
-
307
- <div class="method-description">
308
-
309
-
310
-
311
-
312
-
313
- <div class="method-source-code" id="path-source">
314
- <pre>
315
- <span class="ruby-comment"># File lib/rbatch/config.rb, line 33</span>
316
- <span class="ruby-keyword">def</span> <span class="ruby-identifier">path</span> ; <span class="ruby-ivar">@path</span> ; <span class="ruby-keyword">end</span></pre>
317
- </div><!-- path-source -->
318
-
319
- </div>
320
-
321
-
322
-
323
-
324
- </div><!-- path-method -->
325
-
326
-
327
- <div id="to_h-method" class="method-detail ">
328
- <a name="method-i-to_h"></a>
329
-
330
-
331
- <div class="method-heading">
332
- <span class="method-name">to_h</span><span
333
- class="method-args">()</span>
334
- <span class="method-click-advice">click to toggle source</span>
335
- </div>
336
-
337
-
338
- <div class="method-description">
339
-
340
-
341
-
342
-
343
-
344
- <div class="method-source-code" id="to_h-source">
345
- <pre>
346
- <span class="ruby-comment"># File lib/rbatch/config.rb, line 35</span>
347
- <span class="ruby-keyword">def</span> <span class="ruby-identifier">to_h</span>
348
- <span class="ruby-keyword">if</span> <span class="ruby-ivar">@hash</span>.<span class="ruby-identifier">nil?</span>
349
- <span class="ruby-identifier">raise</span> <span class="ruby-constant">RBatch</span><span class="ruby-operator">::</span><span class="ruby-constant">ConfigException</span>, <span class="ruby-node">&quot;Config file \&quot;#{@path}\&quot; does not exist&quot;</span>
350
- <span class="ruby-keyword">else</span>
351
- <span class="ruby-ivar">@hash</span>
352
- <span class="ruby-keyword">end</span>
353
- <span class="ruby-keyword">end</span></pre>
354
- </div><!-- to_h-source -->
355
-
356
- </div>
357
-
358
-
359
-
360
-
361
- </div><!-- to_h-method -->
362
-
363
-
364
- <div id="to_s-method" class="method-detail ">
365
- <a name="method-i-to_s"></a>
366
-
367
-
368
- <div class="method-heading">
369
- <span class="method-name">to_s</span><span
370
- class="method-args">()</span>
371
- <span class="method-click-advice">click to toggle source</span>
372
- </div>
373
-
374
-
375
- <div class="method-description">
376
-
377
-
378
-
379
-
380
-
381
- <div class="method-source-code" id="to_s-source">
382
- <pre>
383
- <span class="ruby-comment"># File lib/rbatch/config.rb, line 42</span>
384
- <span class="ruby-keyword">def</span> <span class="ruby-identifier">to_s</span>
385
- <span class="ruby-keyword">if</span> <span class="ruby-ivar">@hash</span>.<span class="ruby-identifier">nil?</span>
386
- <span class="ruby-identifier">raise</span> <span class="ruby-constant">RBatch</span><span class="ruby-operator">::</span><span class="ruby-constant">ConfigException</span>, <span class="ruby-node">&quot;Config file \&quot;#{@path}\&quot; does not exist&quot;</span>
387
- <span class="ruby-keyword">else</span>
388
- <span class="ruby-ivar">@hash</span>.<span class="ruby-identifier">to_s</span>
389
- <span class="ruby-keyword">end</span>
390
- <span class="ruby-keyword">end</span></pre>
391
- </div><!-- to_s-source -->
392
-
393
- </div>
394
-
395
-
396
-
397
-
398
- </div><!-- to_s-method -->
399
-
400
-
401
- </div><!-- public-instance-method-details -->
402
-
403
- </div><!-- 5Buntitled-5D -->
404
-
405
-
406
- </div><!-- documentation -->
407
-
408
- <div id="validator-badges">
409
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
410
- <p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
411
- Rdoc Generator</a> 2</small>.</p>
412
- </div>
413
-
414
- </body>
415
- </html>
416
-