rbatch 1.6.6 → 1.7.0
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 +11 -11
- data/README.md +12 -12
- data/Rakefile +2 -2
- data/doc/rdoc/CHANGELOG.html +144 -163
- data/doc/rdoc/LICENSE.html +79 -73
- data/doc/rdoc/RBatch/Cmd.html +293 -308
- data/doc/rdoc/RBatch/CmdException.html +141 -140
- data/doc/rdoc/RBatch/CmdResult.html +462 -469
- data/doc/rdoc/RBatch/Config.html +314 -329
- data/doc/rdoc/RBatch/Log.html +677 -709
- data/doc/rdoc/RBatch.html +425 -432
- data/doc/rdoc/created.rid +8 -8
- data/doc/rdoc/index.html +123 -117
- data/doc/rdoc/lib/rbatch/cmd_rb.html +42 -42
- data/doc/rdoc/lib/rbatch/config_rb.html +42 -42
- data/doc/rdoc/lib/rbatch/log_rb.html +44 -44
- data/doc/rdoc/lib/rbatch_rb.html +44 -44
- data/doc/rdoc/rdoc.css +365 -308
- data/lib/rbatch/log.rb +13 -3
- data/sample/bin/log_backup.rb +20 -0
- data/sample/conf/log_backup.yaml +4 -0
- data/sample/log/20130129_log_backup.log +95 -0
- data/test/cases/test_log.rb +0 -7
- metadata +6 -3
data/doc/rdoc/RBatch.html
CHANGED
@@ -1,456 +1,449 @@
|
|
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
|
-
|
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/log_rb.html?TB_iframe=true&height=550&width=785"
|
41
|
+
class="thickbox" title="lib/rbatch/log.rb">lib/rbatch/log.rb</a></li>
|
42
|
+
|
43
|
+
<li><a href="./lib/rbatch/cmd_rb.html?TB_iframe=true&height=550&width=785"
|
44
|
+
class="thickbox" title="lib/rbatch/cmd.rb">lib/rbatch/cmd.rb</a></li>
|
45
|
+
|
46
|
+
<li><a href="./lib/rbatch/config_rb.html?TB_iframe=true&height=550&width=785"
|
47
|
+
class="thickbox" title="lib/rbatch/config.rb">lib/rbatch/config.rb</a></li>
|
48
|
+
|
49
|
+
</ul>
|
50
|
+
</div>
|
51
|
+
</div>
|
52
|
+
|
53
|
+
|
54
|
+
</div>
|
55
|
+
|
56
|
+
<div id="class-metadata">
|
57
|
+
|
58
|
+
|
59
|
+
|
60
|
+
|
61
|
+
|
62
|
+
<!-- Namespace Contents -->
|
63
|
+
<div id="namespace-list-section" class="section">
|
64
|
+
<h3 class="section-header">Namespace</h3>
|
65
|
+
<ul class="link-list">
|
66
|
+
|
67
|
+
<li><span class="type">MODULE</span> <a href="RBatch/RBatch.html">RBatch::RBatch</a></li>
|
68
|
+
|
69
|
+
<li><span class="type">CLASS</span> <a href="RBatch/Cmd.html">RBatch::Cmd</a></li>
|
70
|
+
|
71
|
+
<li><span class="type">CLASS</span> <a href="RBatch/CmdException.html">RBatch::CmdException</a></li>
|
72
|
+
|
73
|
+
<li><span class="type">CLASS</span> <a href="RBatch/CmdResult.html">RBatch::CmdResult</a></li>
|
74
|
+
|
75
|
+
<li><span class="type">CLASS</span> <a href="RBatch/Config.html">RBatch::Config</a></li>
|
76
|
+
|
77
|
+
<li><span class="type">CLASS</span> <a href="RBatch/Log.html">RBatch::Log</a></li>
|
78
|
+
|
79
|
+
</ul>
|
80
|
+
</div>
|
81
|
+
|
82
|
+
|
83
|
+
|
84
|
+
<!-- Method Quickref -->
|
85
|
+
<div id="method-list-section" class="section">
|
86
|
+
<h3 class="section-header">Methods</h3>
|
87
|
+
<ul class="link-list">
|
88
|
+
|
89
|
+
<li><a href="#method-i-cmd">#cmd</a></li>
|
90
|
+
|
91
|
+
<li><a href="#method-i-common_config">#common_config</a></li>
|
92
|
+
|
93
|
+
<li><a href="#method-i-common_config_path">#common_config_path</a></li>
|
94
|
+
|
95
|
+
<li><a href="#method-i-config">#config</a></li>
|
96
|
+
|
97
|
+
<li><a href="#method-i-program_name">#program_name</a></li>
|
98
|
+
|
99
|
+
<li><a href="#method-i-program_name-3D">#program_name=</a></li>
|
100
|
+
|
101
|
+
<li><a href="#method-i-tmp_dir">#tmp_dir</a></li>
|
102
|
+
|
103
|
+
</ul>
|
104
|
+
</div>
|
105
|
+
|
106
|
+
|
107
|
+
|
108
|
+
</div>
|
109
|
+
|
110
|
+
<div id="project-metadata">
|
111
|
+
|
112
|
+
|
113
|
+
<div id="fileindex-section" class="section project-section">
|
114
|
+
<h3 class="section-header">Files</h3>
|
115
|
+
<ul>
|
116
|
+
|
117
|
+
<li class="file"><a href="./CHANGELOG.html">CHANGELOG</a></li>
|
118
|
+
|
119
|
+
<li class="file"><a href="./LICENSE.html">LICENSE</a></li>
|
120
|
+
|
121
|
+
</ul>
|
122
|
+
</div>
|
123
|
+
|
124
|
+
|
125
|
+
<div id="classindex-section" class="section project-section">
|
126
|
+
<h3 class="section-header">Class/Module Index
|
127
|
+
<span class="search-toggle"><img src="./images/find.png"
|
128
|
+
height="16" width="16" alt="[+]"
|
129
|
+
title="show/hide quicksearch" /></span></h3>
|
130
|
+
<form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
|
131
|
+
<fieldset>
|
132
|
+
<legend>Quicksearch</legend>
|
133
|
+
<input type="text" name="quicksearch" value=""
|
134
|
+
class="quicksearch-field" />
|
135
|
+
</fieldset>
|
136
|
+
</form>
|
137
|
+
|
138
|
+
<ul class="link-list">
|
139
|
+
|
140
|
+
<li><a href="./RBatch.html">RBatch</a></li>
|
141
|
+
|
142
|
+
<li><a href="./RBatch/Cmd.html">RBatch::Cmd</a></li>
|
143
|
+
|
144
|
+
<li><a href="./RBatch/CmdException.html">RBatch::CmdException</a></li>
|
145
|
+
|
146
|
+
<li><a href="./RBatch/CmdResult.html">RBatch::CmdResult</a></li>
|
147
|
+
|
148
|
+
<li><a href="./RBatch/Config.html">RBatch::Config</a></li>
|
149
|
+
|
150
|
+
<li><a href="./RBatch/Log.html">RBatch::Log</a></li>
|
151
|
+
|
152
|
+
<li><a href="./RBatch/RBatch.html">RBatch::RBatch</a></li>
|
153
|
+
|
154
|
+
<li><a href="./RBatch/RBatch/RBatch.html">RBatch::RBatch::RBatch</a></li>
|
155
|
+
|
156
|
+
<li><a href="./RBatch/RBatch/RBatch/Config.html">RBatch::RBatch::RBatch::Config</a></li>
|
157
|
+
|
158
|
+
<li><a href="./RBatch/RBatch/RBatch/Config/Exception.html">RBatch::RBatch::RBatch::Config::Exception</a></li>
|
159
|
+
|
160
|
+
</ul>
|
161
|
+
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
|
162
|
+
</div>
|
163
|
+
|
164
|
+
|
165
|
+
</div>
|
166
|
+
</div>
|
167
|
+
|
168
|
+
<div id="documentation">
|
169
|
+
<h1 class="module">RBatch</h1>
|
170
|
+
|
171
|
+
<div id="description" class="description">
|
172
|
+
|
173
|
+
</div><!-- description -->
|
174
|
+
|
175
|
+
|
176
|
+
|
177
|
+
|
178
|
+
<div id="5Buntitled-5D" class="documentation-section">
|
179
|
+
|
180
|
+
|
181
|
+
|
182
|
+
|
183
|
+
|
184
|
+
|
185
|
+
|
186
|
+
|
187
|
+
<!-- Methods -->
|
188
|
+
|
189
|
+
<div id="public-instance-method-details" class="method-section section">
|
190
|
+
<h3 class="section-header">Public Instance Methods</h3>
|
191
|
+
|
192
|
+
|
193
|
+
<div id="cmd-method" class="method-detail ">
|
194
|
+
<a name="method-i-cmd"></a>
|
195
|
+
|
196
|
+
|
197
|
+
<div class="method-heading">
|
198
|
+
<span class="method-name">cmd</span><span
|
199
|
+
class="method-args">(cmd_str,opt = nil)</span>
|
200
|
+
<span class="method-click-advice">click to toggle source</span>
|
201
|
+
</div>
|
202
|
+
|
203
|
+
|
204
|
+
<div class="method-description">
|
205
|
+
|
206
|
+
<p>shortcut of <a href="RBatch/Cmd.html">RBatch::Cmd</a></p>
|
207
|
+
|
208
|
+
|
209
|
+
|
210
|
+
<div class="method-source-code" id="cmd-source">
|
205
211
|
<pre>
|
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
|
-
id="common-config-source">
|
212
|
+
<span class="ruby-comment"># File lib/rbatch/cmd.rb, line 114</span>
|
213
|
+
<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>)
|
214
|
+
<span class="ruby-constant">Cmd</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">cmd_str</span>,<span class="ruby-identifier">opt</span>).<span class="ruby-identifier">run</span>
|
215
|
+
<span class="ruby-keyword">end</span></pre>
|
216
|
+
</div><!-- cmd-source -->
|
217
|
+
|
218
|
+
</div>
|
219
|
+
|
220
|
+
|
221
|
+
|
222
|
+
|
223
|
+
</div><!-- cmd-method -->
|
224
|
+
|
225
|
+
|
226
|
+
<div id="common_config-method" class="method-detail ">
|
227
|
+
<a name="method-i-common_config"></a>
|
228
|
+
|
229
|
+
|
230
|
+
<div class="method-heading">
|
231
|
+
<span class="method-name">common_config</span><span
|
232
|
+
class="method-args">()</span>
|
233
|
+
<span class="method-click-advice">click to toggle source</span>
|
234
|
+
</div>
|
235
|
+
|
236
|
+
|
237
|
+
<div class="method-description">
|
238
|
+
|
239
|
+
|
240
|
+
|
241
|
+
|
242
|
+
|
243
|
+
<div class="method-source-code" id="common_config-source">
|
239
244
|
<pre>
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
id="common-config-path-source">
|
245
|
+
<span class="ruby-comment"># File lib/rbatch.rb, line 21</span>
|
246
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">common_config</span>
|
247
|
+
<span class="ruby-keyword">if</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">exist?</span>(<span class="ruby-constant">RBatch</span>.<span class="ruby-identifier">common_config_path</span>)
|
248
|
+
<span class="ruby-identifier">yaml</span> = <span class="ruby-constant">YAML</span><span class="ruby-operator">::</span><span class="ruby-identifier">load_file</span>(<span class="ruby-constant">RBatch</span>.<span class="ruby-identifier">common_config_path</span>)
|
249
|
+
<span class="ruby-keyword">if</span> <span class="ruby-identifier">yaml</span>
|
250
|
+
<span class="ruby-keyword">return</span> <span class="ruby-identifier">yaml</span>
|
251
|
+
<span class="ruby-keyword">else</span>
|
252
|
+
<span class="ruby-comment"># If file is emply , YAML::load_file is false</span>
|
253
|
+
<span class="ruby-keyword">return</span> <span class="ruby-keyword">nil</span>
|
254
|
+
<span class="ruby-keyword">end</span>
|
255
|
+
<span class="ruby-keyword">else</span>
|
256
|
+
<span class="ruby-keyword">return</span> <span class="ruby-keyword">nil</span>
|
257
|
+
<span class="ruby-keyword">end</span>
|
258
|
+
<span class="ruby-keyword">end</span></pre>
|
259
|
+
</div><!-- common_config-source -->
|
260
|
+
|
261
|
+
</div>
|
262
|
+
|
263
|
+
|
264
|
+
|
265
|
+
|
266
|
+
</div><!-- common_config-method -->
|
267
|
+
|
268
|
+
|
269
|
+
<div id="common_config_path-method" class="method-detail ">
|
270
|
+
<a name="method-i-common_config_path"></a>
|
271
|
+
|
272
|
+
|
273
|
+
<div class="method-heading">
|
274
|
+
<span class="method-name">common_config_path</span><span
|
275
|
+
class="method-args">()</span>
|
276
|
+
<span class="method-click-advice">click to toggle source</span>
|
277
|
+
</div>
|
278
|
+
|
279
|
+
|
280
|
+
<div class="method-description">
|
281
|
+
|
282
|
+
|
283
|
+
|
284
|
+
|
285
|
+
|
286
|
+
<div class="method-source-code" id="common_config_path-source">
|
283
287
|
<pre>
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
-
|
304
|
-
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
<div class="method-source-code"
|
318
|
-
id="config-source">
|
288
|
+
<span class="ruby-comment"># File lib/rbatch.rb, line 18</span>
|
289
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">common_config_path</span>
|
290
|
+
<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-constant">RBatch</span>.<span class="ruby-identifier">program_name</span>),<span class="ruby-string">".."</span>,<span class="ruby-string">"conf"</span>,<span class="ruby-string">"rbatch.yaml"</span>)
|
291
|
+
<span class="ruby-keyword">end</span></pre>
|
292
|
+
</div><!-- common_config_path-source -->
|
293
|
+
|
294
|
+
</div>
|
295
|
+
|
296
|
+
|
297
|
+
|
298
|
+
|
299
|
+
</div><!-- common_config_path-method -->
|
300
|
+
|
301
|
+
|
302
|
+
<div id="config-method" class="method-detail ">
|
303
|
+
<a name="method-i-config"></a>
|
304
|
+
|
305
|
+
|
306
|
+
<div class="method-heading">
|
307
|
+
<span class="method-name">config</span><span
|
308
|
+
class="method-args">()</span>
|
309
|
+
<span class="method-click-advice">click to toggle source</span>
|
310
|
+
</div>
|
311
|
+
|
312
|
+
|
313
|
+
<div class="method-description">
|
314
|
+
|
315
|
+
<p>Alias of <a href="RBatch/Config.html#method-c-new">RBatch::Config.new</a></p>
|
316
|
+
|
317
|
+
|
318
|
+
|
319
|
+
<div class="method-source-code" id="config-source">
|
319
320
|
<pre>
|
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
|
-
|
348
|
-
|
349
|
-
|
350
|
-
id="program-name-source">
|
321
|
+
<span class="ruby-comment"># File lib/rbatch/config.rb, line 9</span>
|
322
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">config</span> ; <span class="ruby-constant">Config</span>.<span class="ruby-identifier">new</span> <span class="ruby-keyword">end</span></pre>
|
323
|
+
</div><!-- config-source -->
|
324
|
+
|
325
|
+
</div>
|
326
|
+
|
327
|
+
|
328
|
+
|
329
|
+
|
330
|
+
</div><!-- config-method -->
|
331
|
+
|
332
|
+
|
333
|
+
<div id="program_name-method" class="method-detail ">
|
334
|
+
<a name="method-i-program_name"></a>
|
335
|
+
|
336
|
+
|
337
|
+
<div class="method-heading">
|
338
|
+
<span class="method-name">program_name</span><span
|
339
|
+
class="method-args">()</span>
|
340
|
+
<span class="method-click-advice">click to toggle source</span>
|
341
|
+
</div>
|
342
|
+
|
343
|
+
|
344
|
+
<div class="method-description">
|
345
|
+
|
346
|
+
|
347
|
+
|
348
|
+
|
349
|
+
|
350
|
+
<div class="method-source-code" id="program_name-source">
|
351
351
|
<pre>
|
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
|
-
|
380
|
-
|
381
|
-
|
382
|
-
id="program-name--source">
|
352
|
+
<span class="ruby-comment"># File lib/rbatch.rb, line 7</span>
|
353
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">program_name</span> ; <span class="ruby-identifier">@@program_name</span> ; <span class="ruby-keyword">end</span></pre>
|
354
|
+
</div><!-- program_name-source -->
|
355
|
+
|
356
|
+
</div>
|
357
|
+
|
358
|
+
|
359
|
+
|
360
|
+
|
361
|
+
</div><!-- program_name-method -->
|
362
|
+
|
363
|
+
|
364
|
+
<div id="program_name-3D-method" class="method-detail ">
|
365
|
+
<a name="method-i-program_name-3D"></a>
|
366
|
+
|
367
|
+
|
368
|
+
<div class="method-heading">
|
369
|
+
<span class="method-name">program_name=</span><span
|
370
|
+
class="method-args">(f)</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="program_name-3D-source">
|
383
382
|
<pre>
|
384
|
-
|
385
|
-
|
386
|
-
|
387
|
-
|
388
|
-
|
389
|
-
|
390
|
-
|
391
|
-
|
392
|
-
|
393
|
-
|
394
|
-
|
395
|
-
|
396
|
-
|
397
|
-
|
398
|
-
|
399
|
-
|
400
|
-
|
401
|
-
|
402
|
-
|
403
|
-
|
404
|
-
|
405
|
-
|
406
|
-
|
407
|
-
|
408
|
-
|
409
|
-
|
410
|
-
|
411
|
-
|
412
|
-
|
413
|
-
|
414
|
-
id="tmp-dir-source">
|
383
|
+
<span class="ruby-comment"># File lib/rbatch.rb, line 6</span>
|
384
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">program_name=</span>(<span class="ruby-identifier">f</span>) ; <span class="ruby-identifier">@@program_name</span> = <span class="ruby-identifier">f</span> ; <span class="ruby-keyword">end</span></pre>
|
385
|
+
</div><!-- program_name-3D-source -->
|
386
|
+
|
387
|
+
</div>
|
388
|
+
|
389
|
+
|
390
|
+
|
391
|
+
|
392
|
+
</div><!-- program_name-3D-method -->
|
393
|
+
|
394
|
+
|
395
|
+
<div id="tmp_dir-method" class="method-detail ">
|
396
|
+
<a name="method-i-tmp_dir"></a>
|
397
|
+
|
398
|
+
|
399
|
+
<div class="method-heading">
|
400
|
+
<span class="method-name">tmp_dir</span><span
|
401
|
+
class="method-args">()</span>
|
402
|
+
<span class="method-click-advice">click to toggle source</span>
|
403
|
+
</div>
|
404
|
+
|
405
|
+
|
406
|
+
<div class="method-description">
|
407
|
+
|
408
|
+
|
409
|
+
|
410
|
+
|
411
|
+
|
412
|
+
<div class="method-source-code" id="tmp_dir-source">
|
415
413
|
<pre>
|
416
|
-
|
417
|
-
|
418
|
-
|
419
|
-
|
420
|
-
|
421
|
-
|
422
|
-
|
423
|
-
|
424
|
-
|
425
|
-
|
426
|
-
|
427
|
-
|
428
|
-
|
429
|
-
|
430
|
-
|
431
|
-
|
432
|
-
|
433
|
-
|
434
|
-
|
435
|
-
|
436
|
-
|
437
|
-
|
438
|
-
|
439
|
-
|
440
|
-
|
441
|
-
|
442
|
-
|
443
|
-
|
444
|
-
|
445
|
-
|
446
|
-
|
447
|
-
|
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>
|
414
|
+
<span class="ruby-comment"># File lib/rbatch.rb, line 8</span>
|
415
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">tmp_dir</span>
|
416
|
+
<span class="ruby-keyword">case</span> <span class="ruby-constant">RUBY_PLATFORM</span>
|
417
|
+
<span class="ruby-keyword">when</span> <span class="ruby-regexp">/mswin|mingw/</span>
|
418
|
+
<span class="ruby-keyword">return</span> <span class="ruby-constant">ENV</span>[<span class="ruby-string">"TEMP"</span>]
|
419
|
+
<span class="ruby-keyword">when</span> <span class="ruby-regexp">/cygwin|linux/</span>
|
420
|
+
<span class="ruby-keyword">return</span> <span class="ruby-string">"/tmp/"</span>
|
421
|
+
<span class="ruby-keyword">else</span>
|
422
|
+
<span class="ruby-identifier">raise</span> <span class="ruby-string">"Unknown RUBY_PRATFORM : "</span> <span class="ruby-operator">+</span> <span class="ruby-constant">RUBY_PLATFORM</span>
|
423
|
+
<span class="ruby-keyword">end</span>
|
424
|
+
<span class="ruby-keyword">end</span></pre>
|
425
|
+
</div><!-- tmp_dir-source -->
|
426
|
+
|
427
|
+
</div>
|
428
|
+
|
429
|
+
|
430
|
+
|
431
|
+
|
432
|
+
</div><!-- tmp_dir-method -->
|
433
|
+
|
434
|
+
|
435
|
+
</div><!-- public-instance-method-details -->
|
436
|
+
|
437
|
+
</div><!-- 5Buntitled-5D -->
|
438
|
+
|
439
|
+
|
440
|
+
</div><!-- documentation -->
|
441
|
+
|
442
|
+
<div id="validator-badges">
|
443
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
444
|
+
<p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
|
445
|
+
Rdoc Generator</a> 2</small>.</p>
|
446
|
+
</div>
|
454
447
|
|
455
448
|
</body>
|
456
449
|
</html>
|