rbatch 1.13.1 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (78) hide show
  1. data/CHANGELOG +15 -0
  2. data/README.ja.md +81 -49
  3. data/README.md +88 -63
  4. data/Rakefile +2 -31
  5. data/bin/rbatch-init +57 -32
  6. data/{rdocs → doc}/RBatch/Cmd.html +66 -59
  7. data/{rdocs → doc}/RBatch/CmdException.html +9 -3
  8. data/{rdocs → doc}/RBatch/CmdResult.html +40 -34
  9. data/{rdocs → doc}/RBatch/CommonConfig/Exception.html +9 -3
  10. data/{rdocs → doc}/RBatch/CommonConfig.html +22 -17
  11. data/{rdocs → doc}/RBatch/Config/Exception.html +9 -3
  12. data/{rdocs → doc}/RBatch/Config.html +21 -16
  13. data/{rdocs/RBatchException.html → doc/RBatch/DoubleRunCheckException.html} +33 -30
  14. data/doc/RBatch/DoubleRunChecker.html +277 -0
  15. data/{rdocs → doc}/RBatch/Log.html +134 -138
  16. data/doc/RBatch/RunConf/Exception.html +159 -0
  17. data/doc/RBatch/RunConf.html +557 -0
  18. data/doc/RBatch.html +655 -0
  19. data/doc/created.rid +9 -0
  20. data/{rdocs → doc}/index.html +46 -20
  21. data/{rdocs → doc}/lib/rbatch/cmd_rb.html +4 -2
  22. data/{rdocs → doc}/lib/rbatch/common_config_rb.html +2 -2
  23. data/{rdocs → doc}/lib/rbatch/config_rb.html +2 -2
  24. data/doc/lib/rbatch/double_run_checker_rb.html +56 -0
  25. data/{rdocs → doc}/lib/rbatch/log_rb.html +2 -2
  26. data/doc/lib/rbatch/run_conf_rb.html +56 -0
  27. data/{rdocs → doc}/lib/rbatch/version_rb.html +2 -2
  28. data/{rdocs → doc}/lib/rbatch_rb.html +7 -3
  29. data/lib/rbatch/cmd.rb +20 -23
  30. data/lib/rbatch/common_config.rb +2 -3
  31. data/lib/rbatch/config.rb +1 -2
  32. data/lib/rbatch/double_run_checker.rb +24 -0
  33. data/lib/rbatch/log.rb +37 -59
  34. data/lib/rbatch/run_conf.rb +109 -0
  35. data/lib/rbatch/version.rb +1 -1
  36. data/lib/rbatch.rb +37 -56
  37. data/spec/{cmd_test.spec → cmd_spec.rb} +6 -6
  38. data/spec/common_config_spec.rb +54 -0
  39. data/spec/{config_test.spec → config_spec.rb} +2 -1
  40. data/spec/double_run_checker_spec.rb +10 -0
  41. data/spec/{log_test.spec → log_spec.rb} +22 -22
  42. data/spec/rbatch_spec.rb +24 -0
  43. data/spec/run_conf_spec.rb +85 -0
  44. metadata +66 -65
  45. data/rdocs/RBatch.html +0 -713
  46. data/rdocs/created.rid +0 -7
  47. data/spec/rbatch_test.spec +0 -25
  48. data/test/cases/test_cmd.rb +0 -134
  49. data/test/cases/test_common_config.rb +0 -41
  50. data/test/cases/test_config.rb +0 -41
  51. data/test/cases/test_log.rb +0 -613
  52. data/test/mocks/PrintArgs.exe +0 -0
  53. data/test/mocks/win_cmd.exe +0 -0
  54. /data/{rdocs → doc}/images/brick.png +0 -0
  55. /data/{rdocs → doc}/images/brick_link.png +0 -0
  56. /data/{rdocs → doc}/images/bug.png +0 -0
  57. /data/{rdocs → doc}/images/bullet_black.png +0 -0
  58. /data/{rdocs → doc}/images/bullet_toggle_minus.png +0 -0
  59. /data/{rdocs → doc}/images/bullet_toggle_plus.png +0 -0
  60. /data/{rdocs → doc}/images/date.png +0 -0
  61. /data/{rdocs → doc}/images/find.png +0 -0
  62. /data/{rdocs → doc}/images/loadingAnimation.gif +0 -0
  63. /data/{rdocs → doc}/images/macFFBgHack.png +0 -0
  64. /data/{rdocs → doc}/images/package.png +0 -0
  65. /data/{rdocs → doc}/images/page_green.png +0 -0
  66. /data/{rdocs → doc}/images/page_white_text.png +0 -0
  67. /data/{rdocs → doc}/images/page_white_width.png +0 -0
  68. /data/{rdocs → doc}/images/plugin.png +0 -0
  69. /data/{rdocs → doc}/images/ruby.png +0 -0
  70. /data/{rdocs → doc}/images/tag_green.png +0 -0
  71. /data/{rdocs → doc}/images/wrench.png +0 -0
  72. /data/{rdocs → doc}/images/wrench_orange.png +0 -0
  73. /data/{rdocs → doc}/images/zoom.png +0 -0
  74. /data/{rdocs → doc}/js/darkfish.js +0 -0
  75. /data/{rdocs → doc}/js/jquery.js +0 -0
  76. /data/{rdocs → doc}/js/quicksearch.js +0 -0
  77. /data/{rdocs → doc}/js/thickbox-compressed.js +0 -0
  78. /data/{rdocs → doc}/rdoc.css +0 -0
