rbatch 2.1.1 → 2.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (62) hide show
  1. data/README.ja.md +14 -5
  2. data/README.md +164 -154
  3. data/bin/rbatch-init +21 -13
  4. data/doc/RBatch/Cmd.html +300 -316
  5. data/doc/RBatch/CmdException.html +146 -141
  6. data/doc/RBatch/CmdResult.html +467 -470
  7. data/doc/RBatch/Config.html +392 -433
  8. data/doc/RBatch/Controller.html +374 -0
  9. data/doc/RBatch/DoubleRunCheckException.html +146 -141
  10. data/doc/RBatch/DoubleRunChecker.html +258 -256
  11. data/doc/RBatch/Journal.html +332 -0
  12. data/doc/RBatch/Log.html +636 -805
  13. data/doc/RBatch/LogException.html +164 -0
  14. data/doc/RBatch/RBatch/RBatch/ConfigException.html +164 -0
  15. data/doc/RBatch/RBatch/RBatch.html +163 -0
  16. data/doc/RBatch/RBatch/VariablesException.html +164 -0
  17. data/doc/RBatch/RBatch.html +165 -0
  18. data/doc/RBatch/RunConf/Exception.html +146 -141
  19. data/doc/RBatch/RunConf.html +478 -532
  20. data/doc/RBatch/Variables.html +437 -0
  21. data/doc/RBatch.html +388 -862
  22. data/doc/created.rid +11 -9
  23. data/doc/index.html +178 -184
  24. data/doc/js/darkfish.js +9 -7
  25. data/doc/lib/rbatch/cmd_rb.html +46 -44
  26. data/doc/lib/rbatch/config_rb.html +42 -42
  27. data/doc/lib/rbatch/controller_rb.html +66 -0
  28. data/doc/lib/rbatch/double_run_checker_rb.html +42 -42
  29. data/doc/lib/rbatch/journal_rb.html +52 -0
  30. data/doc/lib/rbatch/log_rb.html +46 -46
  31. data/doc/lib/rbatch/run_conf_rb.html +42 -42
  32. data/doc/lib/rbatch/variables_rb.html +54 -0
  33. data/doc/lib/rbatch/version_rb.html +38 -38
  34. data/doc/lib/rbatch_rb.html +40 -52
  35. data/doc/rdoc.css +365 -308
  36. data/lib/rbatch/cmd.rb +15 -58
  37. data/lib/rbatch/config.rb +7 -7
  38. data/lib/rbatch/controller.rb +37 -61
  39. data/lib/rbatch/double_run_checker.rb +0 -0
  40. data/lib/rbatch/journal.rb +40 -0
  41. data/lib/rbatch/log.rb +71 -129
  42. data/lib/rbatch/run_conf.rb +13 -24
  43. data/lib/rbatch/variables.rb +82 -0
  44. data/lib/rbatch/version.rb +1 -1
  45. data/lib/rbatch.rb +7 -36
  46. data/sample/.rbatchrc +41 -7
  47. data/spec/01_rbach_spec.rb +99 -0
  48. data/spec/{cmd_spec.rb → rbatch/cmd_spec.rb} +40 -43
  49. data/spec/rbatch/config_spec.rb +67 -0
  50. data/spec/rbatch/controller_spec.rb +18 -0
  51. data/spec/{double_run_checker_spec.rb → rbatch/double_run_checker_spec.rb} +3 -0
  52. data/spec/rbatch/journal_spec.rb +29 -0
  53. data/spec/rbatch/log_spec.rb +350 -0
  54. data/spec/{run_conf_spec.rb → rbatch/run_conf_spec.rb} +13 -5
  55. data/spec/rbatch/variables_spec.rb +68 -0
  56. data/spec/spec_helper.rb +4 -5
  57. metadata +33 -17
  58. data/lib/rbatch/common_config.rb +0 -0
  59. data/spec/common_config_spec.rb +0 -85
  60. data/spec/config_spec.rb +0 -79
  61. data/spec/log_spec.rb +0 -430
  62. data/spec/rbatch_spec.rb +0 -22
