sprout 1.1.17.pre → 1.1.18.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/VERSION +1 -1
- data/doc/Dir.html +313 -0
- data/doc/Rake/Task.html +206 -0
- data/doc/Sprout.html +778 -0
- data/doc/Sprout/ArchiveUnpacker.html +1313 -0
- data/doc/Sprout/CommandLine.html +521 -0
- data/doc/Sprout/Concern.html +382 -0
- data/doc/Sprout/Errors.html +120 -0
- data/doc/Sprout/Errors/ArchiveUnpackerError.html +139 -0
- data/doc/Sprout/Errors/DestinationExistsError.html +143 -0
- data/doc/Sprout/Errors/DuplicateMemberError.html +142 -0
- data/doc/Sprout/Errors/ExecutableError.html +139 -0
- data/doc/Sprout/Errors/ExecutableRegistrationError.html +142 -0
- data/doc/Sprout/Errors/ExecutionError.html +135 -0
- data/doc/Sprout/Errors/GeneratorError.html +139 -0
- data/doc/Sprout/Errors/InvalidArgumentError.html +142 -0
- data/doc/Sprout/Errors/LoadError.html +135 -0
- data/doc/Sprout/Errors/MissingArgumentError.html +142 -0
- data/doc/Sprout/Errors/MissingExecutableError.html +142 -0
- data/doc/Sprout/Errors/MissingGeneratorError.html +142 -0
- data/doc/Sprout/Errors/MissingTemplateError.html +142 -0
- data/doc/Sprout/Errors/ProcessRunnerError.html +135 -0
- data/doc/Sprout/Errors/RemoteFileLoaderError.html +128 -0
- data/doc/Sprout/Errors/SproutError.html +132 -0
- data/doc/Sprout/Errors/UnknownArchiveType.html +136 -0
- data/doc/Sprout/Errors/UsageError.html +135 -0
- data/doc/Sprout/Errors/ValidationError.html +135 -0
- data/doc/Sprout/Errors/VersionRequirementNotMetError.html +135 -0
- data/doc/Sprout/Executable.html +183 -0
- data/doc/Sprout/Executable/Base.html +2986 -0
- data/doc/Sprout/Executable/Boolean.html +577 -0
- data/doc/Sprout/Executable/CollectionParam.html +521 -0
- data/doc/Sprout/Executable/FileParam.html +517 -0
- data/doc/Sprout/Executable/Files.html +311 -0
- data/doc/Sprout/Executable/Number.html +164 -0
- data/doc/Sprout/Executable/Param.html +3011 -0
- data/doc/Sprout/Executable/ParameterFactory.html +262 -0
- data/doc/Sprout/Executable/Path.html +247 -0
- data/doc/Sprout/Executable/Paths.html +268 -0
- data/doc/Sprout/Executable/Session.html +1587 -0
- data/doc/Sprout/Executable/StringParam.html +237 -0
- data/doc/Sprout/Executable/Strings.html +186 -0
- data/doc/Sprout/Executable/Url.html +180 -0
- data/doc/Sprout/Executable/Urls.html +185 -0
- data/doc/Sprout/FileTarget.html +1170 -0
- data/doc/Sprout/Generator.html +800 -0
- data/doc/Sprout/Generator/Base.html +1834 -0
- data/doc/Sprout/Generator/Command.html +716 -0
- data/doc/Sprout/Generator/DirectoryManifest.html +503 -0
- data/doc/Sprout/Generator/FileManifest.html +667 -0
- data/doc/Sprout/Generator/Manifest.html +403 -0
- data/doc/Sprout/Generator/TemplateManifest.html +213 -0
- data/doc/Sprout/GeneratorGenerator.html +990 -0
- data/doc/Sprout/Library.html +1259 -0
- data/doc/Sprout/LibraryGenerator.html +326 -0
- data/doc/Sprout/OutputBuffer.html +461 -0
- data/doc/Sprout/Platform.html +758 -0
- data/doc/Sprout/ProcessRunner.html +1801 -0
- data/doc/Sprout/ProgressBar.html +384 -0
- data/doc/Sprout/ProgressBarImpl.html +2151 -0
- data/doc/Sprout/ProgressBarManager.html +443 -0
- data/doc/Sprout/ProgressBarOutputStream.html +429 -0
- data/doc/Sprout/RDocParser.html +228 -0
- data/doc/Sprout/RemoteFileLoader.html +191 -0
- data/doc/Sprout/RemoteFileTarget.html +710 -0
- data/doc/Sprout/ReversedProgressBar.html +200 -0
- data/doc/Sprout/RubyFeature.html +176 -0
- data/doc/Sprout/RubyFeature/ClassMethods.html +1099 -0
- data/doc/Sprout/RubyGenerator.html +712 -0
- data/doc/Sprout/Specification.html +838 -0
- data/doc/Sprout/System.html +212 -0
- data/doc/Sprout/System/BaseSystem.html +1732 -0
- data/doc/Sprout/System/JavaSystem.html +137 -0
- data/doc/Sprout/System/OSXSystem.html +345 -0
- data/doc/Sprout/System/ThreadMock.html +201 -0
- data/doc/Sprout/System/UnixSystem.html +610 -0
- data/doc/Sprout/System/VistaSystem.html +263 -0
- data/doc/Sprout/System/WinNixSystem.html +340 -0
- data/doc/Sprout/System/WinSystem.html +590 -0
- data/doc/Sprout/TestHelper.html +2280 -0
- data/doc/Sprout/ToolGenerator.html +995 -0
- data/doc/Sprout/VERSION.html +135 -0
- data/doc/String.html +313 -0
- data/doc/_index.html +829 -0
- data/doc/class_list.html +47 -0
- data/doc/css/common.css +1 -0
- data/doc/css/full_list.css +55 -0
- data/doc/css/style.css +322 -0
- data/doc/file.README.html +109 -0
- data/doc/file_list.html +49 -0
- data/doc/frames.html +13 -0
- data/doc/index.html +109 -0
- data/doc/js/app.js +205 -0
- data/doc/js/full_list.js +173 -0
- data/doc/js/jquery.js +16 -0
- data/doc/method_list.html +3622 -0
- data/doc/top-level-namespace.html +220 -0
- data/lib/sprout/generators/generator/generator_generator.rb +3 -3
- data/lib/sprout/generators/generator/templates/{generator_class.rb → generator_class.erb} +0 -0
- data/lib/sprout/generators/generator/templates/{generator_test.rb → generator_test.erb} +0 -0
- data/lib/sprout/generators/generator/templates/{generator_test_helper.rb → generator_test_helper.erb} +0 -0
- data/lib/sprout/generators/library/library_generator.rb +1 -1
- data/lib/sprout/generators/library/templates/{library.rb → library.erb} +0 -0
- data/lib/sprout/generators/ruby/ruby_generator.rb +4 -5
- data/lib/sprout/generators/ruby/templates/{ruby_base.rb → ruby_base.erb} +0 -0
- data/lib/sprout/generators/ruby/templates/{ruby_input.rb → ruby_input.erb} +0 -0
- data/lib/sprout/generators/ruby/templates/{ruby_test_case.rb → ruby_test_case.erb} +0 -0
- data/lib/sprout/generators/ruby/templates/{ruby_test_helper.rb → ruby_test_helper.erb} +0 -0
- data/lib/sprout/generators/tool/templates/{tool.rb → tool.erb} +0 -2
- data/lib/sprout/generators/tool/tool_generator.rb +1 -1
- metadata +128 -32
@@ -0,0 +1,590 @@
|
|
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 http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
6
|
+
<title>
|
7
|
+
Class: Sprout::System::WinSystem
|
8
|
+
|
9
|
+
— Sprouts v.1.0.34.pre
|
10
|
+
|
11
|
+
</title>
|
12
|
+
|
13
|
+
<link rel="stylesheet" href="../../css/style.css" type="text/css" media="screen" charset="utf-8" />
|
14
|
+
|
15
|
+
<link rel="stylesheet" href="../../css/common.css" type="text/css" media="screen" charset="utf-8" />
|
16
|
+
|
17
|
+
<script type="text/javascript" charset="utf-8">
|
18
|
+
relpath = '../..';
|
19
|
+
if (relpath != '') relpath += '/';
|
20
|
+
</script>
|
21
|
+
|
22
|
+
<script type="text/javascript" charset="utf-8" src="../../js/jquery.js"></script>
|
23
|
+
|
24
|
+
<script type="text/javascript" charset="utf-8" src="../../js/app.js"></script>
|
25
|
+
|
26
|
+
|
27
|
+
</head>
|
28
|
+
<body>
|
29
|
+
<script type="text/javascript" charset="utf-8">
|
30
|
+
if (window.top.frames.main) document.body.className = 'frames';
|
31
|
+
</script>
|
32
|
+
|
33
|
+
<div id="header">
|
34
|
+
<div id="menu">
|
35
|
+
|
36
|
+
<a href="../../_index.html">Index (W)</a> »
|
37
|
+
<span class='title'><span class='object_link'><a href="../../Sprout.html" title="Sprout (module)">Sprout</a></span></span> » <span class='title'><span class='object_link'><a href="../System.html" title="Sprout::System (module)">System</a></span></span>
|
38
|
+
»
|
39
|
+
<span class="title">WinSystem</span>
|
40
|
+
|
41
|
+
|
42
|
+
<div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
|
43
|
+
</div>
|
44
|
+
|
45
|
+
<div id="search">
|
46
|
+
|
47
|
+
<a id="class_list_link" href="#">Class List</a>
|
48
|
+
|
49
|
+
<a id="method_list_link" href="#">Method List</a>
|
50
|
+
|
51
|
+
<a id="file_list_link" href="#">File List</a>
|
52
|
+
|
53
|
+
</div>
|
54
|
+
<div class="clear"></div>
|
55
|
+
</div>
|
56
|
+
|
57
|
+
<iframe id="search_frame"></iframe>
|
58
|
+
|
59
|
+
<div id="content"><h1>Class: Sprout::System::WinSystem
|
60
|
+
|
61
|
+
|
62
|
+
|
63
|
+
</h1>
|
64
|
+
|
65
|
+
<dl class="box">
|
66
|
+
|
67
|
+
<dt class="r1">Inherits:</dt>
|
68
|
+
<dd class="r1">
|
69
|
+
<span class="inheritName"><span class='object_link'><a href="BaseSystem.html" title="Sprout::System::BaseSystem (class)">BaseSystem</a></span></span>
|
70
|
+
|
71
|
+
<ul class="fullTree">
|
72
|
+
<li>Object</li>
|
73
|
+
|
74
|
+
<li class="next"><span class='object_link'><a href="BaseSystem.html" title="Sprout::System::BaseSystem (class)">BaseSystem</a></span></li>
|
75
|
+
|
76
|
+
<li class="next">Sprout::System::WinSystem</li>
|
77
|
+
|
78
|
+
</ul>
|
79
|
+
<a href="#" class="inheritanceTree">show all</a>
|
80
|
+
|
81
|
+
</dd>
|
82
|
+
|
83
|
+
|
84
|
+
|
85
|
+
|
86
|
+
|
87
|
+
|
88
|
+
|
89
|
+
|
90
|
+
|
91
|
+
<dt class="r2 last">Defined in:</dt>
|
92
|
+
<dd class="r2 last">lib/sprout/system/win_system.rb</dd>
|
93
|
+
|
94
|
+
</dl>
|
95
|
+
<div class="clear"></div>
|
96
|
+
|
97
|
+
<h2>Overview</h2><div class="docstring">
|
98
|
+
<div class="discussion">
|
99
|
+
<p>
|
100
|
+
The default Windows system. This is the system type for all major versions
|
101
|
+
and flavors of Windows (except Cygwin and Mingw).
|
102
|
+
</p>
|
103
|
+
|
104
|
+
|
105
|
+
</div>
|
106
|
+
</div>
|
107
|
+
<div class="tags">
|
108
|
+
|
109
|
+
|
110
|
+
</div><div id="subclasses">
|
111
|
+
<h2>Direct Known Subclasses</h2>
|
112
|
+
<p class="children"><span class='object_link'><a href="VistaSystem.html" title="Sprout::System::VistaSystem (class)">VistaSystem</a></span>, <span class='object_link'><a href="WinNixSystem.html" title="Sprout::System::WinNixSystem (class)">WinNixSystem</a></span></p>
|
113
|
+
</div>
|
114
|
+
|
115
|
+
<h2>Constant Summary</h2>
|
116
|
+
|
117
|
+
<dl class="constants">
|
118
|
+
|
119
|
+
<dt id="LOCAL_SETTINGS-constant" class="">LOCAL_SETTINGS =
|
120
|
+
|
121
|
+
</dt>
|
122
|
+
<dd><pre class="code"><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Local\ Settings</span><span class='tstring_end'>"</span></span></pre></dd>
|
123
|
+
|
124
|
+
<dt id="APPLICATION_DATA-constant" class="">APPLICATION_DATA =
|
125
|
+
|
126
|
+
</dt>
|
127
|
+
<dd><pre class="code"><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Application\ Data</span><span class='tstring_end'>"</span></span></pre></dd>
|
128
|
+
|
129
|
+
</dl>
|
130
|
+
|
131
|
+
|
132
|
+
|
133
|
+
|
134
|
+
|
135
|
+
|
136
|
+
|
137
|
+
|
138
|
+
|
139
|
+
<h2>
|
140
|
+
Instance Method Summary
|
141
|
+
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
142
|
+
</h2>
|
143
|
+
|
144
|
+
<ul class="summary">
|
145
|
+
|
146
|
+
<li class="public ">
|
147
|
+
<span class="summary_signature">
|
148
|
+
|
149
|
+
<a href="#can_execute%3F-instance_method" title="#can_execute? (instance method)">- (Boolean) <strong>can_execute?</strong>(platform) </a>
|
150
|
+
|
151
|
+
|
152
|
+
|
153
|
+
</span>
|
154
|
+
|
155
|
+
|
156
|
+
|
157
|
+
|
158
|
+
|
159
|
+
|
160
|
+
|
161
|
+
|
162
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
163
|
+
|
164
|
+
</li>
|
165
|
+
|
166
|
+
|
167
|
+
<li class="public ">
|
168
|
+
<span class="summary_signature">
|
169
|
+
|
170
|
+
<a href="#clean_path-instance_method" title="#clean_path (instance method)">- (Object) <strong>clean_path</strong>(path) </a>
|
171
|
+
|
172
|
+
|
173
|
+
|
174
|
+
</span>
|
175
|
+
|
176
|
+
|
177
|
+
|
178
|
+
|
179
|
+
|
180
|
+
|
181
|
+
|
182
|
+
|
183
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
184
|
+
|
185
|
+
</li>
|
186
|
+
|
187
|
+
|
188
|
+
<li class="public ">
|
189
|
+
<span class="summary_signature">
|
190
|
+
|
191
|
+
<a href="#format_application_name-instance_method" title="#format_application_name (instance method)">- (Object) <strong>format_application_name</strong>(name) </a>
|
192
|
+
|
193
|
+
|
194
|
+
|
195
|
+
</span>
|
196
|
+
|
197
|
+
|
198
|
+
|
199
|
+
|
200
|
+
|
201
|
+
|
202
|
+
|
203
|
+
|
204
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
205
|
+
|
206
|
+
</li>
|
207
|
+
|
208
|
+
|
209
|
+
<li class="protected ">
|
210
|
+
<span class="summary_signature">
|
211
|
+
|
212
|
+
<a href="#get_and_execute_process_runner-instance_method" title="#get_and_execute_process_runner (instance method)">- (Object) <strong>get_and_execute_process_runner</strong>(tool, options = nil) </a>
|
213
|
+
|
214
|
+
|
215
|
+
|
216
|
+
</span>
|
217
|
+
|
218
|
+
|
219
|
+
<span class="note title protected">protected</span>
|
220
|
+
|
221
|
+
|
222
|
+
|
223
|
+
|
224
|
+
|
225
|
+
<span class="summary_desc"><div class='inline'><p>
|
226
|
+
Gets the process runner and calls platform-specific execute method.
|
227
|
+
</p>
|
228
|
+
</div></span>
|
229
|
+
|
230
|
+
</li>
|
231
|
+
|
232
|
+
|
233
|
+
<li class="public ">
|
234
|
+
<span class="summary_signature">
|
235
|
+
|
236
|
+
<a href="#get_paths-instance_method" title="#get_paths (instance method)">- (Object) <strong>get_paths</strong> </a>
|
237
|
+
|
238
|
+
|
239
|
+
|
240
|
+
</span>
|
241
|
+
|
242
|
+
|
243
|
+
|
244
|
+
|
245
|
+
|
246
|
+
|
247
|
+
|
248
|
+
|
249
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
250
|
+
|
251
|
+
</li>
|
252
|
+
|
253
|
+
|
254
|
+
<li class="public ">
|
255
|
+
<span class="summary_signature">
|
256
|
+
|
257
|
+
<a href="#home-instance_method" title="#home (instance method)">- (Object) <strong>home</strong> </a>
|
258
|
+
|
259
|
+
|
260
|
+
|
261
|
+
</span>
|
262
|
+
|
263
|
+
|
264
|
+
|
265
|
+
|
266
|
+
|
267
|
+
|
268
|
+
|
269
|
+
|
270
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
271
|
+
|
272
|
+
</li>
|
273
|
+
|
274
|
+
|
275
|
+
<li class="public ">
|
276
|
+
<span class="summary_signature">
|
277
|
+
|
278
|
+
<a href="#library-instance_method" title="#library (instance method)">- (Object) <strong>library</strong> </a>
|
279
|
+
|
280
|
+
|
281
|
+
|
282
|
+
</span>
|
283
|
+
|
284
|
+
|
285
|
+
|
286
|
+
|
287
|
+
|
288
|
+
|
289
|
+
|
290
|
+
|
291
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
292
|
+
|
293
|
+
</li>
|
294
|
+
|
295
|
+
|
296
|
+
</ul>
|
297
|
+
|
298
|
+
|
299
|
+
|
300
|
+
|
301
|
+
|
302
|
+
|
303
|
+
|
304
|
+
|
305
|
+
|
306
|
+
|
307
|
+
<h3 class="inherited">Methods inherited from <span class='object_link'><a href="BaseSystem.html" title="Sprout::System::BaseSystem (class)">BaseSystem</a></span></h3>
|
308
|
+
<p class="inherited"><span class='object_link'><a href="BaseSystem.html#alt_separator%3F-instance_method" title="Sprout::System::BaseSystem#alt_separator? (method)">#alt_separator?</a></span>, <span class='object_link'><a href="BaseSystem.html#application_home-instance_method" title="Sprout::System::BaseSystem#application_home (method)">#application_home</a></span>, <span class='object_link'><a href="BaseSystem.html#env_home-instance_method" title="Sprout::System::BaseSystem#env_home (method)">#env_home</a></span>, <span class='object_link'><a href="BaseSystem.html#env_homedrive-instance_method" title="Sprout::System::BaseSystem#env_homedrive (method)">#env_homedrive</a></span>, <span class='object_link'><a href="BaseSystem.html#env_homedrive_and_homepath-instance_method" title="Sprout::System::BaseSystem#env_homedrive_and_homepath (method)">#env_homedrive_and_homepath</a></span>, <span class='object_link'><a href="BaseSystem.html#env_homepath-instance_method" title="Sprout::System::BaseSystem#env_homepath (method)">#env_homepath</a></span>, <span class='object_link'><a href="BaseSystem.html#env_userprofile-instance_method" title="Sprout::System::BaseSystem#env_userprofile (method)">#env_userprofile</a></span>, <span class='object_link'><a href="BaseSystem.html#execute-instance_method" title="Sprout::System::BaseSystem#execute (method)">#execute</a></span>, <span class='object_link'><a href="BaseSystem.html#execute_silent-instance_method" title="Sprout::System::BaseSystem#execute_silent (method)">#execute_silent</a></span>, <span class='object_link'><a href="BaseSystem.html#execute_thread-instance_method" title="Sprout::System::BaseSystem#execute_thread (method)">#execute_thread</a></span>, <span class='object_link'><a href="BaseSystem.html#find_home-instance_method" title="Sprout::System::BaseSystem#find_home (method)">#find_home</a></span>, <span class='object_link'><a href="BaseSystem.html#get_process_runner-instance_method" title="Sprout::System::BaseSystem#get_process_runner (method)">#get_process_runner</a></span>, <span class='object_link'><a href="BaseSystem.html#home%3D-instance_method" title="Sprout::System::BaseSystem#home= (method)">#home=</a></span>, <span class='object_link'><a href="BaseSystem.html#read_from-instance_method" title="Sprout::System::BaseSystem#read_from (method)">#read_from</a></span>, <span class='object_link'><a href="BaseSystem.html#tilde_home-instance_method" title="Sprout::System::BaseSystem#tilde_home (method)">#tilde_home</a></span>, <span class='object_link'><a href="BaseSystem.html#worst_case_home-instance_method" title="Sprout::System::BaseSystem#worst_case_home (method)">#worst_case_home</a></span></p>
|
309
|
+
|
310
|
+
|
311
|
+
<div id="instance_method_details" class="method_details_list">
|
312
|
+
<h2>Instance Method Details</h2>
|
313
|
+
|
314
|
+
|
315
|
+
<div class="method_details first">
|
316
|
+
<p class="signature first" id="can_execute?-instance_method">
|
317
|
+
|
318
|
+
- (<tt>Boolean</tt>) <strong>can_execute?</strong>(platform)
|
319
|
+
|
320
|
+
|
321
|
+
|
322
|
+
</p><div class="docstring">
|
323
|
+
<div class="discussion">
|
324
|
+
|
325
|
+
|
326
|
+
</div>
|
327
|
+
</div>
|
328
|
+
<div class="tags">
|
329
|
+
|
330
|
+
<h3>Returns:</h3>
|
331
|
+
<ul class="return">
|
332
|
+
|
333
|
+
<li>
|
334
|
+
|
335
|
+
|
336
|
+
<span class='type'>(<tt>Boolean</tt>)</span>
|
337
|
+
|
338
|
+
|
339
|
+
|
340
|
+
</li>
|
341
|
+
|
342
|
+
</ul>
|
343
|
+
|
344
|
+
</div><table class="source_code">
|
345
|
+
<tr>
|
346
|
+
<td>
|
347
|
+
<pre class="lines">
|
348
|
+
|
349
|
+
|
350
|
+
46
|
351
|
+
47
|
352
|
+
48</pre>
|
353
|
+
</td>
|
354
|
+
<td>
|
355
|
+
<pre class="code"><span class="info file"># File 'lib/sprout/system/win_system.rb', line 46</span>
|
356
|
+
|
357
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_can_execute?'>can_execute?</span> <span class='id identifier rubyid_platform'>platform</span>
|
358
|
+
<span class='lbracket'>[</span><span class='symbol'>:windows</span><span class='comma'>,</span> <span class='symbol'>:win32</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_include?'>include?</span><span class='lparen'>(</span><span class='id identifier rubyid_platform'>platform</span><span class='rparen'>)</span> <span class='op'>||</span> <span class='kw'>super</span>
|
359
|
+
<span class='kw'>end</span></pre>
|
360
|
+
</td>
|
361
|
+
</tr>
|
362
|
+
</table>
|
363
|
+
</div>
|
364
|
+
|
365
|
+
<div class="method_details ">
|
366
|
+
<p class="signature " id="clean_path-instance_method">
|
367
|
+
|
368
|
+
- (<tt>Object</tt>) <strong>clean_path</strong>(path)
|
369
|
+
|
370
|
+
|
371
|
+
|
372
|
+
</p><table class="source_code">
|
373
|
+
<tr>
|
374
|
+
<td>
|
375
|
+
<pre class="lines">
|
376
|
+
|
377
|
+
|
378
|
+
34
|
379
|
+
35
|
380
|
+
36
|
381
|
+
37
|
382
|
+
38
|
383
|
+
39
|
384
|
+
40</pre>
|
385
|
+
</td>
|
386
|
+
<td>
|
387
|
+
<pre class="code"><span class="info file"># File 'lib/sprout/system/win_system.rb', line 34</span>
|
388
|
+
|
389
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_clean_path'>clean_path</span><span class='lparen'>(</span><span class='id identifier rubyid_path'>path</span><span class='rparen'>)</span>
|
390
|
+
<span class='id identifier rubyid_path'>path</span> <span class='op'>=</span> <span class='id identifier rubyid_path'>path</span><span class='period'>.</span><span class='id identifier rubyid_split'>split</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><span class='period'>.</span><span class='id identifier rubyid_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>
|
391
|
+
<span class='kw'>if</span><span class='lparen'>(</span><span class='id identifier rubyid_path'>path</span><span class='period'>.</span><span class='id identifier rubyid_index'>index</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><span class='rparen'>)</span>
|
392
|
+
<span class='kw'>return</span> <span class='tstring'><span class='tstring_beg'>%{</span><span class='tstring_content'>"</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_path'>path</span><span class='rbrace'>}</span><span class='tstring_content'>"</span><span class='tstring_end'>}</span></span>
|
393
|
+
<span class='kw'>end</span>
|
394
|
+
<span class='kw'>return</span> <span class='id identifier rubyid_path'>path</span>
|
395
|
+
<span class='kw'>end</span></pre>
|
396
|
+
</td>
|
397
|
+
</tr>
|
398
|
+
</table>
|
399
|
+
</div>
|
400
|
+
|
401
|
+
<div class="method_details ">
|
402
|
+
<p class="signature " id="format_application_name-instance_method">
|
403
|
+
|
404
|
+
- (<tt>Object</tt>) <strong>format_application_name</strong>(name)
|
405
|
+
|
406
|
+
|
407
|
+
|
408
|
+
</p><table class="source_code">
|
409
|
+
<tr>
|
410
|
+
<td>
|
411
|
+
<pre class="lines">
|
412
|
+
|
413
|
+
|
414
|
+
42
|
415
|
+
43
|
416
|
+
44</pre>
|
417
|
+
</td>
|
418
|
+
<td>
|
419
|
+
<pre class="code"><span class="info file"># File 'lib/sprout/system/win_system.rb', line 42</span>
|
420
|
+
|
421
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_format_application_name'>format_application_name</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='rparen'>)</span>
|
422
|
+
<span class='kw'>return</span> <span class='id identifier rubyid_name'>name</span><span class='period'>.</span><span class='id identifier rubyid_capitalize'>capitalize</span>
|
423
|
+
<span class='kw'>end</span></pre>
|
424
|
+
</td>
|
425
|
+
</tr>
|
426
|
+
</table>
|
427
|
+
</div>
|
428
|
+
|
429
|
+
<div class="method_details ">
|
430
|
+
<p class="signature " id="get_and_execute_process_runner-instance_method">
|
431
|
+
|
432
|
+
- (<tt>Object</tt>) <strong>get_and_execute_process_runner</strong>(tool, options = nil) <span class="extras">(protected)</span>
|
433
|
+
|
434
|
+
|
435
|
+
|
436
|
+
</p><div class="docstring">
|
437
|
+
<div class="discussion">
|
438
|
+
<p>
|
439
|
+
Gets the process runner and calls platform-specific execute method
|
440
|
+
</p>
|
441
|
+
|
442
|
+
|
443
|
+
</div>
|
444
|
+
</div>
|
445
|
+
<div class="tags">
|
446
|
+
|
447
|
+
|
448
|
+
</div><table class="source_code">
|
449
|
+
<tr>
|
450
|
+
<td>
|
451
|
+
<pre class="lines">
|
452
|
+
|
453
|
+
|
454
|
+
55
|
455
|
+
56
|
456
|
+
57
|
457
|
+
58
|
458
|
+
59
|
459
|
+
60</pre>
|
460
|
+
</td>
|
461
|
+
<td>
|
462
|
+
<pre class="code"><span class="info file"># File 'lib/sprout/system/win_system.rb', line 55</span>
|
463
|
+
|
464
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_get_and_execute_process_runner'>get_and_execute_process_runner</span> <span class='id identifier rubyid_tool'>tool</span><span class='comma'>,</span> <span class='id identifier rubyid_options'>options</span><span class='op'>=</span><span class='kw'>nil</span>
|
465
|
+
<span class='id identifier rubyid_tool'>tool</span> <span class='op'>=</span> <span class='id identifier rubyid_clean_path'>clean_path</span> <span class='id identifier rubyid_find_tool'>find_tool</span><span class='lparen'>(</span><span class='id identifier rubyid_tool'>tool</span><span class='rparen'>)</span>
|
466
|
+
<span class='id identifier rubyid_runner'>runner</span> <span class='op'>=</span> <span class='id identifier rubyid_get_process_runner'>get_process_runner</span>
|
467
|
+
<span class='id identifier rubyid_runner'>runner</span><span class='period'>.</span><span class='id identifier rubyid_execute_win32'>execute_win32</span> <span class='id identifier rubyid_tool'>tool</span><span class='comma'>,</span> <span class='id identifier rubyid_options'>options</span>
|
468
|
+
<span class='id identifier rubyid_runner'>runner</span>
|
469
|
+
<span class='kw'>end</span></pre>
|
470
|
+
</td>
|
471
|
+
</tr>
|
472
|
+
</table>
|
473
|
+
</div>
|
474
|
+
|
475
|
+
<div class="method_details ">
|
476
|
+
<p class="signature " id="get_paths-instance_method">
|
477
|
+
|
478
|
+
- (<tt>Object</tt>) <strong>get_paths</strong>
|
479
|
+
|
480
|
+
|
481
|
+
|
482
|
+
</p><table class="source_code">
|
483
|
+
<tr>
|
484
|
+
<td>
|
485
|
+
<pre class="lines">
|
486
|
+
|
487
|
+
|
488
|
+
20
|
489
|
+
21
|
490
|
+
22</pre>
|
491
|
+
</td>
|
492
|
+
<td>
|
493
|
+
<pre class="code"><span class="info file"># File 'lib/sprout/system/win_system.rb', line 20</span>
|
494
|
+
|
495
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_get_paths'>get_paths</span>
|
496
|
+
<span class='kw'>return</span> <span class='id identifier rubyid_env_path'>env_path</span><span class='period'>.</span><span class='id identifier rubyid_split'>split</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>
|
497
|
+
<span class='kw'>end</span></pre>
|
498
|
+
</td>
|
499
|
+
</tr>
|
500
|
+
</table>
|
501
|
+
</div>
|
502
|
+
|
503
|
+
<div class="method_details ">
|
504
|
+
<p class="signature " id="home-instance_method">
|
505
|
+
|
506
|
+
- (<tt>Object</tt>) <strong>home</strong>
|
507
|
+
|
508
|
+
|
509
|
+
|
510
|
+
</p><table class="source_code">
|
511
|
+
<tr>
|
512
|
+
<td>
|
513
|
+
<pre class="lines">
|
514
|
+
|
515
|
+
|
516
|
+
12
|
517
|
+
13
|
518
|
+
14
|
519
|
+
15
|
520
|
+
16
|
521
|
+
17
|
522
|
+
18</pre>
|
523
|
+
</td>
|
524
|
+
<td>
|
525
|
+
<pre class="code"><span class="info file"># File 'lib/sprout/system/win_system.rb', line 12</span>
|
526
|
+
|
527
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_home'>home</span>
|
528
|
+
<span class='id identifier rubyid_path'>path</span> <span class='op'>=</span> <span class='kw'>super</span>
|
529
|
+
<span class='kw'>if</span><span class='lparen'>(</span><span class='id identifier rubyid_path'>path</span><span class='period'>.</span><span class='id identifier rubyid_include?'>include?</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>My Documents</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span>
|
530
|
+
<span class='id identifier rubyid_path'>path</span> <span class='op'>=</span> <span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_dirname'>dirname</span><span class='lparen'>(</span><span class='id identifier rubyid_path'>path</span><span class='rparen'>)</span>
|
531
|
+
<span class='kw'>end</span>
|
532
|
+
<span class='kw'>return</span> <span class='id identifier rubyid_path'>path</span>
|
533
|
+
<span class='kw'>end</span></pre>
|
534
|
+
</td>
|
535
|
+
</tr>
|
536
|
+
</table>
|
537
|
+
</div>
|
538
|
+
|
539
|
+
<div class="method_details ">
|
540
|
+
<p class="signature " id="library-instance_method">
|
541
|
+
|
542
|
+
- (<tt>Object</tt>) <strong>library</strong>
|
543
|
+
|
544
|
+
|
545
|
+
|
546
|
+
</p><table class="source_code">
|
547
|
+
<tr>
|
548
|
+
<td>
|
549
|
+
<pre class="lines">
|
550
|
+
|
551
|
+
|
552
|
+
24
|
553
|
+
25
|
554
|
+
26
|
555
|
+
27
|
556
|
+
28
|
557
|
+
29
|
558
|
+
30
|
559
|
+
31
|
560
|
+
32</pre>
|
561
|
+
</td>
|
562
|
+
<td>
|
563
|
+
<pre class="code"><span class="info file"># File 'lib/sprout/system/win_system.rb', line 24</span>
|
564
|
+
|
565
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_library'>library</span>
|
566
|
+
<span class='comment'># For some reason, my homepath returns inside 'My Documents'...
|
567
|
+
</span> <span class='id identifier rubyid_application_data'>application_data</span> <span class='op'>=</span> <span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_join'>join</span><span class='lparen'>(</span><span class='id identifier rubyid_home'>home</span><span class='comma'>,</span> <span class='const'>LOCAL_SETTINGS</span><span class='comma'>,</span> <span class='const'>APPLICATION_DATA</span><span class='rparen'>)</span>
|
568
|
+
<span class='kw'>if</span><span class='lparen'>(</span><span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_exists?'>exists?</span><span class='lparen'>(</span><span class='id identifier rubyid_application_data'>application_data</span><span class='rparen'>)</span><span class='rparen'>)</span>
|
569
|
+
<span class='kw'>return</span> <span class='id identifier rubyid_application_data'>application_data</span>
|
570
|
+
<span class='kw'>else</span>
|
571
|
+
<span class='kw'>return</span> <span class='kw'>super</span>
|
572
|
+
<span class='kw'>end</span>
|
573
|
+
<span class='kw'>end</span></pre>
|
574
|
+
</td>
|
575
|
+
</tr>
|
576
|
+
</table>
|
577
|
+
</div>
|
578
|
+
|
579
|
+
</div>
|
580
|
+
|
581
|
+
</div>
|
582
|
+
|
583
|
+
<div id="footer">
|
584
|
+
Generated on Sun Mar 11 14:30:34 2012 by
|
585
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
586
|
+
0.7.5 (ruby-1.9.2).
|
587
|
+
</div>
|
588
|
+
|
589
|
+
</body>
|
590
|
+
</html>
|