@@ -1,9 +1,9 @@
1
- <?xml version="1.0" encoding="harset=UTF-8 "?>
1
+ <?xml version="1.0" encoding="utf-8"?>
2
2
  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
3
3
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4
4
  <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5
5
  <head>
6
- <meta content="text/html; charset=harset=UTF-8 " http-equiv="Content-Type" />
6
+ <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
7
7
 
8
8
  <title>Class: RBatch::CommonConfig</title>
9
9
 
@@ -129,9 +129,15 @@
129
129
 
130
130
  <li><a href="../RBatch/Config/Exception.html">RBatch::Config::Exception</a></li>
131
131
 
132
+ <li><a href="../RBatch/DoubleRunCheckException.html">RBatch::DoubleRunCheckException</a></li>
133
+
134
+ <li><a href="../RBatch/DoubleRunChecker.html">RBatch::DoubleRunChecker</a></li>
135
+
132
136
  <li><a href="../RBatch/Log.html">RBatch::Log</a></li>
133
137
 
134
- <li><a href="../RBatchException.html">RBatchException</a></li>
138
+ <li><a href="../RBatch/RunConf.html">RBatch::RunConf</a></li>
139
+
140
+ <li><a href="../RBatch/RunConf/Exception.html">RBatch::RunConf::Exception</a></li>
135
141
 
136
142
  </ul>
137
143
  <div id="no-class-search-results" style="display: none;">No matching classes.</div>
@@ -212,11 +218,10 @@ script : ${RB_HOME}/bin/sample.rb
212
218
  <pre>
213
219
  <span class="ruby-comment cmt"># File lib/rbatch/common_config.rb, line 30</span>
214
220
  30: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>
215
- 31: <span class="ruby-identifier">file</span> = <span class="ruby-value str">&quot;common.yaml&quot;</span>
216
- 32: <span class="ruby-identifier">dir</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-constant">RBatch</span><span class="ruby-operator">::</span><span class="ruby-identifier">home_dir</span>,<span class="ruby-value str">&quot;conf&quot;</span>)
217
- 33: <span class="ruby-ivar">@path</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-identifier">dir</span>,<span class="ruby-identifier">file</span>)
218
- 34: <span class="ruby-ivar">@config</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>)
219
- 35: <span class="ruby-keyword kw">end</span></pre>
221
+ 31: <span class="ruby-identifier">file</span> = <span class="ruby-constant">RBatch</span>.<span class="ruby-identifier">run_conf</span>[<span class="ruby-value">:common_conf_name</span>]
222
+ 32: <span class="ruby-ivar">@path</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-constant">RBatch</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">&quot;&lt;home&gt;&quot;</span>,<span class="ruby-constant">RBatch</span>.<span class="ruby-identifier">home_dir</span>),<span class="ruby-identifier">file</span>)
223
+ 33: <span class="ruby-ivar">@config</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>)
224
+ 34: <span class="ruby-keyword kw">end</span></pre>
220
225
  </div>
221
226
 
222
227
  </div>
@@ -253,11 +258,11 @@ script : ${RB_HOME}/bin/sample.rb
253
258
  <div class="method-source-code"
254
259
  id="--source">
255
260
  <pre>
