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