rbatch 2.1.1 → 2.1.2
Sign up to get free protection for your applications and to get access to all the features.
- 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.html
CHANGED
@@ -1,884 +1,410 @@
|
|
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>Module: RBatch</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="module">
|
18
|
+
<body id="top" class="module">
|
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
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
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
|
-
|
223
|
-
|
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
|
-
|
256
|
-
|
257
|
-
|
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_rb.html?TB_iframe=true&height=550&width=785"
|
38
|
+
class="thickbox" title="lib/rbatch.rb">lib/rbatch.rb</a></li>
|
39
|
+
|
40
|
+
<li><a href="./lib/rbatch/cmd_rb.html?TB_iframe=true&height=550&width=785"
|
41
|
+
class="thickbox" title="lib/rbatch/cmd.rb">lib/rbatch/cmd.rb</a></li>
|
42
|
+
|
43
|
+
<li><a href="./lib/rbatch/journal_rb.html?TB_iframe=true&height=550&width=785"
|
44
|
+
class="thickbox" title="lib/rbatch/journal.rb">lib/rbatch/journal.rb</a></li>
|
45
|
+
|
46
|
+
<li><a href="./lib/rbatch/log_rb.html?TB_iframe=true&height=550&width=785"
|
47
|
+
class="thickbox" title="lib/rbatch/log.rb">lib/rbatch/log.rb</a></li>
|
48
|
+
|
49
|
+
<li><a href="./lib/rbatch/config_rb.html?TB_iframe=true&height=550&width=785"
|
50
|
+
class="thickbox" title="lib/rbatch/config.rb">lib/rbatch/config.rb</a></li>
|
51
|
+
|
52
|
+
<li><a href="./lib/rbatch/run_conf_rb.html?TB_iframe=true&height=550&width=785"
|
53
|
+
class="thickbox" title="lib/rbatch/run_conf.rb">lib/rbatch/run_conf.rb</a></li>
|
54
|
+
|
55
|
+
<li><a href="./lib/rbatch/controller_rb.html?TB_iframe=true&height=550&width=785"
|
56
|
+
class="thickbox" title="lib/rbatch/controller.rb">lib/rbatch/controller.rb</a></li>
|
57
|
+
|
58
|
+
<li><a href="./lib/rbatch/variables_rb.html?TB_iframe=true&height=550&width=785"
|
59
|
+
class="thickbox" title="lib/rbatch/variables.rb">lib/rbatch/variables.rb</a></li>
|
60
|
+
|
61
|
+
<li><a href="./lib/rbatch/version_rb.html?TB_iframe=true&height=550&width=785"
|
62
|
+
class="thickbox" title="lib/rbatch/version.rb">lib/rbatch/version.rb</a></li>
|
63
|
+
|
64
|
+
<li><a href="./lib/rbatch/double_run_checker_rb.html?TB_iframe=true&height=550&width=785"
|
65
|
+
class="thickbox" title="lib/rbatch/double_run_checker.rb">lib/rbatch/double_run_checker.rb</a></li>
|
66
|
+
|
67
|
+
</ul>
|
68
|
+
</div>
|
69
|
+
</div>
|
70
|
+
|
71
|
+
|
72
|
+
</div>
|
73
|
+
|
74
|
+
<div id="class-metadata">
|
75
|
+
|
76
|
+
|
77
|
+
|
78
|
+
|
79
|
+
|
80
|
+
<!-- Namespace Contents -->
|
81
|
+
<div id="namespace-list-section" class="section">
|
82
|
+
<h3 class="section-header">Namespace</h3>
|
83
|
+
<ul class="link-list">
|
84
|
+
|
85
|
+
<li><span class="type">MODULE</span> <a href="RBatch/DoubleRunChecker.html">RBatch::DoubleRunChecker</a></li>
|
86
|
+
|
87
|
+
<li><span class="type">MODULE</span> <a href="RBatch/RBatch.html">RBatch::RBatch</a></li>
|
88
|
+
|
89
|
+
<li><span class="type">CLASS</span> <a href="RBatch/Cmd.html">RBatch::Cmd</a></li>
|
90
|
+
|
91
|
+
<li><span class="type">CLASS</span> <a href="RBatch/CmdException.html">RBatch::CmdException</a></li>
|
92
|
+
|
93
|
+
<li><span class="type">CLASS</span> <a href="RBatch/CmdResult.html">RBatch::CmdResult</a></li>
|
94
|
+
|
95
|
+
<li><span class="type">CLASS</span> <a href="RBatch/Config.html">RBatch::Config</a></li>
|
96
|
+
|
97
|
+
<li><span class="type">CLASS</span> <a href="RBatch/Controller.html">RBatch::Controller</a></li>
|
98
|
+
|
99
|
+
<li><span class="type">CLASS</span> <a href="RBatch/DoubleRunCheckException.html">RBatch::DoubleRunCheckException</a></li>
|
100
|
+
|
101
|
+
<li><span class="type">CLASS</span> <a href="RBatch/Journal.html">RBatch::Journal</a></li>
|
102
|
+
|
103
|
+
<li><span class="type">CLASS</span> <a href="RBatch/Log.html">RBatch::Log</a></li>
|
104
|
+
|
105
|
+
<li><span class="type">CLASS</span> <a href="RBatch/LogException.html">RBatch::LogException</a></li>
|
106
|
+
|
107
|
+
<li><span class="type">CLASS</span> <a href="RBatch/RunConf.html">RBatch::RunConf</a></li>
|
108
|
+
|
109
|
+
<li><span class="type">CLASS</span> <a href="RBatch/Variables.html">RBatch::Variables</a></li>
|
110
|
+
|
111
|
+
</ul>
|
112
|
+
</div>
|
113
|
+
|
114
|
+
|
115
|
+
|
116
|
+
<!-- Method Quickref -->
|
117
|
+
<div id="method-list-section" class="section">
|
118
|
+
<h3 class="section-header">Methods</h3>
|
119
|
+
<ul class="link-list">
|
120
|
+
|
121
|
+
<li><a href="#method-i-cmd">#cmd</a></li>
|
122
|
+
|
123
|
+
<li><a href="#method-i-common_config">#common_config</a></li>
|
124
|
+
|
125
|
+
<li><a href="#method-i-config">#config</a></li>
|
126
|
+
|
127
|
+
<li><a href="#method-i-init">#init</a></li>
|
128
|
+
|
129
|
+
<li><a href="#method-i-vars">#vars</a></li>
|
130
|
+
|
131
|
+
</ul>
|
132
|
+
</div>
|
133
|
+
|
134
|
+
|
135
|
+
|
136
|
+
</div>
|
137
|
+
|
138
|
+
<div id="project-metadata">
|
139
|
+
|
140
|
+
|
141
|
+
|
142
|
+
<div id="classindex-section" class="section project-section">
|
143
|
+
<h3 class="section-header">Class/Module Index
|
144
|
+
<span class="search-toggle"><img src="./images/find.png"
|
145
|
+
height="16" width="16" alt="[+]"
|
146
|
+
title="show/hide quicksearch" /></span></h3>
|
147
|
+
<form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
|
148
|
+
<fieldset>
|
149
|
+
<legend>Quicksearch</legend>
|
150
|
+
<input type="text" name="quicksearch" value=""
|
151
|
+
class="quicksearch-field" />
|
152
|
+
</fieldset>
|
153
|
+
</form>
|
154
|
+
|
155
|
+
<ul class="link-list">
|
156
|
+
|
157
|
+
<li><a href="./RBatch.html">RBatch</a></li>
|
158
|
+
|
159
|
+
<li><a href="./RBatch/Cmd.html">RBatch::Cmd</a></li>
|
160
|
+
|
161
|
+
<li><a href="./RBatch/CmdException.html">RBatch::CmdException</a></li>
|
162
|
+
|
163
|
+
<li><a href="./RBatch/CmdResult.html">RBatch::CmdResult</a></li>
|
164
|
+
|
165
|
+
<li><a href="./RBatch/Config.html">RBatch::Config</a></li>
|
166
|
+
|
167
|
+
<li><a href="./RBatch/Controller.html">RBatch::Controller</a></li>
|
168
|
+
|
169
|
+
<li><a href="./RBatch/DoubleRunCheckException.html">RBatch::DoubleRunCheckException</a></li>
|
170
|
+
|
171
|
+
<li><a href="./RBatch/DoubleRunChecker.html">RBatch::DoubleRunChecker</a></li>
|
172
|
+
|
173
|
+
<li><a href="./RBatch/Journal.html">RBatch::Journal</a></li>
|
174
|
+
|
175
|
+
<li><a href="./RBatch/Log.html">RBatch::Log</a></li>
|
176
|
+
|
177
|
+
<li><a href="./RBatch/LogException.html">RBatch::LogException</a></li>
|
178
|
+
|
179
|
+
<li><a href="./RBatch/RBatch.html">RBatch::RBatch</a></li>
|
180
|
+
|
181
|
+
<li><a href="./RBatch/RBatch/RBatch.html">RBatch::RBatch::RBatch</a></li>
|
182
|
+
|
183
|
+
<li><a href="./RBatch/RBatch/RBatch/ConfigException.html">RBatch::RBatch::RBatch::ConfigException</a></li>
|
184
|
+
|
185
|
+
<li><a href="./RBatch/RBatch/VariablesException.html">RBatch::RBatch::VariablesException</a></li>
|
186
|
+
|
187
|
+
<li><a href="./RBatch/RunConf.html">RBatch::RunConf</a></li>
|
188
|
+
|
189
|
+
<li><a href="./RBatch/RunConf/Exception.html">RBatch::RunConf::Exception</a></li>
|
190
|
+
|
191
|
+
<li><a href="./RBatch/Variables.html">RBatch::Variables</a></li>
|
192
|
+
|
193
|
+
</ul>
|
194
|
+
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
|
195
|
+
</div>
|
196
|
+
|
197
|
+
|
198
|
+
</div>
|
199
|
+
</div>
|
200
|
+
|
201
|
+
<div id="documentation">
|
202
|
+
<h1 class="module">RBatch</h1>
|
203
|
+
|
204
|
+
<div id="description" class="description">
|
205
|
+
|
206
|
+
</div><!-- description -->
|
207
|
+
|
208
|
+
|
209
|
+
|
210
|
+
|
211
|
+
<div id="5Buntitled-5D" class="documentation-section">
|
212
|
+
|
213
|
+
|
214
|
+
|
215
|
+
|
216
|
+
|
217
|
+
<!-- Constants -->
|
218
|
+
<div id="constants-list" class="section">
|
219
|
+
<h3 class="section-header">Constants</h3>
|
220
|
+
<dl>
|
221
|
+
|
222
|
+
<dt><a name="VERSION">VERSION</a></dt>
|
223
|
+
|
224
|
+
<dd class="description"></dd>
|
225
|
+
|
226
|
+
|
227
|
+
</dl>
|
228
|
+
</div>
|
229
|
+
|
230
|
+
|
231
|
+
|
232
|
+
|
233
|
+
<!-- Methods -->
|
234
|
+
|
235
|
+
<div id="public-instance-method-details" class="method-section section">
|
236
|
+
<h3 class="section-header">Public Instance Methods</h3>
|
237
|
+
|
238
|
+
|
239
|
+
<div id="cmd-method" class="method-detail ">
|
240
|
+
<a name="method-i-cmd"></a>
|
241
|
+
|
242
|
+
|
243
|
+
<div class="method-heading">
|
244
|
+
<span class="method-name">cmd</span><span
|
245
|
+
class="method-args">(cmd_str,opt=nil)</span>
|
246
|
+
<span class="method-click-advice">click to toggle source</span>
|
247
|
+
</div>
|
248
|
+
|
249
|
+
|
250
|
+
<div class="method-description">
|
251
|
+
|
252
|
+
|
253
|
+
|
254
|
+
|
255
|
+
|
256
|
+
<div class="method-source-code" id="cmd-source">
|
258
257
|
<pre>
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
<div class="method-source-code"
|
293
|
-
id="cmd-source">
|
258
|
+
<span class="ruby-comment"># File lib/rbatch.rb, line 14</span>
|
259
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">cmd</span>(<span class="ruby-identifier">cmd_str</span>,<span class="ruby-identifier">opt</span>=<span class="ruby-keyword">nil</span>) ; <span class="ruby-identifier">@@ctrl</span>.<span class="ruby-identifier">cmd</span>(<span class="ruby-identifier">cmd_str</span>,<span class="ruby-identifier">opt</span>) ; <span class="ruby-keyword">end</span></pre>
|
260
|
+
</div><!-- cmd-source -->
|
261
|
+
|
262
|
+
</div>
|
263
|
+
|
264
|
+
|
265
|
+
|
266
|
+
|
267
|
+
</div><!-- cmd-method -->
|
268
|
+
|
269
|
+
|
270
|
+
<div id="common_config-method" class="method-detail ">
|
271
|
+
<a name="method-i-common_config"></a>
|
272
|
+
|
273
|
+
|
274
|
+
<div class="method-heading">
|
275
|
+
<span class="method-name">common_config</span><span
|
276
|
+
class="method-args">()</span>
|
277
|
+
<span class="method-click-advice">click to toggle source</span>
|
278
|
+
</div>
|
279
|
+
|
280
|
+
|
281
|
+
<div class="method-description">
|
282
|
+
|
283
|
+
|
284
|
+
|
285
|
+
|
286
|
+
|
287
|
+
<div class="method-source-code" id="common_config-source">
|
294
288
|
<pre>
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
-
|
304
|
-
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
|
326
|
-
<div class="method-source-code"
|
327
|
-
id="common-config-source">
|
289
|
+
<span class="ruby-comment"># File lib/rbatch.rb, line 13</span>
|
290
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">common_config</span> ; <span class="ruby-identifier">@@ctrl</span>.<span class="ruby-identifier">common_config</span> ; <span class="ruby-keyword">end</span></pre>
|
291
|
+
</div><!-- common_config-source -->
|
292
|
+
|
293
|
+
</div>
|
294
|
+
|
295
|
+
|
296
|
+
|
297
|
+
|
298
|
+
</div><!-- common_config-method -->
|
299
|
+
|
300
|
+
|
301
|
+
<div id="config-method" class="method-detail ">
|
302
|
+
<a name="method-i-config"></a>
|
303
|
+
|
304
|
+
|
305
|
+
<div class="method-heading">
|
306
|
+
<span class="method-name">config</span><span
|
307
|
+
class="method-args">()</span>
|
308
|
+
<span class="method-click-advice">click to toggle source</span>
|
309
|
+
</div>
|
310
|
+
|
311
|
+
|
312
|
+
<div class="method-description">
|
313
|
+
|
314
|
+
|
315
|
+
|
316
|
+
|
317
|
+
|
318
|
+
<div class="method-source-code" id="config-source">
|
328
319
|
<pre>
|
329
|
-
|
330
|
-
|
331
|
-
|
332
|
-
|
333
|
-
|
334
|
-
|
335
|
-
|
336
|
-
|
337
|
-
|
338
|
-
|
339
|
-
|
340
|
-
|
341
|
-
|
342
|
-
|
343
|
-
|
344
|
-
|
345
|
-
|
346
|
-
|
347
|
-
|
348
|
-
|
349
|
-
|
350
|
-
|
351
|
-
|
352
|
-
|
353
|
-
|
354
|
-
|
355
|
-
|
356
|
-
|
357
|
-
|
358
|
-
|
359
|
-
id="conf-dir-source">
|
320
|
+
<span class="ruby-comment"># File lib/rbatch.rb, line 12</span>
|
321
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">config</span> ; <span class="ruby-identifier">@@ctrl</span>.<span class="ruby-identifier">config</span> ; <span class="ruby-keyword">end</span></pre>
|
322
|
+
</div><!-- config-source -->
|
323
|
+
|
324
|
+
</div>
|
325
|
+
|
326
|
+
|
327
|
+
|
328
|
+
|
329
|
+
</div><!-- config-method -->
|
330
|
+
|
331
|
+
|
332
|
+
<div id="init-method" class="method-detail ">
|
333
|
+
<a name="method-i-init"></a>
|
334
|
+
|
335
|
+
|
336
|
+
<div class="method-heading">
|
337
|
+
<span class="method-name">init</span><span
|
338
|
+
class="method-args">()</span>
|
339
|
+
<span class="method-click-advice">click to toggle source</span>
|
340
|
+
</div>
|
341
|
+
|
342
|
+
|
343
|
+
<div class="method-description">
|
344
|
+
|
345
|
+
|
346
|
+
|
347
|
+
|
348
|
+
|
349
|
+
<div class="method-source-code" id="init-source">
|
360
350
|
<pre>
|
361
|
-
|
362
|
-
|
363
|
-
|
364
|
-
|
365
|
-
|
366
|
-
|
367
|
-
|
368
|
-
|
369
|
-
|
370
|
-
|
371
|
-
|
372
|
-
|
373
|
-
|
374
|
-
|
375
|
-
|
376
|
-
|
377
|
-
|
378
|
-
|
379
|
-
|
380
|
-
|
381
|
-
|
382
|
-
|
383
|
-
|
384
|
-
|
385
|
-
|
386
|
-
|
387
|
-
|
388
|
-
|
389
|
-
|
390
|
-
|
391
|
-
|
351
|
+
<span class="ruby-comment"># File lib/rbatch.rb, line 8</span>
|
352
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">init</span>
|
353
|
+
<span class="ruby-identifier">@@ctrl</span> = <span class="ruby-constant">RBatch</span><span class="ruby-operator">::</span><span class="ruby-constant">Controller</span>.<span class="ruby-identifier">new</span>
|
354
|
+
<span class="ruby-keyword">end</span></pre>
|
355
|
+
</div><!-- init-source -->
|
356
|
+
|
357
|
+
</div>
|
358
|
+
|
359
|
+
|
360
|
+
|
361
|
+
|
362
|
+
</div><!-- init-method -->
|
363
|
+
|
364
|
+
|
365
|
+
<div id="vars-method" class="method-detail ">
|
366
|
+
<a name="method-i-vars"></a>
|
367
|
+
|
368
|
+
|
369
|
+
<div class="method-heading">
|
370
|
+
<span class="method-name">vars</span><span
|
371
|
+
class="method-args">()</span>
|
372
|
+
<span class="method-click-advice">click to toggle source</span>
|
373
|
+
</div>
|
374
|
+
|
375
|
+
|
376
|
+
<div class="method-description">
|
377
|
+
|
378
|
+
|
379
|
+
|
380
|
+
|
381
|
+
|
382
|
+
<div class="method-source-code" id="vars-source">
|
392
383
|
<pre>
|
393
|
-
|
394
|
-
|
395
|
-
|
396
|
-
|
397
|
-
|
398
|
-
|
399
|
-
|
400
|
-
|
401
|
-
|
402
|
-
|
403
|
-
|
404
|
-
|
405
|
-
|
406
|
-
|
407
|
-
|
408
|
-
|
409
|
-
|
410
|
-
|
411
|
-
|
412
|
-
|
413
|
-
|
414
|
-
|
415
|
-
|
416
|
-
|
417
|
-
|
418
|
-
|
419
|
-
|
420
|
-
|
421
|
-
|
422
|
-
<div class="method-source-code"
|
423
|
-
id="home-dir-source">
|
424
|
-
<pre>
|
425
|
-
<span class="ruby-comment cmt"># File lib/rbatch.rb, line 22</span>
|
426
|
-
22: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">home_dir</span> ; <span class="ruby-identifier">@@home_dir</span> ; <span class="ruby-keyword kw">end</span></pre>
|
427
|
-
</div>
|
428
|
-
|
429
|
-
</div>
|
430
|
-
|
431
|
-
|
432
|
-
|
433
|
-
|
434
|
-
</div>
|
435
|
-
|
436
|
-
|
437
|
-
<div id="init-method" class="method-detail ">
|
438
|
-
<a name="method-i-init"></a>
|
439
|
-
|
440
|
-
<div class="method-heading">
|
441
|
-
|
442
|
-
<span class="method-name">init</span><span
|
443
|
-
class="method-args">()</span>
|
444
|
-
<span class="method-click-advice">click to toggle source</span>
|
445
|
-
|
446
|
-
</div>
|
447
|
-
|
448
|
-
<div class="method-description">
|
449
|
-
|
450
|
-
|
451
|
-
|
452
|
-
|
453
|
-
|
454
|
-
<div class="method-source-code"
|
455
|
-
id="init-source">
|
456
|
-
<pre>
|
457
|
-
<span class="ruby-comment cmt"># File lib/rbatch.rb, line 46</span>
|
458
|
-
46: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">init</span>
|
459
|
-
47: <span class="ruby-identifier">@@journal_verbose</span> = <span class="ruby-constant">ENV</span>[<span class="ruby-value str">"RB_VERBOSE"</span>].<span class="ruby-identifier">to_i</span> <span class="ruby-keyword kw">if</span> <span class="ruby-constant">ENV</span>[<span class="ruby-value str">"RB_VERBOSE"</span>]
|
460
|
-
48: <span class="ruby-constant">RBatch</span>.<span class="ruby-identifier">journal</span> <span class="ruby-value">:info</span>,<span class="ruby-node">"=== START RBatch === (PID=#{$$.to_s})"</span>
|
461
|
-
49: <span class="ruby-identifier">@@program_name</span> = <span class="ruby-identifier">$PROGRAM_NAME</span>
|
462
|
-
50: <span class="ruby-identifier">@@program_base</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">basename</span>(<span class="ruby-identifier">$PROGRAM_NAME</span>)
|
463
|
-
51: <span class="ruby-identifier">@@program_path</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">expand_path</span>(<span class="ruby-identifier">@@program_name</span>)
|
464
|
-
52: <span class="ruby-keyword kw">if</span> <span class="ruby-constant">ENV</span>[<span class="ruby-value str">"RB_HOME"</span>]
|
465
|
-
53: <span class="ruby-identifier">@@home_dir</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">expand_path</span>(<span class="ruby-constant">ENV</span>[<span class="ruby-value str">"RB_HOME"</span>])
|
466
|
-
54: <span class="ruby-constant">RBatch</span>.<span class="ruby-identifier">journal</span> <span class="ruby-value">:debug</span>,<span class="ruby-node">"RB_HOME : \"#{@@home_dir}\" (defined by $RB_HOME)"</span>
|
467
|
-
55: <span class="ruby-keyword kw">else</span>
|
468
|
-
56: <span class="ruby-identifier">@@home_dir</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">expand_path</span>(<span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-constant">File</span>.<span class="ruby-identifier">dirname</span>(<span class="ruby-identifier">@@program_name</span>) , <span class="ruby-value str">".."</span>))
|
469
|
-
57: <span class="ruby-constant">RBatch</span>.<span class="ruby-identifier">journal</span> <span class="ruby-value">:debug</span>,<span class="ruby-node">"RB_HOME : \"#{@@home_dir}\" (default)"</span>
|
470
|
-
58: <span class="ruby-keyword kw">end</span>
|
471
|
-
59: <span class="ruby-identifier">@@run_conf_path</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-identifier">@@home_dir</span>,<span class="ruby-value str">".rbatchrc"</span>)
|
472
|
-
60: <span class="ruby-constant">RBatch</span>.<span class="ruby-identifier">journal</span> <span class="ruby-value">:info</span>,<span class="ruby-node">"Load Run-Conf: \"#{@@run_conf_path}\""</span>
|
473
|
-
61: <span class="ruby-identifier">@@run_conf</span> = <span class="ruby-constant">RunConf</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">@@run_conf_path</span>,<span class="ruby-identifier">@@home_dir</span>)
|
474
|
-
62: <span class="ruby-constant">RBatch</span>.<span class="ruby-identifier">journal</span> <span class="ruby-value">:debug</span>,<span class="ruby-node">"RBatch option : #{@@run_conf.inspect}"</span>
|
475
|
-
63: <span class="ruby-identifier">@@common_config</span> = <span class="ruby-constant">RBatch</span><span class="ruby-operator">::</span><span class="ruby-constant">CommonConfig</span>.<span class="ruby-identifier">new</span>
|
476
|
-
64: <span class="ruby-constant">RBatch</span>.<span class="ruby-identifier">journal</span> <span class="ruby-value">:info</span>,<span class="ruby-node">"Load Config : \"#{@@common_config.path}\""</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">@@common_config</span>.<span class="ruby-identifier">exist?</span>
|
477
|
-
65: <span class="ruby-identifier">@@config</span> = <span class="ruby-constant">RBatch</span><span class="ruby-operator">::</span><span class="ruby-constant">Config</span>.<span class="ruby-identifier">new</span>
|
478
|
-
66: <span class="ruby-constant">RBatch</span>.<span class="ruby-identifier">journal</span> <span class="ruby-value">:info</span>,<span class="ruby-node">"Load Config : \"#{@@config.path}\""</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">@@config</span>.<span class="ruby-identifier">exist?</span>
|
479
|
-
67: <span class="ruby-keyword kw">end</span></pre>
|
480
|
-
</div>
|
481
|
-
|
482
|
-
</div>
|
483
|
-
|
484
|
-
|
485
|
-
|
486
|
-
|
487
|
-
</div>
|
488
|
-
|
489
|
-
|
490
|
-
<div id="journal-method" class="method-detail ">
|
491
|
-
<a name="method-i-journal"></a>
|
492
|
-
|
493
|
-
<div class="method-heading">
|
494
|
-
|
495
|
-
<span class="method-name">journal</span><span
|
496
|
-
class="method-args">(level,str)</span>
|
497
|
-
<span class="method-click-advice">click to toggle source</span>
|
498
|
-
|
499
|
-
</div>
|
500
|
-
|
501
|
-
<div class="method-description">
|
502
|
-
|
503
|
-
|
504
|
-
|
505
|
-
|
506
|
-
|
507
|
-
<div class="method-source-code"
|
508
|
-
id="journal-source">
|
509
|
-
<pre>
|
510
|
-
<span class="ruby-comment cmt"># File lib/rbatch.rb, line 34</span>
|
511
|
-
34: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">journal</span>(<span class="ruby-identifier">level</span>,<span class="ruby-identifier">str</span>)
|
512
|
-
35: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">@@journal_verbose_map</span>[<span class="ruby-identifier">level</span>] <span class="ruby-operator"><=</span> <span class="ruby-identifier">@@journal_verbose</span>
|
513
|
-
36: <span class="ruby-identifier">str</span> = <span class="ruby-value str">"[RBatch] "</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">str</span>
|
514
|
-
37: <span class="ruby-identifier">puts</span> <span class="ruby-identifier">str</span>
|
515
|
-
38: <span class="ruby-identifier">@@journals</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">str</span>
|
516
|
-
39: <span class="ruby-identifier">@@logs</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">log</span><span class="ruby-operator">|</span>
|
517
|
-
40: <span class="ruby-keyword kw">if</span> <span class="ruby-constant">RBatch</span>.<span class="ruby-identifier">run_conf</span>[<span class="ruby-value">:mix_rbatch_msg_to_log</span>]
|
518
|
-
41: <span class="ruby-identifier">log</span>.<span class="ruby-identifier">journal</span>(<span class="ruby-identifier">str</span>)
|
519
|
-
42: <span class="ruby-keyword kw">end</span>
|
520
|
-
43: <span class="ruby-keyword kw">end</span>
|
521
|
-
44: <span class="ruby-keyword kw">end</span>
|
522
|
-
45: <span class="ruby-keyword kw">end</span></pre>
|
523
|
-
</div>
|
524
|
-
|
525
|
-
</div>
|
526
|
-
|
527
|
-
|
528
|
-
|
529
|
-
|
530
|
-
</div>
|
531
|
-
|
532
|
-
|
533
|
-
<div id="journals-method" class="method-detail ">
|
534
|
-
<a name="method-i-journals"></a>
|
535
|
-
|
536
|
-
<div class="method-heading">
|
537
|
-
|
538
|
-
<span class="method-name">journals</span><span
|
539
|
-
class="method-args">()</span>
|
540
|
-
<span class="method-click-advice">click to toggle source</span>
|
541
|
-
|
542
|
-
</div>
|
543
|
-
|
544
|
-
<div class="method-description">
|
545
|
-
|
546
|
-
|
547
|
-
|
548
|
-
|
549
|
-
|
550
|
-
<div class="method-source-code"
|
551
|
-
id="journals-source">
|
552
|
-
<pre>
|
553
|
-
<span class="ruby-comment cmt"># File lib/rbatch.rb, line 30</span>
|
554
|
-
30: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">journals</span> ; <span class="ruby-identifier">@@journals</span> ; <span class="ruby-keyword kw">end</span></pre>
|
555
|
-
</div>
|
556
|
-
|
557
|
-
</div>
|
558
|
-
|
559
|
-
|
560
|
-
|
561
|
-
|
562
|
-
</div>
|
563
|
-
|
564
|
-
|
565
|
-
<div id="lib-dir-method" class="method-detail ">
|
566
|
-
<a name="method-i-lib_dir"></a>
|
567
|
-
|
568
|
-
<div class="method-heading">
|
569
|
-
|
570
|
-
<span class="method-name">lib_dir</span><span
|
571
|
-
class="method-args">()</span>
|
572
|
-
<span class="method-click-advice">click to toggle source</span>
|
573
|
-
|
574
|
-
</div>
|
575
|
-
|
576
|
-
<div class="method-description">
|
577
|
-
|
578
|
-
|
579
|
-
|
580
|
-
|
581
|
-
|
582
|
-
<div class="method-source-code"
|
583
|
-
id="lib-dir-source">
|
584
|
-
<pre>
|
585
|
-
<span class="ruby-comment cmt"># File lib/rbatch.rb, line 27</span>
|
586
|
-
27: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">lib_dir</span> ; <span class="ruby-identifier">@@run_conf</span>[<span class="ruby-value">:lib_dir</span>].<span class="ruby-identifier">gsub</span>(<span class="ruby-value str">"<home>"</span>,<span class="ruby-identifier">@@home_dir</span>) ; <span class="ruby-keyword kw">end</span></pre>
|
587
|
-
</div>
|
588
|
-
|
589
|
-
</div>
|
590
|
-
|
591
|
-
|
592
|
-
|
593
|
-
|
594
|
-
</div>
|
595
|
-
|
596
|
-
|
597
|
-
<div id="log-dir-method" class="method-detail ">
|
598
|
-
<a name="method-i-log_dir"></a>
|
599
|
-
|
600
|
-
<div class="method-heading">
|
601
|
-
|
602
|
-
<span class="method-name">log_dir</span><span
|
603
|
-
class="method-args">()</span>
|
604
|
-
<span class="method-click-advice">click to toggle source</span>
|
605
|
-
|
606
|
-
</div>
|
607
|
-
|
608
|
-
<div class="method-description">
|
609
|
-
|
610
|
-
|
611
|
-
|
612
|
-
|
613
|
-
|
614
|
-
<div class="method-source-code"
|
615
|
-
id="log-dir-source">
|
616
|
-
<pre>
|
617
|
-
<span class="ruby-comment cmt"># File lib/rbatch.rb, line 26</span>
|
618
|
-
26: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">log_dir</span> ; <span class="ruby-identifier">@@run_conf</span>[<span class="ruby-value">:log_dir</span>].<span class="ruby-identifier">gsub</span>(<span class="ruby-value str">"<home>"</span>,<span class="ruby-identifier">@@home_dir</span>) ; <span class="ruby-keyword kw">end</span></pre>
|
619
|
-
</div>
|
620
|
-
|
621
|
-
</div>
|
622
|
-
|
623
|
-
|
624
|
-
|
625
|
-
|
626
|
-
</div>
|
627
|
-
|
628
|
-
|
629
|
-
<div id="program-base-method" class="method-detail ">
|
630
|
-
<a name="method-i-program_base"></a>
|
631
|
-
|
632
|
-
<div class="method-heading">
|
633
|
-
|
634
|
-
<span class="method-name">program_base</span><span
|
635
|
-
class="method-args">()</span>
|
636
|
-
<span class="method-click-advice">click to toggle source</span>
|
637
|
-
|
638
|
-
</div>
|
639
|
-
|
640
|
-
<div class="method-description">
|
641
|
-
|
642
|
-
|
643
|
-
|
644
|
-
|
645
|
-
|
646
|
-
<div class="method-source-code"
|
647
|
-
id="program-base-source">
|
648
|
-
<pre>
|
649
|
-
<span class="ruby-comment cmt"># File lib/rbatch.rb, line 20</span>
|
650
|
-
20: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">program_base</span> ; <span class="ruby-identifier">@@program_base</span> ; <span class="ruby-keyword kw">end</span></pre>
|
651
|
-
</div>
|
652
|
-
|
653
|
-
</div>
|
654
|
-
|
655
|
-
|
656
|
-
|
657
|
-
|
658
|
-
</div>
|
659
|
-
|
660
|
-
|
661
|
-
<div id="program-name-method" class="method-detail ">
|
662
|
-
<a name="method-i-program_name"></a>
|
663
|
-
|
664
|
-
<div class="method-heading">
|
665
|
-
|
666
|
-
<span class="method-name">program_name</span><span
|
667
|
-
class="method-args">()</span>
|
668
|
-
<span class="method-click-advice">click to toggle source</span>
|
669
|
-
|
670
|
-
</div>
|
671
|
-
|
672
|
-
<div class="method-description">
|
673
|
-
|
674
|
-
|
675
|
-
|
676
|
-
|
677
|
-
|
678
|
-
<div class="method-source-code"
|
679
|
-
id="program-name-source">
|
680
|
-
<pre>
|
681
|
-
<span class="ruby-comment cmt"># File lib/rbatch.rb, line 19</span>
|
682
|
-
19: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">program_name</span> ; <span class="ruby-identifier">@@program_name</span> ; <span class="ruby-keyword kw">end</span></pre>
|
683
|
-
</div>
|
684
|
-
|
685
|
-
</div>
|
686
|
-
|
687
|
-
|
688
|
-
|
689
|
-
|
690
|
-
</div>
|
691
|
-
|
692
|
-
|
693
|
-
<div id="program-path-method" class="method-detail ">
|
694
|
-
<a name="method-i-program_path"></a>
|
695
|
-
|
696
|
-
<div class="method-heading">
|
697
|
-
|
698
|
-
<span class="method-name">program_path</span><span
|
699
|
-
class="method-args">()</span>
|
700
|
-
<span class="method-click-advice">click to toggle source</span>
|
701
|
-
|
702
|
-
</div>
|
703
|
-
|
704
|
-
<div class="method-description">
|
705
|
-
|
706
|
-
|
707
|
-
|
708
|
-
|
709
|
-
|
710
|
-
<div class="method-source-code"
|
711
|
-
id="program-path-source">
|
712
|
-
<pre>
|
713
|
-
<span class="ruby-comment cmt"># File lib/rbatch.rb, line 21</span>
|
714
|
-
21: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">program_path</span> ; <span class="ruby-identifier">@@program_path</span> ; <span class="ruby-keyword kw">end</span></pre>
|
715
|
-
</div>
|
716
|
-
|
717
|
-
</div>
|
718
|
-
|
719
|
-
|
720
|
-
|
721
|
-
|
722
|
-
</div>
|
723
|
-
|
724
|
-
|
725
|
-
<div id="reload-common-config-method" class="method-detail ">
|
726
|
-
<a name="method-i-reload_common_config"></a>
|
727
|
-
|
728
|
-
<div class="method-heading">
|
729
|
-
|
730
|
-
<span class="method-name">reload_common_config</span><span
|
731
|
-
class="method-args">()</span>
|
732
|
-
<span class="method-click-advice">click to toggle source</span>
|
733
|
-
|
734
|
-
</div>
|
735
|
-
|
736
|
-
<div class="method-description">
|
737
|
-
|
738
|
-
|
739
|
-
|
740
|
-
|
741
|
-
|
742
|
-
<div class="method-source-code"
|
743
|
-
id="reload-common-config-source">
|
744
|
-
<pre>
|
745
|
-
<span class="ruby-comment cmt"># File lib/rbatch.rb, line 75</span>
|
746
|
-
75: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">reload_common_config</span>
|
747
|
-
76: <span class="ruby-keyword kw">begin</span>
|
748
|
-
77: <span class="ruby-identifier">@@common_config</span> = <span class="ruby-constant">RBatch</span><span class="ruby-operator">::</span><span class="ruby-constant">CommonConfig</span>.<span class="ruby-identifier">new</span>
|
749
|
-
78: <span class="ruby-constant">RBatch</span>.<span class="ruby-identifier">journal</span> <span class="ruby-value">:info</span>,<span class="ruby-node">"Load Config : \"#{@@common_config.path}\""</span>
|
750
|
-
79: <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>
|
751
|
-
80: <span class="ruby-keyword kw">end</span>
|
752
|
-
81: <span class="ruby-keyword kw">end</span></pre>
|
753
|
-
</div>
|
754
|
-
|
755
|
-
</div>
|
756
|
-
|
757
|
-
|
758
|
-
|
759
|
-
|
760
|
-
</div>
|
761
|
-
|
762
|
-
|
763
|
-
<div id="reload-config-method" class="method-detail ">
|
764
|
-
<a name="method-i-reload_config"></a>
|
765
|
-
|
766
|
-
<div class="method-heading">
|
767
|
-
|
768
|
-
<span class="method-name">reload_config</span><span
|
769
|
-
class="method-args">()</span>
|
770
|
-
<span class="method-click-advice">click to toggle source</span>
|
771
|
-
|
772
|
-
</div>
|
773
|
-
|
774
|
-
<div class="method-description">
|
775
|
-
|
776
|
-
|
777
|
-
|
778
|
-
|
779
|
-
|
780
|
-
<div class="method-source-code"
|
781
|
-
id="reload-config-source">
|
782
|
-
<pre>
|
783
|
-
<span class="ruby-comment cmt"># File lib/rbatch.rb, line 68</span>
|
784
|
-
68: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">reload_config</span>
|
785
|
-
69: <span class="ruby-keyword kw">begin</span>
|
786
|
-
70: <span class="ruby-identifier">@@config</span> = <span class="ruby-constant">RBatch</span><span class="ruby-operator">::</span><span class="ruby-constant">Config</span>.<span class="ruby-identifier">new</span>
|
787
|
-
71: <span class="ruby-constant">RBatch</span>.<span class="ruby-identifier">journal</span> <span class="ruby-value">:info</span>, <span class="ruby-node">"Load Config : \"#{@@config.path}\""</span>
|
788
|
-
72: <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>
|
789
|
-
73: <span class="ruby-keyword kw">end</span>
|
790
|
-
74: <span class="ruby-keyword kw">end</span></pre>
|
791
|
-
</div>
|
792
|
-
|
793
|
-
</div>
|
794
|
-
|
795
|
-
|
796
|
-
|
797
|
-
|
798
|
-
</div>
|
799
|
-
|
800
|
-
|
801
|
-
<div id="run-conf-method" class="method-detail ">
|
802
|
-
<a name="method-i-run_conf"></a>
|
803
|
-
|
804
|
-
<div class="method-heading">
|
805
|
-
|
806
|
-
<span class="method-name">run_conf</span><span
|
807
|
-
class="method-args">()</span>
|
808
|
-
<span class="method-click-advice">click to toggle source</span>
|
809
|
-
|
810
|
-
</div>
|
811
|
-
|
812
|
-
<div class="method-description">
|
813
|
-
|
814
|
-
|
815
|
-
|
816
|
-
|
817
|
-
|
818
|
-
<div class="method-source-code"
|
819
|
-
id="run-conf-source">
|
820
|
-
<pre>
|
821
|
-
<span class="ruby-comment cmt"># File lib/rbatch.rb, line 24</span>
|
822
|
-
24: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">run_conf</span> ; <span class="ruby-identifier">@@run_conf</span> ; <span class="ruby-keyword kw">end</span></pre>
|
823
|
-
</div>
|
824
|
-
|
825
|
-
</div>
|
826
|
-
|
827
|
-
|
828
|
-
|
829
|
-
|
830
|
-
</div>
|
831
|
-
|
832
|
-
|
833
|
-
<div id="run-conf-path-method" class="method-detail ">
|
834
|
-
<a name="method-i-run_conf_path"></a>
|
835
|
-
|
836
|
-
<div class="method-heading">
|
837
|
-
|
838
|
-
<span class="method-name">run_conf_path</span><span
|
839
|
-
class="method-args">()</span>
|
840
|
-
<span class="method-click-advice">click to toggle source</span>
|
841
|
-
|
842
|
-
</div>
|
843
|
-
|
844
|
-
<div class="method-description">
|
845
|
-
|
846
|
-
|
847
|
-
|
848
|
-
|
849
|
-
|
850
|
-
<div class="method-source-code"
|
851
|
-
id="run-conf-path-source">
|
852
|
-
<pre>
|
853
|
-
<span class="ruby-comment cmt"># File lib/rbatch.rb, line 23</span>
|
854
|
-
23: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">run_conf_path</span> ; <span class="ruby-identifier">@@run_conf_path</span> ; <span class="ruby-keyword kw">end</span></pre>
|
855
|
-
</div>
|
856
|
-
|
857
|
-
</div>
|
858
|
-
|
859
|
-
|
860
|
-
|
861
|
-
|
862
|
-
</div>
|
863
|
-
|
864
|
-
|
865
|
-
</div>
|
866
|
-
|
867
|
-
|
868
|
-
</div>
|
869
|
-
|
870
|
-
|
871
|
-
<div id="rdoc-debugging-section-dump" class="debugging-section">
|
872
|
-
|
873
|
-
<p>Disabled; run with --debug to generate this.</p>
|
874
|
-
|
875
|
-
</div>
|
876
|
-
|
877
|
-
<div id="validator-badges">
|
878
|
-
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
879
|
-
<p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
|
880
|
-
Rdoc Generator</a> 1.1.6</small>.</p>
|
881
|
-
</div>
|
384
|
+
<span class="ruby-comment"># File lib/rbatch.rb, line 11</span>
|
385
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">vars</span> ; <span class="ruby-identifier">@@ctrl</span>.<span class="ruby-identifier">vars</span> ; <span class="ruby-keyword">end</span></pre>
|
386
|
+
</div><!-- vars-source -->
|
387
|
+
|
388
|
+
</div>
|
389
|
+
|
390
|
+
|
391
|
+
|
392
|
+
|
393
|
+
</div><!-- vars-method -->
|
394
|
+
|
395
|
+
|
396
|
+
</div><!-- public-instance-method-details -->
|
397
|
+
|
398
|
+
</div><!-- 5Buntitled-5D -->
|
399
|
+
|
400
|
+
|
401
|
+
</div><!-- documentation -->
|
402
|
+
|
403
|
+
<div id="validator-badges">
|
404
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
405
|
+
<p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
|
406
|
+
Rdoc Generator</a> 2</small>.</p>
|
407
|
+
</div>
|
882
408
|
|
883
409
|
</body>
|
884
410
|
</html>
|