256
- <span class="ruby-comment cmt"># File lib/rbatch/common_config.rb, line 36</span>
257
- 36: <span class="ruby-keyword kw">def</span><span class="ruby-operator">[]</span>(<span class="ruby-identifier">key</span>)
258
- 37: <span class="ruby-identifier">raise</span> <span class="ruby-constant">RBatch</span><span class="ruby-operator">::</span><span class="ruby-constant">CommonConfig</span><span class="ruby-operator">::</span><span class="ruby-constant">Exception</span>, <span class="ruby-node">&quot;Value of key=\&quot;#{key}\&quot; is nil&quot;</span> <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@config</span>[<span class="ruby-identifier">key</span>].<span class="ruby-identifier">nil?</span>
259
- 38: <span class="ruby-ivar">@config</span>[<span class="ruby-identifier">key</span>]
260
- 39: <span class="ruby-keyword kw">end</span></pre>
261
+ <span class="ruby-comment cmt"># File lib/rbatch/common_config.rb, line 35</span>
262
+ 35: <span class="ruby-keyword kw">def</span><span class="ruby-operator">[]</span>(<span class="ruby-identifier">key</span>)
263
+ 36: <span class="ruby-identifier">raise</span> <span class="ruby-constant">RBatch</span><span class="ruby-operator">::</span><span class="ruby-constant">CommonConfig</span><span class="ruby-operator">::</span><span class="ruby-constant">Exception</span>, <span class="ruby-node">&quot;Value of key=\&quot;#{key}\&quot; is nil&quot;</span> <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@config</span>[<span class="ruby-identifier">key</span>].<span class="ruby-identifier">nil?</span>
264
+ 37: <span class="ruby-ivar">@config</span>[<span class="ruby-identifier">key</span>]
265
+ 38: <span class="ruby-keyword kw">end</span></pre>
261
266
  </div>
262
267
 
263
268
  </div>
@@ -288,8 +293,8 @@ script : ${RB_HOME}/bin/sample.rb
288
293
  <div class="method-source-code"
289
294
  id="path-source">
290
295
  <pre>
291
- <span class="ruby-comment cmt"># File lib/rbatch/common_config.rb, line 40</span>
292
- 40: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">path</span> ; <span class="ruby-ivar">@path</span> ; <span class="ruby-keyword kw">end</span></pre>
296
+ <span class="ruby-comment cmt"># File lib/rbatch/common_config.rb, line 39</span>
297
+ 39: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">path</span> ; <span class="ruby-ivar">@path</span> ; <span class="ruby-keyword kw">end</span></pre>
293
298
  </div>
294
299
 
295
300
  </div>
@@ -320,8 +325,8 @@ script : ${RB_HOME}/bin/sample.rb
320
325
  <div class="method-source-code"
321
326
  id="to-s-source">
322
327
  <pre>
323
- <span class="ruby-comment cmt"># File lib/rbatch/common_config.rb, line 41</span>
324
- 41: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_s</span> ; <span class="ruby-ivar">@config</span>.<span class="ruby-identifier">to_s</span> ;<span class="ruby-keyword kw">end</span></pre>
328
+ <span class="ruby-comment cmt"># File lib/rbatch/common_config.rb, line 40</span>
329
+ 40: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_s</span> ; <span class="ruby-ivar">@config</span>.<span class="ruby-identifier">to_s</span> ;<span class="ruby-keyword kw">end</span></pre>
325
330
  </div>
326
331
 
327
332
  </div>
@@ -1,9 +1,9 @@
1
- <?xml version="1.0" encoding="harset=UTF-8 "?>
1
+ <?xml version="1.0" encoding="utf-8"?>
2
2
  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
3
3
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4
4
  <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5
5
  <head>
6
- <meta content="text/html; charset=harset=UTF-8 " http-equiv="Content-Type" />
6
+ <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
7
7
 
8
8
  <title>Class: RBatch::Config::Exception</title>
9
9
 
@@ -105,9 +105,15 @@
105
105
 
106
106
  <li><a href="../../RBatch/Config/Exception.html">RBatch::Config::Exception</a></li>
107
107
 
108
+ <li><a href="../../RBatch/DoubleRunCheckException.html">RBatch::DoubleRunCheckException</a></li>
109
+
110
+ <li><a href="../../RBatch/DoubleRunChecker.html">RBatch::DoubleRunChecker</a></li>
111
+
108
112
  <li><a href="../../RBatch/Log.html">RBatch::Log</a></li>
109
113
 
110
- <li><a href="../../RBatchException.html">RBatchException</a></li>
114
+ <li><a href="../../RBatch/RunConf.html">RBatch::RunConf</a></li>
115
+
116
+ <li><a href="../../RBatch/RunConf/Exception.html">RBatch::RunConf::Exception</a></li>
111
117
 
112
118
  </ul>
113
119
  <div id="no-class-search-results" style="display: none;">No matching classes.</div>
@@ -1,9 +1,9 @@
1
- <?xml version="1.0" encoding="harset=UTF-8 "?>
1
+ <?xml version="1.0" encoding="utf-8"?>
2
2
  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
3
3
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4
4
  <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5
5
  <head>
