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