rbatch 2.1.1 → 2.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.ja.md +14 -5
- data/README.md +164 -154
- data/bin/rbatch-init +21 -13
- data/doc/RBatch/Cmd.html +300 -316
- data/doc/RBatch/CmdException.html +146 -141
- data/doc/RBatch/CmdResult.html +467 -470
- data/doc/RBatch/Config.html +392 -433
- data/doc/RBatch/Controller.html +374 -0
- data/doc/RBatch/DoubleRunCheckException.html +146 -141
- data/doc/RBatch/DoubleRunChecker.html +258 -256
- data/doc/RBatch/Journal.html +332 -0
- data/doc/RBatch/Log.html +636 -805
- data/doc/RBatch/LogException.html +164 -0
- data/doc/RBatch/RBatch/RBatch/ConfigException.html +164 -0
- data/doc/RBatch/RBatch/RBatch.html +163 -0
- data/doc/RBatch/RBatch/VariablesException.html +164 -0
- data/doc/RBatch/RBatch.html +165 -0
- data/doc/RBatch/RunConf/Exception.html +146 -141
- data/doc/RBatch/RunConf.html +478 -532
- data/doc/RBatch/Variables.html +437 -0
- data/doc/RBatch.html +388 -862
- data/doc/created.rid +11 -9
- data/doc/index.html +178 -184
- data/doc/js/darkfish.js +9 -7
- data/doc/lib/rbatch/cmd_rb.html +46 -44
- data/doc/lib/rbatch/config_rb.html +42 -42
- data/doc/lib/rbatch/controller_rb.html +66 -0
- data/doc/lib/rbatch/double_run_checker_rb.html +42 -42
- data/doc/lib/rbatch/journal_rb.html +52 -0
- data/doc/lib/rbatch/log_rb.html +46 -46
- data/doc/lib/rbatch/run_conf_rb.html +42 -42
- data/doc/lib/rbatch/variables_rb.html +54 -0
- data/doc/lib/rbatch/version_rb.html +38 -38
- data/doc/lib/rbatch_rb.html +40 -52
- data/doc/rdoc.css +365 -308
- data/lib/rbatch/cmd.rb +15 -58
- data/lib/rbatch/config.rb +7 -7
- data/lib/rbatch/controller.rb +37 -61
- data/lib/rbatch/double_run_checker.rb +0 -0
- data/lib/rbatch/journal.rb +40 -0
- data/lib/rbatch/log.rb +71 -129
- data/lib/rbatch/run_conf.rb +13 -24
- data/lib/rbatch/variables.rb +82 -0
- data/lib/rbatch/version.rb +1 -1
- data/lib/rbatch.rb +7 -36
- data/sample/.rbatchrc +41 -7
- data/spec/01_rbach_spec.rb +99 -0
- data/spec/{cmd_spec.rb → rbatch/cmd_spec.rb} +40 -43
- data/spec/rbatch/config_spec.rb +67 -0
- data/spec/rbatch/controller_spec.rb +18 -0
- data/spec/{double_run_checker_spec.rb → rbatch/double_run_checker_spec.rb} +3 -0
- data/spec/rbatch/journal_spec.rb +29 -0
- data/spec/rbatch/log_spec.rb +350 -0
- data/spec/{run_conf_spec.rb → rbatch/run_conf_spec.rb} +13 -5
- data/spec/rbatch/variables_spec.rb +68 -0
- data/spec/spec_helper.rb +4 -5
- metadata +33 -17
- data/lib/rbatch/common_config.rb +0 -0
- data/spec/common_config_spec.rb +0 -85
- data/spec/config_spec.rb +0 -79
- data/spec/log_spec.rb +0 -430
- data/spec/rbatch_spec.rb +0 -22
data/doc/RBatch/Config.html
CHANGED
@@ -1,456 +1,415 @@
|
|
1
|
-
<?xml version="1.0" encoding="
|
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
|
-
|
6
|
+
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
|
7
7
|
|
8
|
-
|
8
|
+
<title>Class: RBatch::Config</title>
|
9
9
|
|
10
|
-
|
10
|
+
<link rel="stylesheet" href="../rdoc.css" type="text/css" media="screen" />
|
11
11
|
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
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>
|
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>
|
20
16
|
|
21
17
|
</head>
|
22
|
-
<body class="class">
|
18
|
+
<body id="top" class="class">
|
23
19
|
|
24
|
-
|
25
|
-
|
26
|
-
|
20
|
+
<div id="metadata">
|
21
|
+
<div id="home-metadata">
|
22
|
+
<div id="home-section" class="section">
|
27
23
|
<h3 class="section-header">
|
28
24
|
<a href="../index.html">Home</a>
|
29
25
|
<a href="../index.html#classes">Classes</a>
|
30
26
|
<a href="../index.html#methods">Methods</a>
|
31
27
|
</h3>
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
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&height=550&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">
|
174
193
|
<pre>
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
</
|
181
|
-
<
|
182
|
-
|
183
|
-
</
|
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">></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">
|
184
237
|
<pre>
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
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">"Config file \"#{@path}\" does not exist"</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">"Value of key(:#{key} (Symbol)) is nil. By any chance, dou you mistake key class Symbol for String?"</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">"Value of key(\"#{key}\" (String)) is nil"</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">"Value of key(#{key}) is nil."</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">
|
223
283
|
<pre>
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
<span class="method-name">[]</span><span
|
256
|
-
class="method-args">(key)</span>
|
257
|
-
<span class="method-click-advice">click to toggle source</span>
|
258
|
-
|
259
|
-
</div>
|
260
|
-
|
261
|
-
<div class="method-description">
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
<div class="method-source-code"
|
268
|
-
id="--source">
|
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">
|
269
314
|
<pre>
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
<div class="method-heading">
|
301
|
-
|
302
|
-
<span class="method-name">exist?</span><span
|
303
|
-
class="method-args">()</span>
|
304
|
-
<span class="method-click-advice">click to toggle source</span>
|
305
|
-
|
306
|
-
</div>
|
307
|
-
|
308
|
-
<div class="method-description">
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
<div class="method-source-code"
|
315
|
-
id="exist--source">
|
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">
|
316
345
|
<pre>
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
|
328
|
-
|
329
|
-
|
330
|
-
|
331
|
-
|
332
|
-
|
333
|
-
|
334
|
-
|
335
|
-
|
336
|
-
|
337
|
-
|
338
|
-
|
339
|
-
|
340
|
-
|
341
|
-
|
342
|
-
|
343
|
-
|
344
|
-
|
345
|
-
|
346
|
-
|
347
|
-
|
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">"Config file \"#{@path}\" does not exist"</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">
|
348
382
|
<pre>
|
349
|
-
|
350
|
-
|
351
|
-
|
352
|
-
|
353
|
-
|
354
|
-
|
355
|
-
|
356
|
-
|
357
|
-
|
358
|
-
|
359
|
-
|
360
|
-
|
361
|
-
|
362
|
-
|
363
|
-
|
364
|
-
|
365
|
-
|
366
|
-
|
367
|
-
|
368
|
-
|
369
|
-
|
370
|
-
|
371
|
-
|
372
|
-
|
373
|
-
|
374
|
-
|
375
|
-
|
376
|
-
|
377
|
-
|
378
|
-
|
379
|
-
id="to-h-source">
|
380
|
-
<pre>
|
381
|
-
<span class="ruby-comment cmt"># File lib/rbatch/config.rb, line 54</span>
|
382
|
-
54: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_h</span>
|
383
|
-
55: <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@hash</span>.<span class="ruby-identifier">nil?</span>
|
384
|
-
56: <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">"Config file \"#{@path}\" does not exist"</span>
|
385
|
-
57: <span class="ruby-keyword kw">else</span>
|
386
|
-
58: <span class="ruby-ivar">@hash</span>
|
387
|
-
59: <span class="ruby-keyword kw">end</span>
|
388
|
-
60: <span class="ruby-keyword kw">end</span></pre>
|
389
|
-
</div>
|
390
|
-
|
391
|
-
</div>
|
392
|
-
|
393
|
-
|
394
|
-
|
395
|
-
|
396
|
-
</div>
|
397
|
-
|
398
|
-
|
399
|
-
<div id="to-s-method" class="method-detail ">
|
400
|
-
<a name="method-i-to_s"></a>
|
401
|
-
|
402
|
-
<div class="method-heading">
|
403
|
-
|
404
|
-
<span class="method-name">to_s</span><span
|
405
|
-
class="method-args">()</span>
|
406
|
-
<span class="method-click-advice">click to toggle source</span>
|
407
|
-
|
408
|
-
</div>
|
409
|
-
|
410
|
-
<div class="method-description">
|
411
|
-
|
412
|
-
|
413
|
-
|
414
|
-
|
415
|
-
|
416
|
-
<div class="method-source-code"
|
417
|
-
id="to-s-source">
|
418
|
-
<pre>
|
419
|
-
<span class="ruby-comment cmt"># File lib/rbatch/config.rb, line 61</span>
|
420
|
-
61: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_s</span>
|
421
|
-
62: <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@hash</span>.<span class="ruby-identifier">nil?</span>
|
422
|
-
63: <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">"Config file \"#{@path}\" does not exist"</span>
|
423
|
-
64: <span class="ruby-keyword kw">else</span>
|
424
|
-
65: <span class="ruby-ivar">@hash</span>.<span class="ruby-identifier">to_s</span>
|
425
|
-
66: <span class="ruby-keyword kw">end</span>
|
426
|
-
67: <span class="ruby-keyword kw">end</span></pre>
|
427
|
-
</div>
|
428
|
-
|
429
|
-
</div>
|
430
|
-
|
431
|
-
|
432
|
-
|
433
|
-
|
434
|
-
</div>
|
435
|
-
|
436
|
-
|
437
|
-
</div>
|
438
|
-
|
439
|
-
|
440
|
-
</div>
|
441
|
-
|
442
|
-
|
443
|
-
<div id="rdoc-debugging-section-dump" class="debugging-section">
|
444
|
-
|
445
|
-
<p>Disabled; run with --debug to generate this.</p>
|
446
|
-
|
447
|
-
</div>
|
448
|
-
|
449
|
-
<div id="validator-badges">
|
450
|
-
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
451
|
-
<p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
|
452
|
-
Rdoc Generator</a> 1.1.6</small>.</p>
|
453
|
-
</div>
|
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">"Config file \"#{@path}\" does not exist"</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>
|
454
413
|
|
455
414
|
</body>
|
456
415
|
</html>
|