6
- <meta content="text/html; charset=harset=UTF-8 " http-equiv="Content-Type" />
6
+ <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
7
7
 
8
8
  <title>Class: RBatch::Config</title>
9
9
 
@@ -129,9 +129,15 @@
129
129
 
130
130
  <li><a href="../RBatch/Config/Exception.html">RBatch::Config::Exception</a></li>
131
131
 
132
+ <li><a href="../RBatch/DoubleRunCheckException.html">RBatch::DoubleRunCheckException</a></li>
133
+
134
+ <li><a href="../RBatch/DoubleRunChecker.html">RBatch::DoubleRunChecker</a></li>
135
+
132
136
  <li><a href="../RBatch/Log.html">RBatch::Log</a></li>
133
137
 
134
- <li><a href="../RBatchException.html">RBatchException</a></li>
138
+ <li><a href="../RBatch/RunConf.html">RBatch::RunConf</a></li>
139
+
140
+ <li><a href="../RBatch/RunConf/Exception.html">RBatch::RunConf::Exception</a></li>
135
141
 
136
142
  </ul>
137
143
  <div id="no-class-search-results" style="display: none;">No matching classes.</div>
@@ -214,10 +220,9 @@ script : ${RB_HOME}/bin/sample2.rb
214
220
  <span class="ruby-comment cmt"># File lib/rbatch/config.rb, line 31</span>
215
221
  31: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>
216
222
  32: <span class="ruby-identifier">file</span> = <span class="ruby-constant">Pathname</span>(<span class="ruby-constant">File</span>.<span class="ruby-identifier">basename</span>(<span class="ruby-constant">RBatch</span>.<span class="ruby-identifier">program_name</span>)).<span class="ruby-identifier">sub_ext</span>(<span class="ruby-value str">&quot;.yaml&quot;</span>).<span class="ruby-identifier">to_s</span>
217
- 33: <span class="ruby-identifier">dir</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-constant">RBatch</span><span class="ruby-operator">::</span><span class="ruby-identifier">home_dir</span>,<span class="ruby-value str">&quot;conf&quot;</span>)
218
- 34: <span class="ruby-ivar">@path</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-identifier">dir</span>,<span class="ruby-identifier">file</span>)
219
- 35: <span class="ruby-ivar">@config</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>)
220
- 36: <span class="ruby-keyword kw">end</span></pre>
223
+ 33: <span class="ruby-ivar">@path</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-constant">RBatch</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">&quot;&lt;home&gt;&quot;</span>,<span class="ruby-constant">RBatch</span>.<span class="ruby-identifier">home_dir</span>),<span class="ruby-identifier">file</span>)
224
+ 34: <span class="ruby-ivar">@config</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>)
225
+ 35: <span class="ruby-keyword kw">end</span></pre>
221
226
  </div>
222
227
 
223
228
  </div>
@@ -254,11 +259,11 @@ script : ${RB_HOME}/bin/sample2.rb
254
259
  <div class="method-source-code"
255
260
  id="--source">
256
261
  <pre>
257
- <span class="ruby-comment cmt"># File lib/rbatch/config.rb, line 37</span>
258
- 37: <span class="ruby-keyword kw">def</span><span class="ruby-operator">[]</span>(<span class="ruby-identifier">key</span>)
259
- 38: <span class="ruby-identifier">raise</span> <span class="ruby-constant">RBatch</span><span class="ruby-operator">::</span><span class="ruby-constant">Config</span><span class="ruby-operator">::</span><span class="ruby-constant">Exception</span>, <span class="ruby-node">&quot;Value of key=\&quot;#{key}\&quot; is nil&quot;</span> <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@config</span>[<span class="ruby-identifier">key</span>].<span class="ruby-identifier">nil?</span>
260
- 39: <span class="ruby-ivar">@config</span>[<span class="ruby-identifier">key</span>]
261
- 40: <span class="ruby-keyword kw">end</span></pre>
262
+ <span class="ruby-comment cmt"># File lib/rbatch/config.rb, line 36</span>
263
+ 36: <span class="ruby-keyword kw">def</span><span class="ruby-operator">[]</span>(<span class="ruby-identifier">key</span>)
264
+ 37: <span class="ruby-identifier">raise</span> <span class="ruby-constant">RBatch</span><span class="ruby-operator">::</span><span class="ruby-constant">Config</span><span class="ruby-operator">::</span><span class="ruby-constant">Exception</span>, <span class="ruby-node">&quot;Value of key=\&quot;#{key}\&quot; is nil&quot;</span> <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@config</span>[<span class="ruby-identifier">key</span>].<span class="ruby-identifier">nil?</span>
265
+ 38: <span class="ruby-ivar">@config</span>[<span class="ruby-identifier">key</span>]
266
+ 39: <span class="ruby-keyword kw">end</span></pre>
262
267
  </div>
