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
@@ -1,495 +1,488 @@
|
|
1
|
-
<?xml version="1.0" encoding="
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
2
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
3
|
-
|
3
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
4
4
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
5
5
|
<head>
|
6
|
-
|
6
|
+
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
|
7
7
|
|
8
|
-
|
8
|
+
<title>Class: RBatch::CmdResult</title>
|
9
9
|
|
10
|
-
|
10
|
+
<link rel="stylesheet" href="../rdoc.css" type="text/css" media="screen" />
|
11
11
|
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
<script src="../js/quicksearch.js" type="text/javascript"
|
17
|
-
charset="utf-8"></script>
|
18
|
-
<script src="../js/darkfish.js" type="text/javascript"
|
19
|
-
charset="utf-8"></script>
|
12
|
+
<script src="../js/jquery.js" type="text/javascript" charset="utf-8"></script>
|
13
|
+
<script src="../js/thickbox-compressed.js" type="text/javascript" charset="utf-8"></script>
|
14
|
+
<script src="../js/quicksearch.js" type="text/javascript" charset="utf-8"></script>
|
15
|
+
<script src="../js/darkfish.js" type="text/javascript" charset="utf-8"></script>
|
20
16
|
|
21
17
|
</head>
|
22
|
-
<body class="class">
|
18
|
+
<body id="top" class="class">
|
23
19
|
|
24
|
-
|
25
|
-
|
26
|
-
|
20
|
+
<div id="metadata">
|
21
|
+
<div id="home-metadata">
|
22
|
+
<div id="home-section" class="section">
|
27
23
|
<h3 class="section-header">
|
28
24
|
<a href="../index.html">Home</a>
|
29
25
|
<a href="../index.html#classes">Classes</a>
|
30
26
|
<a href="../index.html#methods">Methods</a>
|
31
27
|
</h3>
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
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/cmd_rb.html?TB_iframe=true&height=550&width=785"
|
38
|
+
class="thickbox" title="lib/rbatch/cmd.rb">lib/rbatch/cmd.rb</a></li>
|
39
|
+
|
40
|
+
</ul>
|
41
|
+
</div>
|
42
|
+
</div>
|
43
|
+
|
44
|
+
|
45
|
+
</div>
|
46
|
+
|
47
|
+
<div id="class-metadata">
|
48
|
+
|
49
|
+
<!-- Parent Class -->
|
50
|
+
<div id="parent-class-section" class="section">
|
51
|
+
<h3 class="section-header">Parent</h3>
|
52
|
+
|
53
|
+
<p class="link">Object</p>
|
54
|
+
|
55
|
+
</div>
|
56
|
+
|
57
|
+
|
58
|
+
|
59
|
+
|
60
|
+
|
61
|
+
|
62
|
+
|
63
|
+
<!-- Method Quickref -->
|
64
|
+
<div id="method-list-section" class="section">
|
65
|
+
<h3 class="section-header">Methods</h3>
|
66
|
+
<ul class="link-list">
|
67
|
+
|
68
|
+
<li><a href="#method-c-new">::new</a></li>
|
69
|
+
|
70
|
+
<li><a href="#method-i-cmd_str">#cmd_str</a></li>
|
71
|
+
|
72
|
+
<li><a href="#method-i-status">#status</a></li>
|
73
|
+
|
74
|
+
<li><a href="#method-i-stderr">#stderr</a></li>
|
75
|
+
|
76
|
+
<li><a href="#method-i-stderr_file">#stderr_file</a></li>
|
77
|
+
|
78
|
+
<li><a href="#method-i-stdout">#stdout</a></li>
|
79
|
+
|
80
|
+
<li><a href="#method-i-stdout_file">#stdout_file</a></li>
|
81
|
+
|
82
|
+
<li><a href="#method-i-to_h">#to_h</a></li>
|
83
|
+
|
84
|
+
<li><a href="#method-i-to_s">#to_s</a></li>
|
85
|
+
|
86
|
+
</ul>
|
87
|
+
</div>
|
88
|
+
|
89
|
+
|
90
|
+
|
91
|
+
</div>
|
92
|
+
|
93
|
+
<div id="project-metadata">
|
94
|
+
|
95
|
+
|
96
|
+
<div id="fileindex-section" class="section project-section">
|
97
|
+
<h3 class="section-header">Files</h3>
|
98
|
+
<ul>
|
99
|
+
|
100
|
+
<li class="file"><a href="../CHANGELOG.html">CHANGELOG</a></li>
|
101
|
+
|
102
|
+
<li class="file"><a href="../LICENSE.html">LICENSE</a></li>
|
103
|
+
|
104
|
+
</ul>
|
105
|
+
</div>
|
106
|
+
|
107
|
+
|
108
|
+
<div id="classindex-section" class="section project-section">
|
109
|
+
<h3 class="section-header">Class/Module Index
|
110
|
+
<span class="search-toggle"><img src="../images/find.png"
|
111
|
+
height="16" width="16" alt="[+]"
|
112
|
+
title="show/hide quicksearch" /></span></h3>
|
113
|
+
<form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
|
114
|
+
<fieldset>
|
115
|
+
<legend>Quicksearch</legend>
|
116
|
+
<input type="text" name="quicksearch" value=""
|
117
|
+
class="quicksearch-field" />
|
118
|
+
</fieldset>
|
119
|
+
</form>
|
120
|
+
|
121
|
+
<ul class="link-list">
|
122
|
+
|
123
|
+
<li><a href="../RBatch.html">RBatch</a></li>
|
124
|
+
|
125
|
+
<li><a href="../RBatch/Cmd.html">RBatch::Cmd</a></li>
|
126
|
+
|
127
|
+
<li><a href="../RBatch/CmdException.html">RBatch::CmdException</a></li>
|
128
|
+
|
129
|
+
<li><a href="../RBatch/CmdResult.html">RBatch::CmdResult</a></li>
|
130
|
+
|
131
|
+
<li><a href="../RBatch/Config.html">RBatch::Config</a></li>
|
132
|
+
|
133
|
+
<li><a href="../RBatch/Log.html">RBatch::Log</a></li>
|
134
|
+
|
135
|
+
<li><a href="../RBatch/RBatch.html">RBatch::RBatch</a></li>
|
136
|
+
|
137
|
+
<li><a href="../RBatch/RBatch/RBatch.html">RBatch::RBatch::RBatch</a></li>
|
138
|
+
|
139
|
+
<li><a href="../RBatch/RBatch/RBatch/Config.html">RBatch::RBatch::RBatch::Config</a></li>
|
140
|
+
|
141
|
+
<li><a href="../RBatch/RBatch/RBatch/Config/Exception.html">RBatch::RBatch::RBatch::Config::Exception</a></li>
|
142
|
+
|
143
|
+
</ul>
|
144
|
+
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
|
145
|
+
</div>
|
146
|
+
|
147
|
+
|
148
|
+
</div>
|
149
|
+
</div>
|
150
|
+
|
151
|
+
<div id="documentation">
|
152
|
+
<h1 class="class">RBatch::CmdResult</h1>
|
153
|
+
|
154
|
+
<div id="description" class="description">
|
155
|
+
|
156
|
+
</div><!-- description -->
|
157
|
+
|
158
|
+
|
159
|
+
|
160
|
+
|
161
|
+
<div id="5Buntitled-5D" class="documentation-section">
|
162
|
+
|
163
|
+
|
164
|
+
|
165
|
+
|
166
|
+
|
167
|
+
|
168
|
+
|
169
|
+
|
170
|
+
<!-- Methods -->
|
171
|
+
|
172
|
+
<div id="public-class-method-details" class="method-section section">
|
173
|
+
<h3 class="section-header">Public Class Methods</h3>
|
174
|
+
|
175
|
+
|
176
|
+
<div id="new-method" class="method-detail ">
|
177
|
+
<a name="method-c-new"></a>
|
178
|
+
|
179
|
+
|
180
|
+
<div class="method-heading">
|
181
|
+
<span class="method-name">new</span><span
|
182
|
+
class="method-args">(stdout_file, stderr_file, status, cmd_str)</span>
|
183
|
+
<span class="method-click-advice">click to toggle source</span>
|
184
|
+
</div>
|
185
|
+
|
186
|
+
|
187
|
+
<div class="method-description">
|
188
|
+
|
189
|
+
|
190
|
+
|
191
|
+
|
192
|
+
|
193
|
+
<div class="method-source-code" id="new-source">
|
188
194
|
<pre>
|
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
|
-
id="cmd-str-source">
|
195
|
+
<span class="ruby-comment"># File lib/rbatch/cmd.rb, line 85</span>
|
196
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">stdout_file</span>, <span class="ruby-identifier">stderr_file</span>, <span class="ruby-identifier">status</span>, <span class="ruby-identifier">cmd_str</span>)
|
197
|
+
<span class="ruby-ivar">@stdout_file</span> = <span class="ruby-identifier">stdout_file</span>
|
198
|
+
<span class="ruby-ivar">@stderr_file</span> = <span class="ruby-identifier">stderr_file</span>
|
199
|
+
<span class="ruby-ivar">@status</span> = <span class="ruby-identifier">status</span>
|
200
|
+
<span class="ruby-ivar">@cmd_str</span> = <span class="ruby-identifier">cmd_str</span>
|
201
|
+
<span class="ruby-keyword">end</span></pre>
|
202
|
+
</div><!-- new-source -->
|
203
|
+
|
204
|
+
</div>
|
205
|
+
|
206
|
+
|
207
|
+
|
208
|
+
|
209
|
+
</div><!-- new-method -->
|
210
|
+
|
211
|
+
|
212
|
+
</div><!-- public-class-method-details -->
|
213
|
+
|
214
|
+
<div id="public-instance-method-details" class="method-section section">
|
215
|
+
<h3 class="section-header">Public Instance Methods</h3>
|
216
|
+
|
217
|
+
|
218
|
+
<div id="cmd_str-method" class="method-detail ">
|
219
|
+
<a name="method-i-cmd_str"></a>
|
220
|
+
|
221
|
+
|
222
|
+
<div class="method-heading">
|
223
|
+
<span class="method-name">cmd_str</span><span
|
224
|
+
class="method-args">()</span>
|
225
|
+
<span class="method-click-advice">click to toggle source</span>
|
226
|
+
</div>
|
227
|
+
|
228
|
+
|
229
|
+
<div class="method-description">
|
230
|
+
|
231
|
+
|
232
|
+
|
233
|
+
|
234
|
+
|
235
|
+
<div class="method-source-code" id="cmd_str-source">
|
231
236
|
<pre>
|
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
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
id="status-source">
|
237
|
+
<span class="ruby-comment"># File lib/rbatch/cmd.rb, line 94</span>
|
238
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">cmd_str</span> ; <span class="ruby-ivar">@cmd_str</span> ; <span class="ruby-keyword">end</span></pre>
|
239
|
+
</div><!-- cmd_str-source -->
|
240
|
+
|
241
|
+
</div>
|
242
|
+
|
243
|
+
|
244
|
+
|
245
|
+
|
246
|
+
</div><!-- cmd_str-method -->
|
247
|
+
|
248
|
+
|
249
|
+
<div id="status-method" class="method-detail ">
|
250
|
+
<a name="method-i-status"></a>
|
251
|
+
|
252
|
+
|
253
|
+
<div class="method-heading">
|
254
|
+
<span class="method-name">status</span><span
|
255
|
+
class="method-args">()</span>
|
256
|
+
<span class="method-click-advice">click to toggle source</span>
|
257
|
+
</div>
|
258
|
+
|
259
|
+
|
260
|
+
<div class="method-description">
|
261
|
+
|
262
|
+
|
263
|
+
|
264
|
+
|
265
|
+
|
266
|
+
<div class="method-source-code" id="status-source">
|
263
267
|
<pre>
|
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
|
-
|
293
|
-
|
294
|
-
id="stderr-source">
|
268
|
+
<span class="ruby-comment"># File lib/rbatch/cmd.rb, line 93</span>
|
269
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">status</span> ; <span class="ruby-ivar">@status</span> ; <span class="ruby-keyword">end</span></pre>
|
270
|
+
</div><!-- status-source -->
|
271
|
+
|
272
|
+
</div>
|
273
|
+
|
274
|
+
|
275
|
+
|
276
|
+
|
277
|
+
</div><!-- status-method -->
|
278
|
+
|
279
|
+
|
280
|
+
<div id="stderr-method" class="method-detail ">
|
281
|
+
<a name="method-i-stderr"></a>
|
282
|
+
|
283
|
+
|
284
|
+
<div class="method-heading">
|
285
|
+
<span class="method-name">stderr</span><span
|
286
|
+
class="method-args">()</span>
|
287
|
+
<span class="method-click-advice">click to toggle source</span>
|
288
|
+
</div>
|
289
|
+
|
290
|
+
|
291
|
+
<div class="method-description">
|
292
|
+
|
293
|
+
|
294
|
+
|
295
|
+
|
296
|
+
|
297
|
+
<div class="method-source-code" id="stderr-source">
|
295
298
|
<pre>
|
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
|
-
|
327
|
-
|
328
|
-
id="stderr-file-source">
|
299
|
+
<span class="ruby-comment"># File lib/rbatch/cmd.rb, line 98</span>
|
300
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">stderr</span>
|
301
|
+
<span class="ruby-constant">File</span>.<span class="ruby-identifier">read</span>(<span class="ruby-ivar">@stderr_file</span>)
|
302
|
+
<span class="ruby-keyword">end</span></pre>
|
303
|
+
</div><!-- stderr-source -->
|
304
|
+
|
305
|
+
</div>
|
306
|
+
|
307
|
+
|
308
|
+
|
309
|
+
|
310
|
+
</div><!-- stderr-method -->
|
311
|
+
|
312
|
+
|
313
|
+
<div id="stderr_file-method" class="method-detail ">
|
314
|
+
<a name="method-i-stderr_file"></a>
|
315
|
+
|
316
|
+
|
317
|
+
<div class="method-heading">
|
318
|
+
<span class="method-name">stderr_file</span><span
|
319
|
+
class="method-args">()</span>
|
320
|
+
<span class="method-click-advice">click to toggle source</span>
|
321
|
+
</div>
|
322
|
+
|
323
|
+
|
324
|
+
<div class="method-description">
|
325
|
+
|
326
|
+
|
327
|
+
|
328
|
+
|
329
|
+
|
330
|
+
<div class="method-source-code" id="stderr_file-source">
|
329
331
|
<pre>
|
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
|
-
|
360
|
-
id="stdout-source">
|
332
|
+
<span class="ruby-comment"># File lib/rbatch/cmd.rb, line 92</span>
|
333
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">stderr_file</span> ; <span class="ruby-ivar">@stderr_file</span> ; <span class="ruby-keyword">end</span></pre>
|
334
|
+
</div><!-- stderr_file-source -->
|
335
|
+
|
336
|
+
</div>
|
337
|
+
|
338
|
+
|
339
|
+
|
340
|
+
|
341
|
+
</div><!-- stderr_file-method -->
|
342
|
+
|
343
|
+
|
344
|
+
<div id="stdout-method" class="method-detail ">
|
345
|
+
<a name="method-i-stdout"></a>
|
346
|
+
|
347
|
+
|
348
|
+
<div class="method-heading">
|
349
|
+
<span class="method-name">stdout</span><span
|
350
|
+
class="method-args">()</span>
|
351
|
+
<span class="method-click-advice">click to toggle source</span>
|
352
|
+
</div>
|
353
|
+
|
354
|
+
|
355
|
+
<div class="method-description">
|
356
|
+
|
357
|
+
|
358
|
+
|
359
|
+
|
360
|
+
|
361
|
+
<div class="method-source-code" id="stdout-source">
|
361
362
|
<pre>
|
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
|
-
|
392
|
-
|
393
|
-
|
394
|
-
id="stdout-file-source">
|
363
|
+
<span class="ruby-comment"># File lib/rbatch/cmd.rb, line 95</span>
|
364
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">stdout</span>
|
365
|
+
<span class="ruby-constant">File</span>.<span class="ruby-identifier">read</span>(<span class="ruby-ivar">@stdout_file</span>)
|
366
|
+
<span class="ruby-keyword">end</span></pre>
|
367
|
+
</div><!-- stdout-source -->
|
368
|
+
|
369
|
+
</div>
|
370
|
+
|
371
|
+
|
372
|
+
|
373
|
+
|
374
|
+
</div><!-- stdout-method -->
|
375
|
+
|
376
|
+
|
377
|
+
<div id="stdout_file-method" class="method-detail ">
|
378
|
+
<a name="method-i-stdout_file"></a>
|
379
|
+
|
380
|
+
|
381
|
+
<div class="method-heading">
|
382
|
+
<span class="method-name">stdout_file</span><span
|
383
|
+
class="method-args">()</span>
|
384
|
+
<span class="method-click-advice">click to toggle source</span>
|
385
|
+
</div>
|
386
|
+
|
387
|
+
|
388
|
+
<div class="method-description">
|
389
|
+
|
390
|
+
|
391
|
+
|
392
|
+
|
393
|
+
|
394
|
+
<div class="method-source-code" id="stdout_file-source">
|
395
395
|
<pre>
|
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
|
-
|
423
|
-
|
424
|
-
|
425
|
-
|
426
|
-
id="to-h-source">
|
396
|
+
<span class="ruby-comment"># File lib/rbatch/cmd.rb, line 91</span>
|
397
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">stdout_file</span> ; <span class="ruby-ivar">@stdout_file</span> ; <span class="ruby-keyword">end</span></pre>
|
398
|
+
</div><!-- stdout_file-source -->
|
399
|
+
|
400
|
+
</div>
|
401
|
+
|
402
|
+
|
403
|
+
|
404
|
+
|
405
|
+
</div><!-- stdout_file-method -->
|
406
|
+
|
407
|
+
|
408
|
+
<div id="to_h-method" class="method-detail ">
|
409
|
+
<a name="method-i-to_h"></a>
|
410
|
+
|
411
|
+
|
412
|
+
<div class="method-heading">
|
413
|
+
<span class="method-name">to_h</span><span
|
414
|
+
class="method-args">()</span>
|
415
|
+
<span class="method-click-advice">click to toggle source</span>
|
416
|
+
</div>
|
417
|
+
|
418
|
+
|
419
|
+
<div class="method-description">
|
420
|
+
|
421
|
+
|
422
|
+
|
423
|
+
|
424
|
+
|
425
|
+
<div class="method-source-code" id="to_h-source">
|
427
426
|
<pre>
|
428
|
-
|
429
|
-
|
430
|
-
|
431
|
-
|
432
|
-
|
433
|
-
|
434
|
-
|
435
|
-
|
436
|
-
|
437
|
-
|
438
|
-
|
439
|
-
|
440
|
-
|
441
|
-
|
442
|
-
|
443
|
-
|
444
|
-
|
445
|
-
|
446
|
-
|
447
|
-
|
448
|
-
|
449
|
-
|
450
|
-
|
451
|
-
|
452
|
-
|
453
|
-
|
454
|
-
|
455
|
-
|
456
|
-
|
457
|
-
|
458
|
-
|
459
|
-
|
460
|
-
id="to-s-source">
|
427
|
+
<span class="ruby-comment"># File lib/rbatch/cmd.rb, line 101</span>
|
428
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">to_h</span>
|
429
|
+
{<span class="ruby-value">:cmd_str</span> =<span class="ruby-operator">></span> <span class="ruby-ivar">@cmd_str</span>,<span class="ruby-value">:stdout</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">stdout</span>, <span class="ruby-value">:stderr</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">stderr</span>, <span class="ruby-value">:status</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">status</span>}
|
430
|
+
<span class="ruby-keyword">end</span></pre>
|
431
|
+
</div><!-- to_h-source -->
|
432
|
+
|
433
|
+
</div>
|
434
|
+
|
435
|
+
|
436
|
+
|
437
|
+
|
438
|
+
</div><!-- to_h-method -->
|
439
|
+
|
440
|
+
|
441
|
+
<div id="to_s-method" class="method-detail ">
|
442
|
+
<a name="method-i-to_s"></a>
|
443
|
+
|
444
|
+
|
445
|
+
<div class="method-heading">
|
446
|
+
<span class="method-name">to_s</span><span
|
447
|
+
class="method-args">()</span>
|
448
|
+
<span class="method-click-advice">click to toggle source</span>
|
449
|
+
</div>
|
450
|
+
|
451
|
+
|
452
|
+
<div class="method-description">
|
453
|
+
|
454
|
+
|
455
|
+
|
456
|
+
|
457
|
+
|
458
|
+
<div class="method-source-code" id="to_s-source">
|
461
459
|
<pre>
|
462
|
-
|
463
|
-
|
464
|
-
|
465
|
-
|
466
|
-
|
467
|
-
|
468
|
-
|
469
|
-
|
470
|
-
|
471
|
-
|
472
|
-
|
473
|
-
|
474
|
-
|
475
|
-
|
476
|
-
|
477
|
-
|
478
|
-
|
479
|
-
|
480
|
-
|
481
|
-
|
482
|
-
|
483
|
-
|
484
|
-
|
485
|
-
|
486
|
-
|
487
|
-
|
488
|
-
<div id="validator-badges">
|
489
|
-
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
490
|
-
<p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
|
491
|
-
Rdoc Generator</a> 1.1.6</small>.</p>
|
492
|
-
</div>
|
460
|
+
<span class="ruby-comment"># File lib/rbatch/cmd.rb, line 104</span>
|
461
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">to_s</span>
|
462
|
+
<span class="ruby-identifier">to_h</span>.<span class="ruby-identifier">to_s</span>
|
463
|
+
<span class="ruby-keyword">end</span></pre>
|
464
|
+
</div><!-- to_s-source -->
|
465
|
+
|
466
|
+
</div>
|
467
|
+
|
468
|
+
|
469
|
+
|
470
|
+
|
471
|
+
</div><!-- to_s-method -->
|
472
|
+
|
473
|
+
|
474
|
+
</div><!-- public-instance-method-details -->
|
475
|
+
|
476
|
+
</div><!-- 5Buntitled-5D -->
|
477
|
+
|
478
|
+
|
479
|
+
</div><!-- documentation -->
|
480
|
+
|
481
|
+
<div id="validator-badges">
|
482
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
483
|
+
<p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
|
484
|
+
Rdoc Generator</a> 2</small>.</p>
|
485
|
+
</div>
|
493
486
|
|
494
487
|
</body>
|
495
488
|
</html>
|