sprout 1.0.35.pre → 1.1.2.pre
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of sprout might be problematic. Click here for more details.
- data/Gemfile +1 -1
- data/Gemfile.lock +0 -2
- data/README.textile +1 -1
- data/VERSION +1 -1
- data/lib/sprout/concern.rb +5 -7
- data/lib/sprout/daemon.rb +183 -143
- data/lib/sprout/executable/base.rb +564 -0
- data/lib/sprout/executable.rb +1 -550
- data/lib/sprout/generator/base.rb +2 -3
- data/lib/sprout/generator.rb +2 -1
- data/lib/sprout/generators/ruby/templates/ruby_base.rb +1 -2
- data/lib/sprout/library.rb +3 -3
- data/lib/sprout/output_buffer.rb +35 -0
- data/lib/sprout/process_runner.rb +68 -17
- data/lib/sprout/progress_bar.rb +5 -5
- data/lib/sprout/remote_file_target.rb +1 -1
- data/lib/sprout/system/base_system.rb +3 -3
- data/lib/sprout/system/unix_system.rb +1 -1
- data/lib/sprout/{test/sprout_test_case.rb → test_helper.rb} +214 -14
- data/lib/sprout/version.rb +1 -1
- data/lib/sprout.rb +133 -2
- data/rakefile.rb +2 -0
- data/test/fixtures/examples/echo_inputs.rb +1 -2
- data/test/fixtures/executable/fdb.rb +7 -9
- data/test/fixtures/executable/flex3sdk_gem/fdb +49 -18
- data/test/fixtures/executable/mxmlc.rb +1 -2
- data/test/fixtures/executable/subclass/executable_subclass.rb +0 -1
- data/test/fixtures/executable/subclass/executable_superclass.rb +1 -2
- data/test/fixtures/specification/flex4sdk.rb +35 -24
- data/test/unit/archive_unpacker_test.rb +1 -1
- data/test/unit/boolean_param_test.rb +1 -1
- data/test/unit/daemon_test.rb +35 -3
- data/test/unit/executable_option_parser_test.rb +2 -3
- data/test/unit/executable_param_test.rb +1 -1
- data/test/unit/executable_test.rb +8 -15
- data/test/unit/fake_other_executable.rb +1 -2
- data/test/unit/file_param_test.rb +1 -1
- data/test/unit/file_target_test.rb +1 -1
- data/test/unit/files_param_test.rb +1 -1
- data/test/unit/generator_generator_test.rb +1 -1
- data/test/unit/generator_test.rb +1 -1
- data/test/unit/library_generator_test.rb +1 -1
- data/test/unit/library_test.rb +1 -1
- data/test/unit/osx_system_test.rb +1 -1
- data/test/unit/path_param_test.rb +1 -1
- data/test/unit/paths_param_test.rb +1 -1
- data/test/unit/platform_test.rb +1 -1
- data/test/unit/process_runner_test.rb +1 -1
- data/test/unit/rdoc_parser_test.rb +1 -1
- data/test/unit/remote_file_loader_test.rb +1 -1
- data/test/unit/remote_file_target_test.rb +1 -1
- data/test/unit/ruby_feature_test.rb +1 -1
- data/test/unit/ruby_generator_test.rb +1 -1
- data/test/unit/specification_test.rb +8 -1
- data/test/unit/sprout_test.rb +2 -2
- data/test/unit/string_param_test.rb +1 -1
- data/test/unit/string_test.rb +1 -1
- data/test/unit/strings_param_test.rb +1 -1
- data/test/unit/test_helper.rb +33 -1
- data/test/unit/tool_generator_test.rb +1 -1
- data/test/unit/unix_system_test.rb +1 -1
- data/test/unit/user_test.rb +1 -1
- data/test/unit/vista_system_test.rb +1 -1
- data/test/unit/win_nix_system_test.rb +1 -1
- data/test/unit/win_system_test.rb +1 -1
- data/test-stderr.log +1 -0
- data/test-stdout.log +237 -0
- metadata +15 -190
- data/doc/Dir.html +0 -288
- data/doc/Rake/Task.html +0 -184
- data/doc/Sprout/ArchiveUnpacker.html +0 -1246
- data/doc/Sprout/Base/ClassMethods.html +0 -434
- data/doc/Sprout/Base.html +0 -126
- data/doc/Sprout/Concern.html +0 -353
- data/doc/Sprout/Daemon/ClassMethods.html +0 -244
- data/doc/Sprout/Daemon/InstanceMethods.html +0 -601
- data/doc/Sprout/Daemon.html +0 -166
- data/doc/Sprout/Errors/ArchiveUnpackerError.html +0 -125
- data/doc/Sprout/Errors/DestinationExistsError.html +0 -133
- data/doc/Sprout/Errors/DuplicateMemberError.html +0 -132
- data/doc/Sprout/Errors/ExecutableError.html +0 -125
- data/doc/Sprout/Errors/ExecutableRegistrationError.html +0 -132
- data/doc/Sprout/Errors/ExecutionError.html +0 -121
- data/doc/Sprout/Errors/GeneratorError.html +0 -125
- data/doc/Sprout/Errors/InvalidArgumentError.html +0 -132
- data/doc/Sprout/Errors/LoadError.html +0 -121
- data/doc/Sprout/Errors/MissingArgumentError.html +0 -132
- data/doc/Sprout/Errors/MissingExecutableError.html +0 -132
- data/doc/Sprout/Errors/MissingGeneratorError.html +0 -132
- data/doc/Sprout/Errors/MissingTemplateError.html +0 -132
- data/doc/Sprout/Errors/ProcessRunnerError.html +0 -121
- data/doc/Sprout/Errors/RemoteFileLoaderError.html +0 -110
- data/doc/Sprout/Errors/SproutError.html +0 -114
- data/doc/Sprout/Errors/UnknownArchiveType.html +0 -122
- data/doc/Sprout/Errors/UsageError.html +0 -121
- data/doc/Sprout/Errors/ValidationError.html +0 -121
- data/doc/Sprout/Errors/VersionRequirementNotMetError.html +0 -121
- data/doc/Sprout/Errors.html +0 -101
- data/doc/Sprout/Executable/Boolean.html +0 -483
- data/doc/Sprout/Executable/ClassMethods.html +0 -417
- data/doc/Sprout/Executable/CollectionParam.html +0 -483
- data/doc/Sprout/Executable/FileParam.html +0 -484
- data/doc/Sprout/Executable/Files.html +0 -292
- data/doc/Sprout/Executable/InstanceMethods.html +0 -2006
- data/doc/Sprout/Executable/Number.html +0 -141
- data/doc/Sprout/Executable/Param.html +0 -2818
- data/doc/Sprout/Executable/ParameterFactory.html +0 -232
- data/doc/Sprout/Executable/Path.html +0 -223
- data/doc/Sprout/Executable/Paths.html +0 -253
- data/doc/Sprout/Executable/StringParam.html +0 -213
- data/doc/Sprout/Executable/Strings.html +0 -167
- data/doc/Sprout/Executable/Url.html +0 -160
- data/doc/Sprout/Executable/Urls.html +0 -170
- data/doc/Sprout/Executable.html +0 -173
- data/doc/Sprout/FileTarget.html +0 -1109
- data/doc/Sprout/Generator/Base.html +0 -1626
- data/doc/Sprout/Generator/Command.html +0 -690
- data/doc/Sprout/Generator/DirectoryManifest.html +0 -476
- data/doc/Sprout/Generator/FileManifest.html +0 -572
- data/doc/Sprout/Generator/Manifest.html +0 -377
- data/doc/Sprout/Generator/TemplateManifest.html +0 -196
- data/doc/Sprout/Generator.html +0 -689
- data/doc/Sprout/GeneratorGenerator.html +0 -1018
- data/doc/Sprout/Library.html +0 -1141
- data/doc/Sprout/LibraryGenerator.html +0 -309
- data/doc/Sprout/Log.html +0 -496
- data/doc/Sprout/MXMLC.html +0 -6373
- data/doc/Sprout/Platform.html +0 -714
- data/doc/Sprout/ProcessRunner.html +0 -1352
- data/doc/Sprout/ProgressBar.html +0 -376
- data/doc/Sprout/ProgressBarImpl.html +0 -2119
- data/doc/Sprout/ProgressBarManager.html +0 -434
- data/doc/Sprout/ProgressBarOutputStream.html +0 -416
- data/doc/Sprout/RDocParser.html +0 -211
- data/doc/Sprout/RemoteFileLoader.html +0 -172
- data/doc/Sprout/RemoteFileTarget.html +0 -679
- data/doc/Sprout/ReversedProgressBar.html +0 -194
- data/doc/Sprout/RubyFeature/ClassMethods.html +0 -1065
- data/doc/Sprout/RubyFeature.html +0 -155
- data/doc/Sprout/RubyGenerator.html +0 -764
- data/doc/Sprout/Specification.html +0 -767
- data/doc/Sprout/System/BaseSystem.html +0 -1455
- data/doc/Sprout/System/JavaSystem.html +0 -122
- data/doc/Sprout/System/OSXSystem.html +0 -335
- data/doc/Sprout/System/ThreadMock.html +0 -193
- data/doc/Sprout/System/UnixSystem.html +0 -584
- data/doc/Sprout/System/VistaSystem.html +0 -251
- data/doc/Sprout/System/WinNixSystem.html +0 -325
- data/doc/Sprout/System/WinSystem.html +0 -571
- data/doc/Sprout/System.html +0 -191
- data/doc/Sprout/ToolGenerator.html +0 -931
- data/doc/Sprout/VERSION.html +0 -128
- data/doc/Sprout.html +0 -144
- data/doc/SproutTestCase.html +0 -1412
- data/doc/String.html +0 -286
- data/doc/_index.html +0 -1035
- data/doc/class_list.html +0 -36
- data/doc/css/common.css +0 -1
- data/doc/css/full_list.css +0 -53
- data/doc/css/style.css +0 -310
- data/doc/file.README.html +0 -96
- data/doc/file.archive_unpacker.html +0 -288
- data/doc/file.base.html +0 -208
- data/doc/file.base_system.html +0 -278
- data/doc/file.boolean.html +0 -135
- data/doc/file.collection_param.html +0 -139
- data/doc/file.command.html +0 -126
- data/doc/file.concern.html +0 -136
- data/doc/file.daemon.html +0 -309
- data/doc/file.dir.html +0 -76
- data/doc/file.directory_manifest.html +0 -122
- data/doc/file.errors.html +0 -147
- data/doc/file.executable.html +0 -638
- data/doc/file.file_manifest.html +0 -109
- data/doc/file.file_param.html +0 -120
- data/doc/file.file_target.html +0 -140
- data/doc/file.files.html +0 -85
- data/doc/file.generator.html +0 -296
- data/doc/file.generator_class.html +0 -72
- data/doc/file.generator_generator.html +0 -137
- data/doc/file.generator_test.html +0 -92
- data/doc/file.generator_test_helper.html +0 -67
- data/doc/file.java_system.html +0 -62
- data/doc/file.library.html +0 -291
- data/doc/file.library_generator.html +0 -74
- data/doc/file.log.html +0 -100
- data/doc/file.manifest.html +0 -67
- data/doc/file.mxmlc.html +0 -740
- data/doc/file.number.html +0 -67
- data/doc/file.osx_system.html +0 -79
- data/doc/file.param.html +0 -491
- data/doc/file.parameter_factory.html +0 -119
- data/doc/file.path.html +0 -81
- data/doc/file.paths.html +0 -80
- data/doc/file.platform.html +0 -124
- data/doc/file.process_runner.html +0 -224
- data/doc/file.progress_bar.html +0 -390
- data/doc/file.rdoc_parser.html +0 -145
- data/doc/file.remote_file_loader.html +0 -117
- data/doc/file.remote_file_target.html +0 -176
- data/doc/file.ruby_base.html +0 -64
- data/doc/file.ruby_feature.html +0 -244
- data/doc/file.ruby_generator.html +0 -118
- data/doc/file.ruby_input.html +0 -62
- data/doc/file.ruby_test_case.html +0 -78
- data/doc/file.ruby_test_helper.html +0 -61
- data/doc/file.specification.html +0 -248
- data/doc/file.sprout.html +0 -64
- data/doc/file.sprout_test_case.html +0 -280
- data/doc/file.string.html +0 -72
- data/doc/file.string_param.html +0 -76
- data/doc/file.strings.html +0 -71
- data/doc/file.system.html +0 -86
- data/doc/file.template_manifest.html +0 -67
- data/doc/file.tool.html +0 -92
- data/doc/file.tool_generator.html +0 -90
- data/doc/file.unix_system.html +0 -128
- data/doc/file.url.html +0 -71
- data/doc/file.urls.html +0 -70
- data/doc/file.version.html +0 -71
- data/doc/file.vista_system.html +0 -69
- data/doc/file.win_nix_system.html +0 -88
- data/doc/file.win_system.html +0 -129
- data/doc/file_list.html +0 -230
- data/doc/frames.html +0 -13
- data/doc/index.html +0 -96
- data/doc/js/app.js +0 -202
- data/doc/js/full_list.js +0 -149
- data/doc/js/jquery.js +0 -154
- data/doc/method_list.html +0 -3355
- data/doc/top-level-namespace.html +0 -192
- data/lib/sprout/base.rb +0 -121
- data/lib/sprout/log.rb +0 -46
- data/test/unit/sprout_test_helper.rb +0 -33
@@ -1,1352 +0,0 @@
|
|
1
|
-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
2
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
3
|
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
4
|
-
<head>
|
5
|
-
<meta name="Content-Type" content="text/html; charset=utf-8" />
|
6
|
-
<title>Class: Sprout::ProcessRunner</title>
|
7
|
-
<link rel="stylesheet" href="../css/style.css" type="text/css" media="screen" charset="utf-8" />
|
8
|
-
<link rel="stylesheet" href="../css/common.css" type="text/css" media="screen" charset="utf-8" />
|
9
|
-
|
10
|
-
<script type="text/javascript" charset="utf-8">
|
11
|
-
relpath = '..';
|
12
|
-
if (relpath != '') relpath += '/';
|
13
|
-
</script>
|
14
|
-
<script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
|
15
|
-
<script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
|
16
|
-
|
17
|
-
</head>
|
18
|
-
<body>
|
19
|
-
<script type="text/javascript" charset="utf-8">
|
20
|
-
if (window.top.frames.main) document.body.className = 'frames';
|
21
|
-
</script>
|
22
|
-
|
23
|
-
<div id="header">
|
24
|
-
<div id="menu">
|
25
|
-
|
26
|
-
<a href="../_index.html">Index (P)</a> »
|
27
|
-
<span class='title'><span class='object_link'><a href="../Sprout.html" title="Sprout (module)">Sprout</a></span></span>
|
28
|
-
»
|
29
|
-
<span class="title">ProcessRunner</span>
|
30
|
-
|
31
|
-
|
32
|
-
<div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
|
33
|
-
</div>
|
34
|
-
|
35
|
-
<div id="search">
|
36
|
-
<a id="class_list_link" href="#">Class List</a>
|
37
|
-
<a id="method_list_link" href="#">Method List</a>
|
38
|
-
<a id ="file_list_link" href="#">File List</a>
|
39
|
-
</div>
|
40
|
-
|
41
|
-
<div class="clear"></div>
|
42
|
-
</div>
|
43
|
-
|
44
|
-
<iframe id="search_frame"></iframe>
|
45
|
-
|
46
|
-
<div id="content"><h1>Class: Sprout::ProcessRunner
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
</h1>
|
51
|
-
|
52
|
-
<dl class="box">
|
53
|
-
|
54
|
-
<dt class="r1">Inherits:</dt>
|
55
|
-
<dd class="r1">
|
56
|
-
<span class="inheritName">Object</span>
|
57
|
-
|
58
|
-
<ul class="fullTree">
|
59
|
-
<li>Object</li>
|
60
|
-
|
61
|
-
<li class="next">Sprout::ProcessRunner</li>
|
62
|
-
|
63
|
-
</ul>
|
64
|
-
<a href="#" class="inheritanceTree">show all</a>
|
65
|
-
|
66
|
-
</dd>
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
<dt class="r2 last">Defined in:</dt>
|
77
|
-
<dd class="r2 last">lib/sprout/process_runner.rb</dd>
|
78
|
-
|
79
|
-
</dl>
|
80
|
-
<div class="clear"></div>
|
81
|
-
|
82
|
-
<h2>Overview</h2><div class="docstring">
|
83
|
-
<div class="discussion">
|
84
|
-
|
85
|
-
<p>The ProcessRunner is a cross-platform wrapper for executing external
|
86
|
-
executable processes.</p>
|
87
|
-
|
88
|
-
<p>As it turns out, Ruby handle differences very well, and other process
|
89
|
-
libraries (like win32-open3 and open4.popen4), do make the experience more
|
90
|
-
consistent on a given platform, but they don't hide the differences
|
91
|
-
introduced by the continuing beligerence of Windows or *nix (depending on
|
92
|
-
which side of the fence you're on).</p>
|
93
|
-
|
94
|
-
|
95
|
-
</div>
|
96
|
-
</div>
|
97
|
-
<div class="tags">
|
98
|
-
|
99
|
-
</div>
|
100
|
-
|
101
|
-
<h2>Instance Attribute Summary <small>(<a href="#" class="summary_toggle">collapse</a>)</small></h2>
|
102
|
-
<ul class="summary">
|
103
|
-
|
104
|
-
<li class="public ">
|
105
|
-
<span class="summary_signature">
|
106
|
-
|
107
|
-
<a href="#e-instance_method" title="#e (instance method)">- (Object) <strong>e</strong> </a>
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
</span>
|
112
|
-
|
113
|
-
|
114
|
-
<span class="note title readonly">readonly</span>
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
<span class="summary_desc"><div class='inline'>
|
124
|
-
<p>Error IO (readable).</p>
|
125
|
-
</div></span>
|
126
|
-
|
127
|
-
</li>
|
128
|
-
|
129
|
-
|
130
|
-
<li class="public ">
|
131
|
-
<span class="summary_signature">
|
132
|
-
|
133
|
-
<a href="#pid-instance_method" title="#pid (instance method)">- (Object) <strong>pid</strong> </a>
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
</span>
|
138
|
-
|
139
|
-
|
140
|
-
<span class="note title readonly">readonly</span>
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
<span class="summary_desc"><div class='inline'>
|
150
|
-
<p>Returns the value of attribute pid.</p>
|
151
|
-
</div></span>
|
152
|
-
|
153
|
-
</li>
|
154
|
-
|
155
|
-
|
156
|
-
<li class="public ">
|
157
|
-
<span class="summary_signature">
|
158
|
-
|
159
|
-
<a href="#r-instance_method" title="#r (instance method)">- (Object) <strong>r</strong> </a>
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
</span>
|
164
|
-
|
165
|
-
|
166
|
-
<span class="note title readonly">readonly</span>
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
<span class="summary_desc"><div class='inline'>
|
176
|
-
<p>Read IO (readable).</p>
|
177
|
-
</div></span>
|
178
|
-
|
179
|
-
</li>
|
180
|
-
|
181
|
-
|
182
|
-
<li class="public ">
|
183
|
-
<span class="summary_signature">
|
184
|
-
|
185
|
-
<a href="#ruby_version-instance_method" title="#ruby_version (instance method)">- (Object) <strong>ruby_version</strong> </a>
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
</span>
|
190
|
-
|
191
|
-
|
192
|
-
<span class="note title readonly">readonly</span>
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
<span class="summary_desc"><div class='inline'>
|
202
|
-
<p>Returns the value of attribute ruby_version.</p>
|
203
|
-
</div></span>
|
204
|
-
|
205
|
-
</li>
|
206
|
-
|
207
|
-
|
208
|
-
<li class="public ">
|
209
|
-
<span class="summary_signature">
|
210
|
-
|
211
|
-
<a href="#w-instance_method" title="#w (instance method)">- (Object) <strong>w</strong> </a>
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
</span>
|
216
|
-
|
217
|
-
|
218
|
-
<span class="note title readonly">readonly</span>
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
<span class="summary_desc"><div class='inline'>
|
228
|
-
<p>Write IO (writeable).</p>
|
229
|
-
</div></span>
|
230
|
-
|
231
|
-
</li>
|
232
|
-
|
233
|
-
|
234
|
-
</ul>
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
<h2>
|
239
|
-
Instance Method Summary
|
240
|
-
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
241
|
-
</h2>
|
242
|
-
|
243
|
-
<ul class="summary">
|
244
|
-
|
245
|
-
<li class="public ">
|
246
|
-
<span class="summary_signature">
|
247
|
-
|
248
|
-
<a href="#alive%3F-instance_method" title="#alive? (instance method)">- (Boolean) <strong>alive?</strong> </a>
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
</span>
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
<span class="summary_desc"><div class='inline'></div></span>
|
262
|
-
|
263
|
-
</li>
|
264
|
-
|
265
|
-
|
266
|
-
<li class="public ">
|
267
|
-
<span class="summary_signature">
|
268
|
-
|
269
|
-
<a href="#close-instance_method" title="#close (instance method)">- (Object) <strong>close</strong> </a>
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
</span>
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
<span class="summary_desc"><div class='inline'></div></span>
|
283
|
-
|
284
|
-
</li>
|
285
|
-
|
286
|
-
|
287
|
-
<li class="public ">
|
288
|
-
<span class="summary_signature">
|
289
|
-
|
290
|
-
<a href="#close_write-instance_method" title="#close_write (instance method)">- (Object) <strong>close_write</strong> </a>
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
</span>
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
-
<span class="summary_desc"><div class='inline'></div></span>
|
304
|
-
|
305
|
-
</li>
|
306
|
-
|
307
|
-
|
308
|
-
<li class="public ">
|
309
|
-
<span class="summary_signature">
|
310
|
-
|
311
|
-
<a href="#execute_open4-instance_method" title="#execute_open4 (instance method)">- (Object) <strong>execute_open4</strong>(*command) </a>
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
</span>
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
<span class="summary_desc"><div class='inline'>
|
325
|
-
<p>Execute the provided command using the open4.popen4 library.</p>
|
326
|
-
</div></span>
|
327
|
-
|
328
|
-
</li>
|
329
|
-
|
330
|
-
|
331
|
-
<li class="public ">
|
332
|
-
<span class="summary_signature">
|
333
|
-
|
334
|
-
<a href="#execute_win32-instance_method" title="#execute_win32 (instance method)">- (Object) <strong>execute_win32</strong>(*command) </a>
|
335
|
-
|
336
|
-
|
337
|
-
|
338
|
-
</span>
|
339
|
-
|
340
|
-
|
341
|
-
|
342
|
-
|
343
|
-
|
344
|
-
|
345
|
-
|
346
|
-
|
347
|
-
<span class="summary_desc"><div class='inline'>
|
348
|
-
<p>Execute the provided command using the win32-open3 library.</p>
|
349
|
-
</div></span>
|
350
|
-
|
351
|
-
</li>
|
352
|
-
|
353
|
-
|
354
|
-
<li class="public ">
|
355
|
-
<span class="summary_signature">
|
356
|
-
|
357
|
-
<a href="#flush-instance_method" title="#flush (instance method)">- (Object) <strong>flush</strong> </a>
|
358
|
-
|
359
|
-
|
360
|
-
|
361
|
-
</span>
|
362
|
-
|
363
|
-
|
364
|
-
|
365
|
-
|
366
|
-
|
367
|
-
|
368
|
-
|
369
|
-
|
370
|
-
<span class="summary_desc"><div class='inline'></div></span>
|
371
|
-
|
372
|
-
</li>
|
373
|
-
|
374
|
-
|
375
|
-
<li class="public ">
|
376
|
-
<span class="summary_signature">
|
377
|
-
|
378
|
-
<a href="#getc-instance_method" title="#getc (instance method)">- (Object) <strong>getc</strong> </a>
|
379
|
-
|
380
|
-
|
381
|
-
|
382
|
-
</span>
|
383
|
-
|
384
|
-
|
385
|
-
|
386
|
-
|
387
|
-
|
388
|
-
|
389
|
-
|
390
|
-
|
391
|
-
<span class="summary_desc"><div class='inline'></div></span>
|
392
|
-
|
393
|
-
</li>
|
394
|
-
|
395
|
-
|
396
|
-
<li class="public ">
|
397
|
-
<span class="summary_signature">
|
398
|
-
|
399
|
-
<a href="#initialize-instance_method" title="#initialize (instance method)">- (ProcessRunner) <strong>initialize</strong> </a>
|
400
|
-
|
401
|
-
|
402
|
-
|
403
|
-
</span>
|
404
|
-
|
405
|
-
<span class="note title constructor">constructor</span>
|
406
|
-
|
407
|
-
|
408
|
-
|
409
|
-
|
410
|
-
|
411
|
-
|
412
|
-
|
413
|
-
|
414
|
-
<span class="summary_desc"><div class='inline'>
|
415
|
-
<p>A new instance of ProcessRunner.</p>
|
416
|
-
</div></span>
|
417
|
-
|
418
|
-
</li>
|
419
|
-
|
420
|
-
|
421
|
-
<li class="public ">
|
422
|
-
<span class="summary_signature">
|
423
|
-
|
424
|
-
<a href="#kill-instance_method" title="#kill (instance method)">- (Object) <strong>kill</strong> </a>
|
425
|
-
|
426
|
-
|
427
|
-
|
428
|
-
</span>
|
429
|
-
|
430
|
-
|
431
|
-
|
432
|
-
|
433
|
-
|
434
|
-
|
435
|
-
|
436
|
-
|
437
|
-
<span class="summary_desc"><div class='inline'></div></span>
|
438
|
-
|
439
|
-
</li>
|
440
|
-
|
441
|
-
|
442
|
-
<li class="public ">
|
443
|
-
<span class="summary_signature">
|
444
|
-
|
445
|
-
<a href="#print-instance_method" title="#print (instance method)">- (Object) <strong>print</strong>(msg) </a>
|
446
|
-
|
447
|
-
|
448
|
-
|
449
|
-
</span>
|
450
|
-
|
451
|
-
|
452
|
-
|
453
|
-
|
454
|
-
|
455
|
-
|
456
|
-
|
457
|
-
|
458
|
-
<span class="summary_desc"><div class='inline'></div></span>
|
459
|
-
|
460
|
-
</li>
|
461
|
-
|
462
|
-
|
463
|
-
<li class="public ">
|
464
|
-
<span class="summary_signature">
|
465
|
-
|
466
|
-
<a href="#puts-instance_method" title="#puts (instance method)">- (Object) <strong>puts</strong>(msg) </a>
|
467
|
-
|
468
|
-
|
469
|
-
|
470
|
-
</span>
|
471
|
-
|
472
|
-
|
473
|
-
|
474
|
-
|
475
|
-
|
476
|
-
|
477
|
-
|
478
|
-
|
479
|
-
<span class="summary_desc"><div class='inline'></div></span>
|
480
|
-
|
481
|
-
</li>
|
482
|
-
|
483
|
-
|
484
|
-
<li class="public ">
|
485
|
-
<span class="summary_signature">
|
486
|
-
|
487
|
-
<a href="#read-instance_method" title="#read (instance method)">- (Object) <strong>read</strong> </a>
|
488
|
-
|
489
|
-
|
490
|
-
|
491
|
-
</span>
|
492
|
-
|
493
|
-
|
494
|
-
|
495
|
-
|
496
|
-
|
497
|
-
|
498
|
-
|
499
|
-
|
500
|
-
<span class="summary_desc"><div class='inline'></div></span>
|
501
|
-
|
502
|
-
</li>
|
503
|
-
|
504
|
-
|
505
|
-
<li class="public ">
|
506
|
-
<span class="summary_signature">
|
507
|
-
|
508
|
-
<a href="#read_err-instance_method" title="#read_err (instance method)">- (Object) <strong>read_err</strong> </a>
|
509
|
-
|
510
|
-
|
511
|
-
|
512
|
-
</span>
|
513
|
-
|
514
|
-
|
515
|
-
|
516
|
-
|
517
|
-
|
518
|
-
|
519
|
-
|
520
|
-
|
521
|
-
<span class="summary_desc"><div class='inline'></div></span>
|
522
|
-
|
523
|
-
</li>
|
524
|
-
|
525
|
-
|
526
|
-
<li class="public ">
|
527
|
-
<span class="summary_signature">
|
528
|
-
|
529
|
-
<a href="#readlines-instance_method" title="#readlines (instance method)">- (Object) <strong>readlines</strong> </a>
|
530
|
-
|
531
|
-
|
532
|
-
|
533
|
-
</span>
|
534
|
-
|
535
|
-
|
536
|
-
|
537
|
-
|
538
|
-
|
539
|
-
|
540
|
-
|
541
|
-
|
542
|
-
<span class="summary_desc"><div class='inline'></div></span>
|
543
|
-
|
544
|
-
</li>
|
545
|
-
|
546
|
-
|
547
|
-
<li class="public ">
|
548
|
-
<span class="summary_signature">
|
549
|
-
|
550
|
-
<a href="#readpartial-instance_method" title="#readpartial (instance method)">- (Object) <strong>readpartial</strong>(count) </a>
|
551
|
-
|
552
|
-
|
553
|
-
|
554
|
-
</span>
|
555
|
-
|
556
|
-
|
557
|
-
|
558
|
-
|
559
|
-
|
560
|
-
|
561
|
-
|
562
|
-
|
563
|
-
<span class="summary_desc"><div class='inline'></div></span>
|
564
|
-
|
565
|
-
</li>
|
566
|
-
|
567
|
-
|
568
|
-
<li class="public ">
|
569
|
-
<span class="summary_signature">
|
570
|
-
|
571
|
-
<a href="#update_status-instance_method" title="#update_status (instance method)">- (Object) <strong>update_status</strong> </a>
|
572
|
-
|
573
|
-
|
574
|
-
|
575
|
-
</span>
|
576
|
-
|
577
|
-
|
578
|
-
|
579
|
-
|
580
|
-
|
581
|
-
|
582
|
-
|
583
|
-
|
584
|
-
<span class="summary_desc"><div class='inline'></div></span>
|
585
|
-
|
586
|
-
</li>
|
587
|
-
|
588
|
-
|
589
|
-
</ul>
|
590
|
-
|
591
|
-
|
592
|
-
<div id="constructor_details" class="method_details_list">
|
593
|
-
<h2>Constructor Details</h2>
|
594
|
-
|
595
|
-
<div class="method_details first">
|
596
|
-
<p class="signature first" id="initialize-instance_method">
|
597
|
-
|
598
|
-
- (<tt><span class='object_link'><a href="" title="Sprout::ProcessRunner (class)">ProcessRunner</a></span></tt>) <strong>initialize</strong>
|
599
|
-
|
600
|
-
|
601
|
-
|
602
|
-
</p><div class="docstring">
|
603
|
-
<div class="discussion">
|
604
|
-
|
605
|
-
<p>A new instance of ProcessRunner</p>
|
606
|
-
|
607
|
-
|
608
|
-
</div>
|
609
|
-
</div>
|
610
|
-
<div class="tags">
|
611
|
-
|
612
|
-
</div><table class="source_code">
|
613
|
-
<tr>
|
614
|
-
<td>
|
615
|
-
<pre class="lines">
|
616
|
-
|
617
|
-
|
618
|
-
30
|
619
|
-
31
|
620
|
-
32
|
621
|
-
33</pre>
|
622
|
-
</td>
|
623
|
-
<td>
|
624
|
-
<pre class="code"><span class="info file"># File 'lib/sprout/process_runner.rb', line 30</span>
|
625
|
-
|
626
|
-
<span class='kw'>def</span> <span class='id initialize'>initialize</span>
|
627
|
-
<span class='kw'>super</span>
|
628
|
-
<span class='ivar'>@ruby_version</span> <span class='op'>=</span> <span class='const'>RUBY_VERSION</span>
|
629
|
-
<span class='kw'>end</span></pre>
|
630
|
-
</td>
|
631
|
-
</tr>
|
632
|
-
</table>
|
633
|
-
</div>
|
634
|
-
|
635
|
-
</div>
|
636
|
-
|
637
|
-
<div id="instance_attr_details" class="attr_details">
|
638
|
-
<h2>Instance Attribute Details</h2>
|
639
|
-
|
640
|
-
|
641
|
-
<span id=""></span>
|
642
|
-
<span id="e-instance_method"></span>
|
643
|
-
<div class="method_details first">
|
644
|
-
<p class="signature first" id="e-instance_method">
|
645
|
-
|
646
|
-
- (<tt>Object</tt>) <strong>e</strong> <span class="extras">(readonly)</span>
|
647
|
-
|
648
|
-
|
649
|
-
|
650
|
-
</p><div class="docstring">
|
651
|
-
<div class="discussion">
|
652
|
-
|
653
|
-
<p>Error IO (readable)</p>
|
654
|
-
|
655
|
-
|
656
|
-
</div>
|
657
|
-
</div>
|
658
|
-
<div class="tags">
|
659
|
-
|
660
|
-
</div><table class="source_code">
|
661
|
-
<tr>
|
662
|
-
<td>
|
663
|
-
<pre class="lines">
|
664
|
-
|
665
|
-
|
666
|
-
28
|
667
|
-
29
|
668
|
-
30</pre>
|
669
|
-
</td>
|
670
|
-
<td>
|
671
|
-
<pre class="code"><span class="info file"># File 'lib/sprout/process_runner.rb', line 28</span>
|
672
|
-
|
673
|
-
<span class='kw'>def</span> <span class='id e'>e</span>
|
674
|
-
<span class='ivar'>@e</span>
|
675
|
-
<span class='kw'>end</span></pre>
|
676
|
-
</td>
|
677
|
-
</tr>
|
678
|
-
</table>
|
679
|
-
</div>
|
680
|
-
|
681
|
-
|
682
|
-
<span id=""></span>
|
683
|
-
<span id="pid-instance_method"></span>
|
684
|
-
<div class="method_details ">
|
685
|
-
<p class="signature " id="pid-instance_method">
|
686
|
-
|
687
|
-
- (<tt>Object</tt>) <strong>pid</strong> <span class="extras">(readonly)</span>
|
688
|
-
|
689
|
-
|
690
|
-
|
691
|
-
</p><div class="docstring">
|
692
|
-
<div class="discussion">
|
693
|
-
|
694
|
-
<p>Returns the value of attribute pid</p>
|
695
|
-
|
696
|
-
|
697
|
-
</div>
|
698
|
-
</div>
|
699
|
-
<div class="tags">
|
700
|
-
|
701
|
-
</div><table class="source_code">
|
702
|
-
<tr>
|
703
|
-
<td>
|
704
|
-
<pre class="lines">
|
705
|
-
|
706
|
-
|
707
|
-
15
|
708
|
-
16
|
709
|
-
17</pre>
|
710
|
-
</td>
|
711
|
-
<td>
|
712
|
-
<pre class="code"><span class="info file"># File 'lib/sprout/process_runner.rb', line 15</span>
|
713
|
-
|
714
|
-
<span class='kw'>def</span> <span class='id pid'>pid</span>
|
715
|
-
<span class='ivar'>@pid</span>
|
716
|
-
<span class='kw'>end</span></pre>
|
717
|
-
</td>
|
718
|
-
</tr>
|
719
|
-
</table>
|
720
|
-
</div>
|
721
|
-
|
722
|
-
|
723
|
-
<span id=""></span>
|
724
|
-
<span id="r-instance_method"></span>
|
725
|
-
<div class="method_details ">
|
726
|
-
<p class="signature " id="r-instance_method">
|
727
|
-
|
728
|
-
- (<tt>Object</tt>) <strong>r</strong> <span class="extras">(readonly)</span>
|
729
|
-
|
730
|
-
|
731
|
-
|
732
|
-
</p><div class="docstring">
|
733
|
-
<div class="discussion">
|
734
|
-
|
735
|
-
<p>Read IO (readable)</p>
|
736
|
-
|
737
|
-
|
738
|
-
</div>
|
739
|
-
</div>
|
740
|
-
<div class="tags">
|
741
|
-
|
742
|
-
</div><table class="source_code">
|
743
|
-
<tr>
|
744
|
-
<td>
|
745
|
-
<pre class="lines">
|
746
|
-
|
747
|
-
|
748
|
-
20
|
749
|
-
21
|
750
|
-
22</pre>
|
751
|
-
</td>
|
752
|
-
<td>
|
753
|
-
<pre class="code"><span class="info file"># File 'lib/sprout/process_runner.rb', line 20</span>
|
754
|
-
|
755
|
-
<span class='kw'>def</span> <span class='id r'>r</span>
|
756
|
-
<span class='ivar'>@r</span>
|
757
|
-
<span class='kw'>end</span></pre>
|
758
|
-
</td>
|
759
|
-
</tr>
|
760
|
-
</table>
|
761
|
-
</div>
|
762
|
-
|
763
|
-
|
764
|
-
<span id=""></span>
|
765
|
-
<span id="ruby_version-instance_method"></span>
|
766
|
-
<div class="method_details ">
|
767
|
-
<p class="signature " id="ruby_version-instance_method">
|
768
|
-
|
769
|
-
- (<tt>Object</tt>) <strong>ruby_version</strong> <span class="extras">(readonly)</span>
|
770
|
-
|
771
|
-
|
772
|
-
|
773
|
-
</p><div class="docstring">
|
774
|
-
<div class="discussion">
|
775
|
-
|
776
|
-
<p>Returns the value of attribute ruby_version</p>
|
777
|
-
|
778
|
-
|
779
|
-
</div>
|
780
|
-
</div>
|
781
|
-
<div class="tags">
|
782
|
-
|
783
|
-
</div><table class="source_code">
|
784
|
-
<tr>
|
785
|
-
<td>
|
786
|
-
<pre class="lines">
|
787
|
-
|
788
|
-
|
789
|
-
16
|
790
|
-
17
|
791
|
-
18</pre>
|
792
|
-
</td>
|
793
|
-
<td>
|
794
|
-
<pre class="code"><span class="info file"># File 'lib/sprout/process_runner.rb', line 16</span>
|
795
|
-
|
796
|
-
<span class='kw'>def</span> <span class='id ruby_version'>ruby_version</span>
|
797
|
-
<span class='ivar'>@ruby_version</span>
|
798
|
-
<span class='kw'>end</span></pre>
|
799
|
-
</td>
|
800
|
-
</tr>
|
801
|
-
</table>
|
802
|
-
</div>
|
803
|
-
|
804
|
-
|
805
|
-
<span id=""></span>
|
806
|
-
<span id="w-instance_method"></span>
|
807
|
-
<div class="method_details ">
|
808
|
-
<p class="signature " id="w-instance_method">
|
809
|
-
|
810
|
-
- (<tt>Object</tt>) <strong>w</strong> <span class="extras">(readonly)</span>
|
811
|
-
|
812
|
-
|
813
|
-
|
814
|
-
</p><div class="docstring">
|
815
|
-
<div class="discussion">
|
816
|
-
|
817
|
-
<p>Write IO (writeable)</p>
|
818
|
-
|
819
|
-
|
820
|
-
</div>
|
821
|
-
</div>
|
822
|
-
<div class="tags">
|
823
|
-
|
824
|
-
</div><table class="source_code">
|
825
|
-
<tr>
|
826
|
-
<td>
|
827
|
-
<pre class="lines">
|
828
|
-
|
829
|
-
|
830
|
-
24
|
831
|
-
25
|
832
|
-
26</pre>
|
833
|
-
</td>
|
834
|
-
<td>
|
835
|
-
<pre class="code"><span class="info file"># File 'lib/sprout/process_runner.rb', line 24</span>
|
836
|
-
|
837
|
-
<span class='kw'>def</span> <span class='id w'>w</span>
|
838
|
-
<span class='ivar'>@w</span>
|
839
|
-
<span class='kw'>end</span></pre>
|
840
|
-
</td>
|
841
|
-
</tr>
|
842
|
-
</table>
|
843
|
-
</div>
|
844
|
-
|
845
|
-
</div>
|
846
|
-
|
847
|
-
|
848
|
-
<div id="instance_method_details" class="method_details_list">
|
849
|
-
<h2>Instance Method Details</h2>
|
850
|
-
|
851
|
-
|
852
|
-
<div class="method_details first">
|
853
|
-
<p class="signature first" id="alive?-instance_method">
|
854
|
-
|
855
|
-
- (<tt>Boolean</tt>) <strong>alive?</strong>
|
856
|
-
|
857
|
-
|
858
|
-
|
859
|
-
</p><div class="docstring">
|
860
|
-
<div class="discussion">
|
861
|
-
|
862
|
-
|
863
|
-
</div>
|
864
|
-
</div>
|
865
|
-
<div class="tags">
|
866
|
-
<h3>Returns:</h3>
|
867
|
-
<ul class="return">
|
868
|
-
|
869
|
-
<li>
|
870
|
-
|
871
|
-
<span class='type'>(<tt>Boolean</tt>)</span>
|
872
|
-
|
873
|
-
|
874
|
-
|
875
|
-
|
876
|
-
</li>
|
877
|
-
|
878
|
-
</ul>
|
879
|
-
|
880
|
-
</div><table class="source_code">
|
881
|
-
<tr>
|
882
|
-
<td>
|
883
|
-
<pre class="lines">
|
884
|
-
|
885
|
-
|
886
|
-
56
|
887
|
-
57
|
888
|
-
58</pre>
|
889
|
-
</td>
|
890
|
-
<td>
|
891
|
-
<pre class="code"><span class="info file"># File 'lib/sprout/process_runner.rb', line 56</span>
|
892
|
-
|
893
|
-
<span class='kw'>def</span> <span class='id alive?'>alive?</span>
|
894
|
-
<span class='ivar'>@alive</span> <span class='op'>=</span> <span class='id update_status'>update_status</span>
|
895
|
-
<span class='kw'>end</span></pre>
|
896
|
-
</td>
|
897
|
-
</tr>
|
898
|
-
</table>
|
899
|
-
</div>
|
900
|
-
|
901
|
-
<div class="method_details ">
|
902
|
-
<p class="signature " id="close-instance_method">
|
903
|
-
|
904
|
-
- (<tt>Object</tt>) <strong>close</strong>
|
905
|
-
|
906
|
-
|
907
|
-
|
908
|
-
</p><table class="source_code">
|
909
|
-
<tr>
|
910
|
-
<td>
|
911
|
-
<pre class="lines">
|
912
|
-
|
913
|
-
|
914
|
-
64
|
915
|
-
65
|
916
|
-
66</pre>
|
917
|
-
</td>
|
918
|
-
<td>
|
919
|
-
<pre class="code"><span class="info file"># File 'lib/sprout/process_runner.rb', line 64</span>
|
920
|
-
|
921
|
-
<span class='kw'>def</span> <span class='id close'>close</span>
|
922
|
-
<span class='id update_status'>update_status</span>
|
923
|
-
<span class='kw'>end</span></pre>
|
924
|
-
</td>
|
925
|
-
</tr>
|
926
|
-
</table>
|
927
|
-
</div>
|
928
|
-
|
929
|
-
<div class="method_details ">
|
930
|
-
<p class="signature " id="close_write-instance_method">
|
931
|
-
|
932
|
-
- (<tt>Object</tt>) <strong>close_write</strong>
|
933
|
-
|
934
|
-
|
935
|
-
|
936
|
-
</p><table class="source_code">
|
937
|
-
<tr>
|
938
|
-
<td>
|
939
|
-
<pre class="lines">
|
940
|
-
|
941
|
-
|
942
|
-
102
|
943
|
-
103
|
944
|
-
104</pre>
|
945
|
-
</td>
|
946
|
-
<td>
|
947
|
-
<pre class="code"><span class="info file"># File 'lib/sprout/process_runner.rb', line 102</span>
|
948
|
-
|
949
|
-
<span class='kw'>def</span> <span class='id close_write'>close_write</span>
|
950
|
-
<span class='ivar'>@w</span><span class='period'>.</span><span class='id close_write'>close_write</span>
|
951
|
-
<span class='kw'>end</span></pre>
|
952
|
-
</td>
|
953
|
-
</tr>
|
954
|
-
</table>
|
955
|
-
</div>
|
956
|
-
|
957
|
-
<div class="method_details ">
|
958
|
-
<p class="signature " id="execute_open4-instance_method">
|
959
|
-
|
960
|
-
- (<tt>Object</tt>) <strong>execute_open4</strong>(*command)
|
961
|
-
|
962
|
-
|
963
|
-
|
964
|
-
</p><div class="docstring">
|
965
|
-
<div class="discussion">
|
966
|
-
|
967
|
-
<p>Execute the provided command using the open4.popen4 library. This is
|
968
|
-
generally only used by Cygwin and *nix variants (including OS X).</p>
|
969
|
-
|
970
|
-
|
971
|
-
</div>
|
972
|
-
</div>
|
973
|
-
<div class="tags">
|
974
|
-
|
975
|
-
</div><table class="source_code">
|
976
|
-
<tr>
|
977
|
-
<td>
|
978
|
-
<pre class="lines">
|
979
|
-
|
980
|
-
|
981
|
-
38
|
982
|
-
39
|
983
|
-
40
|
984
|
-
41
|
985
|
-
42
|
986
|
-
43
|
987
|
-
44
|
988
|
-
45</pre>
|
989
|
-
</td>
|
990
|
-
<td>
|
991
|
-
<pre class="code"><span class="info file"># File 'lib/sprout/process_runner.rb', line 38</span>
|
992
|
-
|
993
|
-
<span class='kw'>def</span> <span class='id execute_open4'>execute_open4</span> <span class='op'>*</span><span class='id command'>command</span>
|
994
|
-
<span class='id execute_with_block'>execute_with_block</span> <span class='op'>*</span><span class='id command'>command</span> <span class='kw'>do</span>
|
995
|
-
<span class='comment'># Not sure about the join - with the 1.0 push, we're
|
996
|
-
</span> <span class='comment'># sending in 2 args - the exe path, and options as a string.
|
997
|
-
</span> <span class='comment'># This was new and was causing problems...
|
998
|
-
</span> <span class='ivar'>@pid</span><span class='comma'>,</span> <span class='ivar'>@w</span><span class='comma'>,</span> <span class='ivar'>@r</span><span class='comma'>,</span> <span class='ivar'>@e</span> <span class='op'>=</span> <span class='id open4_popen4_block'>open4_popen4_block</span> <span class='op'>*</span><span class='id command'>command</span><span class='period'>.</span><span class='id join'>join</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'> </span><span class='tstring_end'>'</span></span><span class='rparen'>)</span>
|
999
|
-
<span class='kw'>end</span>
|
1000
|
-
<span class='kw'>end</span></pre>
|
1001
|
-
</td>
|
1002
|
-
</tr>
|
1003
|
-
</table>
|
1004
|
-
</div>
|
1005
|
-
|
1006
|
-
<div class="method_details ">
|
1007
|
-
<p class="signature " id="execute_win32-instance_method">
|
1008
|
-
|
1009
|
-
- (<tt>Object</tt>) <strong>execute_win32</strong>(*command)
|
1010
|
-
|
1011
|
-
|
1012
|
-
|
1013
|
-
</p><div class="docstring">
|
1014
|
-
<div class="discussion">
|
1015
|
-
|
1016
|
-
<p>Execute the provided command using the win32-open3 library. This is
|
1017
|
-
generally used even by 64-bit Windows installations.</p>
|
1018
|
-
|
1019
|
-
|
1020
|
-
</div>
|
1021
|
-
</div>
|
1022
|
-
<div class="tags">
|
1023
|
-
|
1024
|
-
</div><table class="source_code">
|
1025
|
-
<tr>
|
1026
|
-
<td>
|
1027
|
-
<pre class="lines">
|
1028
|
-
|
1029
|
-
|
1030
|
-
50
|
1031
|
-
51
|
1032
|
-
52
|
1033
|
-
53
|
1034
|
-
54</pre>
|
1035
|
-
</td>
|
1036
|
-
<td>
|
1037
|
-
<pre class="code"><span class="info file"># File 'lib/sprout/process_runner.rb', line 50</span>
|
1038
|
-
|
1039
|
-
<span class='kw'>def</span> <span class='id execute_win32'>execute_win32</span><span class='lparen'>(</span><span class='op'>*</span><span class='id command'>command</span><span class='rparen'>)</span>
|
1040
|
-
<span class='id execute_with_block'>execute_with_block</span> <span class='op'>*</span><span class='id command'>command</span> <span class='kw'>do</span>
|
1041
|
-
<span class='ivar'>@pid</span><span class='comma'>,</span> <span class='ivar'>@w</span><span class='comma'>,</span> <span class='ivar'>@r</span><span class='comma'>,</span> <span class='ivar'>@e</span> <span class='op'>=</span> <span class='id io_popen_block'>io_popen_block</span> <span class='op'>*</span><span class='id command'>command</span><span class='period'>.</span><span class='id join'>join</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'> </span><span class='tstring_end'>'</span></span><span class='rparen'>)</span>
|
1042
|
-
<span class='kw'>end</span>
|
1043
|
-
<span class='kw'>end</span></pre>
|
1044
|
-
</td>
|
1045
|
-
</tr>
|
1046
|
-
</table>
|
1047
|
-
</div>
|
1048
|
-
|
1049
|
-
<div class="method_details ">
|
1050
|
-
<p class="signature " id="flush-instance_method">
|
1051
|
-
|
1052
|
-
- (<tt>Object</tt>) <strong>flush</strong>
|
1053
|
-
|
1054
|
-
|
1055
|
-
|
1056
|
-
</p><table class="source_code">
|
1057
|
-
<tr>
|
1058
|
-
<td>
|
1059
|
-
<pre class="lines">
|
1060
|
-
|
1061
|
-
|
1062
|
-
86
|
1063
|
-
87
|
1064
|
-
88</pre>
|
1065
|
-
</td>
|
1066
|
-
<td>
|
1067
|
-
<pre class="code"><span class="info file"># File 'lib/sprout/process_runner.rb', line 86</span>
|
1068
|
-
|
1069
|
-
<span class='kw'>def</span> <span class='id flush'>flush</span>
|
1070
|
-
<span class='ivar'>@w</span><span class='period'>.</span><span class='id flush'>flush</span>
|
1071
|
-
<span class='kw'>end</span></pre>
|
1072
|
-
</td>
|
1073
|
-
</tr>
|
1074
|
-
</table>
|
1075
|
-
</div>
|
1076
|
-
|
1077
|
-
<div class="method_details ">
|
1078
|
-
<p class="signature " id="getc-instance_method">
|
1079
|
-
|
1080
|
-
- (<tt>Object</tt>) <strong>getc</strong>
|
1081
|
-
|
1082
|
-
|
1083
|
-
|
1084
|
-
</p><table class="source_code">
|
1085
|
-
<tr>
|
1086
|
-
<td>
|
1087
|
-
<pre class="lines">
|
1088
|
-
|
1089
|
-
|
1090
|
-
90
|
1091
|
-
91
|
1092
|
-
92</pre>
|
1093
|
-
</td>
|
1094
|
-
<td>
|
1095
|
-
<pre class="code"><span class="info file"># File 'lib/sprout/process_runner.rb', line 90</span>
|
1096
|
-
|
1097
|
-
<span class='kw'>def</span> <span class='id getc'>getc</span>
|
1098
|
-
<span class='ivar'>@r</span><span class='period'>.</span><span class='id getc'>getc</span>
|
1099
|
-
<span class='kw'>end</span></pre>
|
1100
|
-
</td>
|
1101
|
-
</tr>
|
1102
|
-
</table>
|
1103
|
-
</div>
|
1104
|
-
|
1105
|
-
<div class="method_details ">
|
1106
|
-
<p class="signature " id="kill-instance_method">
|
1107
|
-
|
1108
|
-
- (<tt>Object</tt>) <strong>kill</strong>
|
1109
|
-
|
1110
|
-
|
1111
|
-
|
1112
|
-
</p><table class="source_code">
|
1113
|
-
<tr>
|
1114
|
-
<td>
|
1115
|
-
<pre class="lines">
|
1116
|
-
|
1117
|
-
|
1118
|
-
60
|
1119
|
-
61
|
1120
|
-
62</pre>
|
1121
|
-
</td>
|
1122
|
-
<td>
|
1123
|
-
<pre class="code"><span class="info file"># File 'lib/sprout/process_runner.rb', line 60</span>
|
1124
|
-
|
1125
|
-
<span class='kw'>def</span> <span class='id kill'>kill</span>
|
1126
|
-
<span class='const'>Process</span><span class='period'>.</span><span class='id kill'>kill</span><span class='lparen'>(</span><span class='int'>9</span><span class='comma'>,</span> <span class='id pid'>pid</span><span class='rparen'>)</span>
|
1127
|
-
<span class='kw'>end</span></pre>
|
1128
|
-
</td>
|
1129
|
-
</tr>
|
1130
|
-
</table>
|
1131
|
-
</div>
|
1132
|
-
|
1133
|
-
<div class="method_details ">
|
1134
|
-
<p class="signature " id="print-instance_method">
|
1135
|
-
|
1136
|
-
- (<tt>Object</tt>) <strong>print</strong>(msg)
|
1137
|
-
|
1138
|
-
|
1139
|
-
|
1140
|
-
</p><table class="source_code">
|
1141
|
-
<tr>
|
1142
|
-
<td>
|
1143
|
-
<pre class="lines">
|
1144
|
-
|
1145
|
-
|
1146
|
-
94
|
1147
|
-
95
|
1148
|
-
96</pre>
|
1149
|
-
</td>
|
1150
|
-
<td>
|
1151
|
-
<pre class="code"><span class="info file"># File 'lib/sprout/process_runner.rb', line 94</span>
|
1152
|
-
|
1153
|
-
<span class='kw'>def</span> <span class='id print'>print</span><span class='lparen'>(</span><span class='id msg'>msg</span><span class='rparen'>)</span>
|
1154
|
-
<span class='ivar'>@w</span><span class='period'>.</span><span class='id print'>print</span> <span class='id msg'>msg</span>
|
1155
|
-
<span class='kw'>end</span></pre>
|
1156
|
-
</td>
|
1157
|
-
</tr>
|
1158
|
-
</table>
|
1159
|
-
</div>
|
1160
|
-
|
1161
|
-
<div class="method_details ">
|
1162
|
-
<p class="signature " id="puts-instance_method">
|
1163
|
-
|
1164
|
-
- (<tt>Object</tt>) <strong>puts</strong>(msg)
|
1165
|
-
|
1166
|
-
|
1167
|
-
|
1168
|
-
</p><table class="source_code">
|
1169
|
-
<tr>
|
1170
|
-
<td>
|
1171
|
-
<pre class="lines">
|
1172
|
-
|
1173
|
-
|
1174
|
-
98
|
1175
|
-
99
|
1176
|
-
100</pre>
|
1177
|
-
</td>
|
1178
|
-
<td>
|
1179
|
-
<pre class="code"><span class="info file"># File 'lib/sprout/process_runner.rb', line 98</span>
|
1180
|
-
|
1181
|
-
<span class='kw'>def</span> <span class='id puts'>puts</span><span class='lparen'>(</span><span class='id msg'>msg</span><span class='rparen'>)</span>
|
1182
|
-
<span class='ivar'>@w</span><span class='period'>.</span><span class='id puts'>puts</span><span class='lparen'>(</span><span class='id msg'>msg</span><span class='rparen'>)</span>
|
1183
|
-
<span class='kw'>end</span></pre>
|
1184
|
-
</td>
|
1185
|
-
</tr>
|
1186
|
-
</table>
|
1187
|
-
</div>
|
1188
|
-
|
1189
|
-
<div class="method_details ">
|
1190
|
-
<p class="signature " id="read-instance_method">
|
1191
|
-
|
1192
|
-
- (<tt>Object</tt>) <strong>read</strong>
|
1193
|
-
|
1194
|
-
|
1195
|
-
|
1196
|
-
</p><table class="source_code">
|
1197
|
-
<tr>
|
1198
|
-
<td>
|
1199
|
-
<pre class="lines">
|
1200
|
-
|
1201
|
-
|
1202
|
-
106
|
1203
|
-
107
|
1204
|
-
108</pre>
|
1205
|
-
</td>
|
1206
|
-
<td>
|
1207
|
-
<pre class="code"><span class="info file"># File 'lib/sprout/process_runner.rb', line 106</span>
|
1208
|
-
|
1209
|
-
<span class='kw'>def</span> <span class='id read'>read</span>
|
1210
|
-
<span class='kw'>return</span> <span class='ivar'>@r</span><span class='period'>.</span><span class='id read'>read</span>
|
1211
|
-
<span class='kw'>end</span></pre>
|
1212
|
-
</td>
|
1213
|
-
</tr>
|
1214
|
-
</table>
|
1215
|
-
</div>
|
1216
|
-
|
1217
|
-
<div class="method_details ">
|
1218
|
-
<p class="signature " id="read_err-instance_method">
|
1219
|
-
|
1220
|
-
- (<tt>Object</tt>) <strong>read_err</strong>
|
1221
|
-
|
1222
|
-
|
1223
|
-
|
1224
|
-
</p><table class="source_code">
|
1225
|
-
<tr>
|
1226
|
-
<td>
|
1227
|
-
<pre class="lines">
|
1228
|
-
|
1229
|
-
|
1230
|
-
110
|
1231
|
-
111
|
1232
|
-
112</pre>
|
1233
|
-
</td>
|
1234
|
-
<td>
|
1235
|
-
<pre class="code"><span class="info file"># File 'lib/sprout/process_runner.rb', line 110</span>
|
1236
|
-
|
1237
|
-
<span class='kw'>def</span> <span class='id read_err'>read_err</span>
|
1238
|
-
<span class='kw'>return</span> <span class='ivar'>@e</span><span class='period'>.</span><span class='id read'>read</span>
|
1239
|
-
<span class='kw'>end</span></pre>
|
1240
|
-
</td>
|
1241
|
-
</tr>
|
1242
|
-
</table>
|
1243
|
-
</div>
|
1244
|
-
|
1245
|
-
<div class="method_details ">
|
1246
|
-
<p class="signature " id="readlines-instance_method">
|
1247
|
-
|
1248
|
-
- (<tt>Object</tt>) <strong>readlines</strong>
|
1249
|
-
|
1250
|
-
|
1251
|
-
|
1252
|
-
</p><table class="source_code">
|
1253
|
-
<tr>
|
1254
|
-
<td>
|
1255
|
-
<pre class="lines">
|
1256
|
-
|
1257
|
-
|
1258
|
-
82
|
1259
|
-
83
|
1260
|
-
84</pre>
|
1261
|
-
</td>
|
1262
|
-
<td>
|
1263
|
-
<pre class="code"><span class="info file"># File 'lib/sprout/process_runner.rb', line 82</span>
|
1264
|
-
|
1265
|
-
<span class='kw'>def</span> <span class='id readlines'>readlines</span>
|
1266
|
-
<span class='ivar'>@r</span><span class='period'>.</span><span class='id readlines'>readlines</span>
|
1267
|
-
<span class='kw'>end</span></pre>
|
1268
|
-
</td>
|
1269
|
-
</tr>
|
1270
|
-
</table>
|
1271
|
-
</div>
|
1272
|
-
|
1273
|
-
<div class="method_details ">
|
1274
|
-
<p class="signature " id="readpartial-instance_method">
|
1275
|
-
|
1276
|
-
- (<tt>Object</tt>) <strong>readpartial</strong>(count)
|
1277
|
-
|
1278
|
-
|
1279
|
-
|
1280
|
-
</p><table class="source_code">
|
1281
|
-
<tr>
|
1282
|
-
<td>
|
1283
|
-
<pre class="lines">
|
1284
|
-
|
1285
|
-
|
1286
|
-
78
|
1287
|
-
79
|
1288
|
-
80</pre>
|
1289
|
-
</td>
|
1290
|
-
<td>
|
1291
|
-
<pre class="code"><span class="info file"># File 'lib/sprout/process_runner.rb', line 78</span>
|
1292
|
-
|
1293
|
-
<span class='kw'>def</span> <span class='id readpartial'>readpartial</span><span class='lparen'>(</span><span class='id count'>count</span><span class='rparen'>)</span>
|
1294
|
-
<span class='ivar'>@r</span><span class='period'>.</span><span class='id readpartial'>readpartial</span><span class='lparen'>(</span><span class='id count'>count</span><span class='rparen'>)</span>
|
1295
|
-
<span class='kw'>end</span></pre>
|
1296
|
-
</td>
|
1297
|
-
</tr>
|
1298
|
-
</table>
|
1299
|
-
</div>
|
1300
|
-
|
1301
|
-
<div class="method_details ">
|
1302
|
-
<p class="signature " id="update_status-instance_method">
|
1303
|
-
|
1304
|
-
- (<tt>Object</tt>) <strong>update_status</strong>
|
1305
|
-
|
1306
|
-
|
1307
|
-
|
1308
|
-
</p><table class="source_code">
|
1309
|
-
<tr>
|
1310
|
-
<td>
|
1311
|
-
<pre class="lines">
|
1312
|
-
|
1313
|
-
|
1314
|
-
68
|
1315
|
-
69
|
1316
|
-
70
|
1317
|
-
71
|
1318
|
-
72
|
1319
|
-
73
|
1320
|
-
74
|
1321
|
-
75
|
1322
|
-
76</pre>
|
1323
|
-
</td>
|
1324
|
-
<td>
|
1325
|
-
<pre class="code"><span class="info file"># File 'lib/sprout/process_runner.rb', line 68</span>
|
1326
|
-
|
1327
|
-
<span class='kw'>def</span> <span class='id update_status'>update_status</span>
|
1328
|
-
<span class='id pid_int'>pid_int</span> <span class='op'>=</span> <span class='const'>Integer</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='embexpr_beg'>#{</span> <span class='ivar'>@pid</span> <span class='rbrace'>}</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span>
|
1329
|
-
<span class='kw'>begin</span>
|
1330
|
-
<span class='const'>Process</span><span class='op'>::</span><span class='id kill'>kill</span> <span class='int'>0</span><span class='comma'>,</span> <span class='id pid_int'>pid_int</span>
|
1331
|
-
<span class='kw'>true</span>
|
1332
|
-
<span class='kw'>rescue</span> <span class='const'>Errno</span><span class='op'>::</span><span class='const'>ESRCH</span>
|
1333
|
-
<span class='kw'>false</span>
|
1334
|
-
<span class='kw'>end</span>
|
1335
|
-
<span class='kw'>end</span></pre>
|
1336
|
-
</td>
|
1337
|
-
</tr>
|
1338
|
-
</table>
|
1339
|
-
</div>
|
1340
|
-
|
1341
|
-
</div>
|
1342
|
-
|
1343
|
-
</div>
|
1344
|
-
|
1345
|
-
<div id="footer">
|
1346
|
-
Generated on Wed Dec 22 11:58:34 2010 by
|
1347
|
-
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
1348
|
-
0.6.3 (ruby-1.9.2).
|
1349
|
-
</div>
|
1350
|
-
|
1351
|
-
</body>
|
1352
|
-
</html>
|