263
268
 
264
269
  </div>
@@ -289,8 +294,8 @@ script : ${RB_HOME}/bin/sample2.rb
289
294
  <div class="method-source-code"
290
295
  id="path-source">
291
296
  <pre>
292
- <span class="ruby-comment cmt"># File lib/rbatch/config.rb, line 41</span>
293
- 41: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">path</span> ; <span class="ruby-ivar">@path</span> ; <span class="ruby-keyword kw">end</span></pre>
297
+ <span class="ruby-comment cmt"># File lib/rbatch/config.rb, line 40</span>
298
+ 40: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">path</span> ; <span class="ruby-ivar">@path</span> ; <span class="ruby-keyword kw">end</span></pre>
294
299
  </div>
295
300
 
296
301
  </div>
@@ -321,8 +326,8 @@ script : ${RB_HOME}/bin/sample2.rb
321
326
  <div class="method-source-code"
322
327
  id="to-s-source">
323
328
  <pre>
324
- <span class="ruby-comment cmt"># File lib/rbatch/config.rb, line 42</span>
325
- 42: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_s</span> ; <span class="ruby-ivar">@config</span>.<span class="ruby-identifier">to_s</span> ;<span class="ruby-keyword kw">end</span></pre>
329
+ <span class="ruby-comment cmt"># File lib/rbatch/config.rb, line 41</span>
330
+ 41: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_s</span> ; <span class="ruby-ivar">@config</span>.<span class="ruby-identifier">to_s</span> ;<span class="ruby-keyword kw">end</span></pre>
326
331
  </div>
327
332
 
328
333
  </div>
@@ -1,21 +1,21 @@
1
- <?xml version="1.0" encoding="harset=UTF-8 "?>
1
+ <?xml version="1.0" encoding="utf-8"?>
2
2
  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
3
3
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4
4
  <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5
5
  <head>
6
- <meta content="text/html; charset=harset=UTF-8 " http-equiv="Content-Type" />
6
+ <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
7
7
 
8
- <title>Class: RBatchException</title>
8
+ <title>Class: RBatch::DoubleRunCheckException</title>
9
9
 
10
- <link rel="stylesheet" href="./rdoc.css" type="text/css" media="screen" />
10
+ <link rel="stylesheet" href="../rdoc.css" type="text/css" media="screen" />
11
11
 
12
- <script src="./js/jquery.js" type="text/javascript"
12
+ <script src="../js/jquery.js" type="text/javascript"
13
13
  charset="utf-8"></script>
14
- <script src="./js/thickbox-compressed.js" type="text/javascript"
14
+ <script src="../js/thickbox-compressed.js" type="text/javascript"
15
15
  charset="utf-8"></script>
16
- <script src="./js/quicksearch.js" type="text/javascript"
16
+ <script src="../js/quicksearch.js" type="text/javascript"
17
17
  charset="utf-8"></script>
18
- <script src="./js/darkfish.js" type="text/javascript"
18
+ <script src="../js/darkfish.js" type="text/javascript"
19
19
  charset="utf-8"></script>
20
20
 
21
21
  </head>
@@ -25,9 +25,9 @@
25
25
  <div id="home-metadata">
26
26
  <div id="home-section" class="section">
27
27
  <h3 class="section-header">
28
- <a href="./index.html">Home</a>
29
- <a href="./index.html#classes">Classes</a>
30
- <a href="./index.html#methods">Methods</a>
28
+ <a href="../index.html">Home</a>
29
+ <a href="../index.html#classes">Classes</a>
30
+ <a href="../index.html#methods">Methods</a>
31
31
  </h3>
32
32
  </div>
33
33
  </div>
@@ -38,8 +38,8 @@
38
38
  <div class="section-body">
39
39
  <ul>
40
40
 
41
- <li><a href="./lib/rbatch_rb.html?TB_iframe=true&amp;height=550&amp;width=785"
42
- class="thickbox" title="lib/rbatch.rb">lib/rbatch.rb</a></li>
41
+ <li><a href="../lib/rbatch/double_run_checker_rb.html?TB_iframe=true&amp;height=550&amp;width=785"
42
+ class="thickbox" title="lib/rbatch/double_run_checker.rb">lib/rbatch/double_run_checker.rb</a></li>
43
43
 
44
44
  </ul>
45
45
  </div>
@@ -55,7 +55,7 @@
55
55
  <div id="parent-class-section" class="section">
56
56
  <h3 class="section-header">Parent</h3>