@@ -0,0 +1,332 @@
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::Journal</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/journal_rb.html?TB_iframe=true&amp;height=550&amp;width=785"
38
+ class="thickbox" title="lib/rbatch/journal.rb">lib/rbatch/journal.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-add_log">#add_log</a></li>
71
+
72
+ <li><a href="#method-i-put">#put</a></li>
73
+
74
+ </ul>
75
+ </div>
76
+
77
+
78
+
79
+ </div>
80
+
81
+ <div id="project-metadata">
82
+
83
+
84
+
85
+ <div id="classindex-section" class="section project-section">
86
+ <h3 class="section-header">Class/Module Index
87
+ <span class="search-toggle"><img src="../images/find.png"
88
+ height="16" width="16" alt="[+]"
89
+ title="show/hide quicksearch" /></span></h3>
90
+ <form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
91
+ <fieldset>
92
+ <legend>Quicksearch</legend>
93
+ <input type="text" name="quicksearch" value=""
94
+ class="quicksearch-field" />
95
+ </fieldset>
96
+ </form>
97
+
98
+ <ul class="link-list">
99
+
100
+ <li><a href="../RBatch.html">RBatch</a></li>
101
+
102
+ <li><a href="../RBatch/Cmd.html">RBatch::Cmd</a></li>
103
+
104
+ <li><a href="../RBatch/CmdException.html">RBatch::CmdException</a></li>
105
+
106
+ <li><a href="../RBatch/CmdResult.html">RBatch::CmdResult</a></li>
107
+
108
+ <li><a href="../RBatch/Config.html">RBatch::Config</a></li>
109
+
110
+ <li><a href="../RBatch/Controller.html">RBatch::Controller</a></li>
111
+
112
+ <li><a href="../RBatch/DoubleRunCheckException.html">RBatch::DoubleRunCheckException</a></li>
113
+
114
+ <li><a href="../RBatch/DoubleRunChecker.html">RBatch::DoubleRunChecker</a></li>
115
+
116
+ <li><a href="../RBatch/Journal.html">RBatch::Journal</a></li>
117
+
118
+ <li><a href="../RBatch/Log.html">RBatch::Log</a></li>
119
+
120
+ <li><a href="../RBatch/LogException.html">RBatch::LogException</a></li>
121
+
122
+ <li><a href="../RBatch/RBatch.html">RBatch::RBatch</a></li>
123
+
124
+ <li><a href="../RBatch/RBatch/RBatch.html">RBatch::RBatch::RBatch</a></li>
125
+
126
+ <li><a href="../RBatch/RBatch/RBatch/ConfigException.html">RBatch::RBatch::RBatch::ConfigException</a></li>
127
+
128
+ <li><a href="../RBatch/RBatch/VariablesException.html">RBatch::RBatch::VariablesException</a></li>
129
+
130
+ <li><a href="../RBatch/RunConf.html">RBatch::RunConf</a></li>
131
+
132
+ <li><a href="../RBatch/RunConf/Exception.html">RBatch::RunConf::Exception</a></li>
133
+
134
+ <li><a href="../RBatch/Variables.html">RBatch::Variables</a></li>
135
+
136
+ </ul>
137
+ <div id="no-class-search-results" style="display: none;">No matching classes.</div>
138
+ </div>
139
+
140
+
141
+ </div>
142
+ </div>
143
+
144
+ <div id="documentation">
145
+ <h1 class="class">RBatch::Journal</h1>
146
+
147
+ <div id="description" class="description">
148
+
149
+ </div><!-- description -->
150
+
151
+
152
+
153
+
154
+ <div id="5Buntitled-5D" class="documentation-section">
155
+
156
+
157
+
158
+
159
+
160
+
161
+
162
+ <!-- Attributes -->
163
+ <div id="attribute-method-details" class="method-section section">
164
+ <h3 class="section-header">Attributes</h3>
165
+
166
+
167
+ <div id="journal_verbose-attribute-method" class="method-detail">
168
+ <a name="journal_verbose"></a>
169
+
170
+ <a name="journal_verbose="></a>
171
+
172
+ <div class="method-heading attribute-method-heading">
173
+ <span class="method-name">journal_verbose</span><span
174
+ class="attribute-access-type">[RW]</span>
175
+ </div>
176
+
177
+ <div class="method-description">
178
+
179
+
180
+
181
+ </div>
182
+ </div>
183
+
184
+ </div><!-- attribute-method-details -->
185
+
186
+
187
+ <!-- Methods -->
188
+
189
+ <div id="public-class-method-details" class="method-section section">
190
+ <h3 class="section-header">Public Class Methods</h3>
191
+
192
+
193
+ <div id="new-method" class="method-detail ">
194
+ <a name="method-c-new"></a>
195
+
196
+
197
+ <div class="method-heading">
198
+ <span class="method-name">new</span><span
199
+ class="method-args">(verbose=nil)</span>
200
+ <span class="method-click-advice">click to toggle source</span>
201
+ </div>
202
+
203
+
204
+ <div class="method-description">
205
+
206
+
207
+
208
+
209
+
210
+ <div class="method-source-code" id="new-source">
211
+ <pre>
212
+ <span class="ruby-comment"># File lib/rbatch/journal.rb, line 4</span>
213
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">verbose</span>=<span class="ruby-keyword">nil</span>)
214
+ <span class="ruby-keyword">if</span> <span class="ruby-identifier">verbose</span>.<span class="ruby-identifier">nil?</span>
215
+ <span class="ruby-keyword">if</span> <span class="ruby-constant">ENV</span>[<span class="ruby-string">&quot;RB_VERBOSE&quot;</span>]
216
+ <span class="ruby-ivar">@journal_verbose</span> = <span class="ruby-constant">ENV</span>[<span class="ruby-string">&quot;RB_VERBOSE&quot;</span>].<span class="ruby-identifier">to_i</span>
217
+ <span class="ruby-keyword">else</span>
218
+ <span class="ruby-ivar">@journal_verbose</span> = <span class="ruby-value">1</span>
219
+ <span class="ruby-keyword">end</span>
220
+ <span class="ruby-keyword">else</span>
221
+ <span class="ruby-ivar">@journal_verbose</span> = <span class="ruby-identifier">verbose</span>
222
+ <span class="ruby-keyword">end</span>
223
+ <span class="ruby-ivar">@journals</span> = []
224
+ <span class="ruby-ivar">@user_logs</span> = []
225
+ <span class="ruby-keyword">end</span></pre>
226
+ </div><!-- new-source -->
227
+
228
+ </div>
229
+
230
+
231
+
232
+
233
+ </div><!-- new-method -->
234
+
235
+
236
+ </div><!-- public-class-method-details -->
237
+
238
+ <div id="public-instance-method-details" class="method-section section">
239
+ <h3 class="section-header">Public Instance Methods</h3>
240
+
241
+
242
+ <div id="add_log-method" class="method-detail ">
243
+ <a name="method-i-add_log"></a>
244
+
245
+
246
+ <div class="method-heading">
247
+ <span class="method-name">add_log</span><span
248
+ class="method-args">(log)</span>
249
+ <span class="method-click-advice">click to toggle source</span>
250
+ </div>
251
+
252
+
253
+ <div class="method-description">
254
+
255
+
256
+
257
+
258
+
259
+ <div class="method-source-code" id="add_log-source">
260
+ <pre>
261
+ <span class="ruby-comment"># File lib/rbatch/journal.rb, line 29</span>
262
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">add_log</span>(<span class="ruby-identifier">log</span>)
263
+ <span class="ruby-ivar">@user_logs</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">log</span>
264
+ <span class="ruby-keyword">end</span></pre>
265
+ </div><!-- add_log-source -->
266
+
267
+ </div>
268
+
269
+
270
+
271
+
272
+ </div><!-- add_log-method -->
273
+
274
+
275
+ <div id="put-method" class="method-detail ">
276
+ <a name="method-i-put"></a>
277
+
278
+
279
+ <div class="method-heading">
280
+ <span class="method-name">put</span><span
281
+ class="method-args">(level,str)</span>
282
+ <span class="method-click-advice">click to toggle source</span>
283
+ </div>
284
+
285
+
286
+ <div class="method-description">
287
+
288
+
289
+
290
+
291
+
292
+ <div class="method-source-code" id="put-source">
293
+ <pre>
294
+ <span class="ruby-comment"># File lib/rbatch/journal.rb, line 17</span>
295
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">put</span>(<span class="ruby-identifier">level</span>,<span class="ruby-identifier">str</span>)
296
+ <span class="ruby-keyword">if</span> <span class="ruby-identifier">level</span> <span class="ruby-operator">&lt;=</span> <span class="ruby-ivar">@journal_verbose</span>
297
+ <span class="ruby-identifier">str</span> = <span class="ruby-string">&quot;[RBatch] &quot;</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">str</span>
298
+ <span class="ruby-identifier">puts</span> <span class="ruby-identifier">str</span>
299
+ <span class="ruby-ivar">@journals</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">str</span>
300
+ <span class="ruby-ivar">@user_logs</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">log</span><span class="ruby-operator">|</span>
301
+ <span class="ruby-keyword">if</span> <span class="ruby-constant">RBatch</span>.<span class="ruby-identifier">run_conf</span>[<span class="ruby-value">:mix_rbatch_journal_to_logs</span>]
302
+ <span class="ruby-identifier">log</span>.<span class="ruby-identifier">journal</span>(<span class="ruby-identifier">str</span>)
303
+ <span class="ruby-keyword">end</span>
304
+ <span class="ruby-keyword">end</span>
305
+ <span class="ruby-keyword">end</span>
306
+ <span class="ruby-keyword">end</span></pre>
307
+ </div><!-- put-source -->
308
+
309
+ </div>
310
+
311
+
312
+
313
+
314
+ </div><!-- put-method -->
315
+
316
+
317
+ </div><!-- public-instance-method-details -->
318
+
319
+ </div><!-- 5Buntitled-5D -->
320
+
321
+
322
+ </div><!-- documentation -->
323
+
324
+ <div id="validator-badges">
325
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
326
+ <p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
327
+ Rdoc Generator</a> 2</small>.</p>
328
+ </div>
329
+
330
+ </body>
331
+ </html>
332
+