57
57
 
58
- <p class="link">Exception</p>
58
+ <p class="link"><a href="Config.html">RBatch::Config</a></p>
59
59
 
60
60
  </div>
61
61
 
@@ -76,7 +76,7 @@
76
76
 
77
77
  <div id="classindex-section" class="section project-section">
78
78
  <h3 class="section-header">Class Index
79
- <span class="search-toggle"><img src="./images/find.png"
79
+ <span class="search-toggle"><img src="../images/find.png"
80
80
  height="16" width="16" alt="[+]"
81
81
  title="show/hide quicksearch" /></span></h3>
82
82
  <form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
@@ -89,25 +89,31 @@
89
89
 
90
90
  <ul class="link-list">
91
91
 
92
- <li><a href="./RBatch.html">RBatch</a></li>
92
+ <li><a href="../RBatch.html">RBatch</a></li>
93
93
 
94
- <li><a href="./RBatch/Cmd.html">RBatch::Cmd</a></li>
94
+ <li><a href="../RBatch/Cmd.html">RBatch::Cmd</a></li>
95
95
 
96
- <li><a href="./RBatch/CmdException.html">RBatch::CmdException</a></li>
96
+ <li><a href="../RBatch/CmdException.html">RBatch::CmdException</a></li>
97
97
 
98
- <li><a href="./RBatch/CmdResult.html">RBatch::CmdResult</a></li>
98
+ <li><a href="../RBatch/CmdResult.html">RBatch::CmdResult</a></li>
99
99
 
100
- <li><a href="./RBatch/CommonConfig.html">RBatch::CommonConfig</a></li>
100
+ <li><a href="../RBatch/CommonConfig.html">RBatch::CommonConfig</a></li>
101
101
 
102
- <li><a href="./RBatch/CommonConfig/Exception.html">RBatch::CommonConfig::Exception</a></li>
102
+ <li><a href="../RBatch/CommonConfig/Exception.html">RBatch::CommonConfig::Exception</a></li>
103
103
 
104
- <li><a href="./RBatch/Config.html">RBatch::Config</a></li>
104
+ <li><a href="../RBatch/Config.html">RBatch::Config</a></li>
105
105
 
106
- <li><a href="./RBatch/Config/Exception.html">RBatch::Config::Exception</a></li>
106
+ <li><a href="../RBatch/Config/Exception.html">RBatch::Config::Exception</a></li>
107
107
 
108
- <li><a href="./RBatch/Log.html">RBatch::Log</a></li>
108
+ <li><a href="../RBatch/DoubleRunCheckException.html">RBatch::DoubleRunCheckException</a></li>
109
109
 
110
- <li><a href="./RBatchException.html">RBatchException</a></li>
110
+ <li><a href="../RBatch/DoubleRunChecker.html">RBatch::DoubleRunChecker</a></li>
111
+
112
+ <li><a href="../RBatch/Log.html">RBatch::Log</a></li>
113
+
114
+ <li><a href="../RBatch/RunConf.html">RBatch::RunConf</a></li>
115
+
116
+ <li><a href="../RBatch/RunConf/Exception.html">RBatch::RunConf::Exception</a></li>
111
117
 
112
118
  </ul>
113
119
  <div id="no-class-search-results" style="display: none;">No matching classes.</div>
@@ -118,13 +124,10 @@
118
124
  </div>
119
125
 
120
126
  <div id="documentation">
121
- <h1 class="class">RBatchException</h1>
127
+ <h1 class="class">RBatch::DoubleRunCheckException</h1>
122
128
 
123
129
  <div id="description">
124
- <p>
125
- <a href="RBatch.html">RBatch</a> Exception
126
- </p>
127
-
130
+
128
131
  </div>
129
132
 
130
133
  <!-- Constants -->
@@ -0,0 +1,277 @@
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>Module: RBatch::DoubleRunChecker</title>
9
+
10
+ <link rel="stylesheet" href="../rdoc.css" type="text/css" media="screen" />
11
+
12
+ <script src="../js/jquery.js" type="text/javascript"
13
+ charset="utf-8"></script>
14
+ <script src="../js/thickbox-compressed.js" type="text/javascript"
15
+ charset="utf-8"></script>
16
+ <script src="../js/quicksearch.js" type="text/javascript"
17
+ charset="utf-8"></script>
18
+ <script src="../js/darkfish.js" type="text/javascript"
19
+ charset="utf-8"></script>
20
+
21
+ </head>
22
+ <body class="module">
23
+
24
+ <div id="metadata">
25
+ <div id="home-metadata">
26
+ <div id="home-section" class="section">
27
+ <h3 class="section-header">
28
+ <a href="../index.html">Home</a>
29
+ <a href="../index.html#classes">Classes</a>
30
+ <a href="../index.html#methods">Methods</a>
31
+ </h3>
32
+ </div>
33
+ </div>
34
+
35
+ <div id="file-metadata">
36
+ <div id="file-list-section" class="section">
37
+ <h3 class="section-header">In Files</h3>
38
+ <div class="section-body">
39
+ <ul>
40
+
41
+ <li><a href="../lib/rbatch/double_run_checker_rb.html?TB_iframe=true&amp;height=550&amp;width=785"
42
+ class="thickbox" title="lib/rbatch/double_run_checker.rb">lib/rbatch/double_run_checker.rb</a></li>
43
+
44
+ </ul>
45
+ </div>
46
+ </div>
47
+
48
+
49
+ </div>
50
+
51
+ <div id="class-metadata">
52
+
53
+ <!-- Parent Class -->
54
+
55
+
56
+ <!-- Namespace Contents -->
57
+
58
+
59
+ <!-- Method Quickref -->
60
+
61
+ <div id="method-list-section" class="section">
62
+ <h3 class="section-header">Methods</h3>
63
+ <ul class="link-list">
64
+
65
+ <li><a href="#method-i-check">#check</a></li>
66
+
67
+ <li><a href="#method-i-lock_file_name">#lock_file_name</a></li>
68
+
69
+ <li><a href="#method-i-make_lock_file">#make_lock_file</a></li>
70
+
71
+ </ul>
72
+ </div>
73
+
74
+
75
+ <!-- Included Modules -->
76
+
77
+ </div>
78
+
79
+ <div id="project-metadata">
80
+
81
+
82
+
83
+ <div id="classindex-section" class="section project-section">
84
+ <h3 class="section-header">Class Index
85
+ <span class="search-toggle"><img src="../images/find.png"
86
+ height="16" width="16" alt="[+]"
87
+ title="show/hide quicksearch" /></span></h3>
88
+ <form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
89
+ <fieldset>
90
+ <legend>Quicksearch</legend>
91
+ <input type="text" name="quicksearch" value=""
92
+ class="quicksearch-field" />
93
+ </fieldset>
94
+ </form>
95
+
96
+ <ul class="link-list">
97
+
98
+ <li><a href="../RBatch.html">RBatch</a></li>
99
+
100
+ <li><a href="../RBatch/Cmd.html">RBatch::Cmd</a></li>
101
+
102
+ <li><a href="../RBatch/CmdException.html">RBatch::CmdException</a></li>
103
+
104
+ <li><a href="../RBatch/CmdResult.html">RBatch::CmdResult</a></li>
105
+
106
+ <li><a href="../RBatch/CommonConfig.html">RBatch::CommonConfig</a></li>
107
+
108
+ <li><a href="../RBatch/CommonConfig/Exception.html">RBatch::CommonConfig::Exception</a></li>
109
+
110
+ <li><a href="../RBatch/Config.html">RBatch::Config</a></li>
111
+
112
+ <li><a href="../RBatch/Config/Exception.html">RBatch::Config::Exception</a></li>
113
+
114
+ <li><a href="../RBatch/DoubleRunCheckException.html">RBatch::DoubleRunCheckException</a></li>
115
+
116
+ <li><a href="../RBatch/DoubleRunChecker.html">RBatch::DoubleRunChecker</a></li>
117
+
118
+ <li><a href="../RBatch/Log.html">RBatch::Log</a></li>
119
+
120
+ <li><a href="../RBatch/RunConf.html">RBatch::RunConf</a></li>
121
+
122
+ <li><a href="../RBatch/RunConf/Exception.html">RBatch::RunConf::Exception</a></li>
123
+
124
+ </ul>
125
+ <div id="no-class-search-results" style="display: none;">No matching classes.</div>
126
+ </div>
127
+
128
+
129
+ </div>
130
+ </div>
131
+
132
+ <div id="documentation">
133
+ <h1 class="module">RBatch::DoubleRunChecker</h1>
134
+
135
+ <div id="description">
136
+
137
+ </div>
138
+
139
+ <!-- Constants -->
140
+
141
+
142
+ <!-- Attributes -->
143
+
144
+
145
+ <!-- Methods -->
146
+
147
+ <div id="public-instance-method-details" class="method-section section">
148
+ <h3 class="section-header">Public Instance Methods</h3>
149
+
150
+
151
+ <div id="check-method" class="method-detail ">
152
+ <a name="method-i-check"></a>
153
+
154
+ <div class="method-heading">
155
+
156
+ <span class="method-name">check</span><span
157
+ class="method-args">(p)</span>
158
+ <span class="method-click-advice">click to toggle source</span>
159
+
160
+ </div>
161
+
162
+ <div class="method-description">
163
+
164
+
165
+
166
+
167
+
168
+ <div class="method-source-code"
169
+ id="check-source">
170
+ <pre>
171
+ <span class="ruby-comment cmt"># File lib/rbatch/double_run_checker.rb, line 10</span>
172
+ 10: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">check</span>(<span class="ruby-identifier">p</span>)
173
+ 11: <span class="ruby-constant">Dir</span><span class="ruby-operator">::</span><span class="ruby-identifier">foreach</span>(<span class="ruby-constant">Dir</span>.<span class="ruby-identifier">tmpdir</span>) <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">f</span><span class="ruby-operator">|</span>
174
+ 12: <span class="ruby-keyword kw">if</span> <span class="ruby-constant">Regexp</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">lock_file_name</span>(<span class="ruby-identifier">p</span>)) <span class="ruby-operator">=~</span> <span class="ruby-identifier">f</span>
175
+ 13: <span class="ruby-identifier">raise</span> <span class="ruby-constant">RBatch</span><span class="ruby-operator">::</span><span class="ruby-constant">DoubleRunCheckException</span>, <span class="ruby-identifier">p</span> <span class="ruby-operator">+</span> <span class="ruby-value str">&quot; is forbidden running doubly&quot;</span>
176
+ 14: <span class="ruby-keyword kw">end</span>
177
+ 15: <span class="ruby-keyword kw">end</span>
178
+ 16: <span class="ruby-keyword kw">end</span></pre>
179
+ </div>
180
+
181
+ </div>
182
+
183
+
184
+
185
+
186
+ </div>
187
+
188
+
189
+ <div id="lock-file-name-method" class="method-detail ">
190
+ <a name="method-i-lock_file_name"></a>
191
+
192
+ <div class="method-heading">
193
+
194
+ <span class="method-name">lock_file_name</span><span
195
+ class="method-args">(p)</span>
196
+ <span class="method-click-advice">click to toggle source</span>
197
+
198
+ </div>
199
+
200
+ <div class="method-description">
201
+
202
+
203
+
204
+
205
+
206
+ <div class="method-source-code"
207
+ id="lock-file-name-source">
208
+ <pre>
209
+ <span class="ruby-comment cmt"># File lib/rbatch/double_run_checker.rb, line 6</span>
210
+ 6: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">lock_file_name</span>(<span class="ruby-identifier">p</span>)
211
+ 7: <span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-value str">&quot;rbatch_lock_&quot;</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">p</span>)
212
+ 8: <span class="ruby-keyword kw">end</span></pre>
213
+ </div>
214
+
215
+ </div>
216
+
217
+
218
+
219
+
220
+ </div>
221
+
222
+
223
+ <div id="make-lock-file-method" class="method-detail ">
224
+ <a name="method-i-make_lock_file"></a>
225
+
226
+ <div class="method-heading">
227
+
228
+ <span class="method-name">make_lock_file</span><span
229
+ class="method-args">(p)</span>
230
+ <span class="method-click-advice">click to toggle source</span>
231
+
232
+ </div>
233
+
234
+ <div class="method-description">
235
+
236
+
237
+
238
+
239
+
240
+ <div class="method-source-code"
241
+ id="make-lock-file-source">
242
+ <pre>
243
+ <span class="ruby-comment cmt"># File lib/rbatch/double_run_checker.rb, line 18</span>
244
+ 18: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">make_lock_file</span>(<span class="ruby-identifier">p</span>)
245
+ 19: <span class="ruby-constant">Tempfile</span><span class="ruby-operator">::</span><span class="ruby-identifier">new</span>(<span class="ruby-identifier">lock_file_name</span>(<span class="ruby-identifier">p</span>),<span class="ruby-constant">Dir</span>.<span class="ruby-identifier">tmpdir</span>)
246
+ 20: <span class="ruby-keyword kw">end</span></pre>
247
+ </div>
248
+
249
+ </div>
250
+
251
+
252
+
253
+
254
+ </div>
255
+
256
+
257
+ </div>
258
+
259
+
260
+ </div>
261
+
262
+
263
+ <div id="rdoc-debugging-section-dump" class="debugging-section">
264
+
265
+ <p>Disabled; run with --debug to generate this.</p>
266
+
267
+ </div>
268
+
269
+ <div id="validator-badges">
270
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
271
+ <p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
272
+ Rdoc Generator</a> 1.1.6</small>.</p>
273
+ </div>
274
+
275
+ </body>
276
+ </html>
277
+