sprout 1.1.15.pre → 1.1.16.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/lib/sprout/executable/base.rb +7 -7
- metadata +101 -252
- data/Gemfile.lock +0 -50
- data/doc/Dir.html +0 -288
- data/doc/Rake/Task.html +0 -184
- data/doc/Sprout.html +0 -740
- data/doc/Sprout/ArchiveUnpacker.html +0 -1246
- data/doc/Sprout/CommandLine.html +0 -520
- data/doc/Sprout/Concern.html +0 -351
- data/doc/Sprout/Errors.html +0 -101
- 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/Executable.html +0 -169
- data/doc/Sprout/Executable/Base.html +0 -2813
- data/doc/Sprout/Executable/Boolean.html +0 -534
- 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/Number.html +0 -141
- data/doc/Sprout/Executable/Param.html +0 -2874
- 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/Session.html +0 -1513
- 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/FileTarget.html +0 -1109
- data/doc/Sprout/Generator.html +0 -750
- data/doc/Sprout/Generator/Base.html +0 -1902
- data/doc/Sprout/Generator/Command.html +0 -690
- data/doc/Sprout/Generator/DirectoryManifest.html +0 -476
- data/doc/Sprout/Generator/FileManifest.html +0 -643
- data/doc/Sprout/Generator/Manifest.html +0 -377
- data/doc/Sprout/Generator/TemplateManifest.html +0 -194
- data/doc/Sprout/GeneratorGenerator.html +0 -1115
- data/doc/Sprout/Library.html +0 -1146
- data/doc/Sprout/LibraryGenerator.html +0 -331
- data/doc/Sprout/OutputBuffer.html +0 -445
- data/doc/Sprout/Platform.html +0 -714
- data/doc/Sprout/ProcessRunner.html +0 -1707
- data/doc/Sprout/ProgressBar.html +0 -366
- data/doc/Sprout/ProgressBarImpl.html +0 -2109
- data/doc/Sprout/ProgressBarManager.html +0 -424
- data/doc/Sprout/ProgressBarOutputStream.html +0 -406
- 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 -184
- data/doc/Sprout/RubyFeature.html +0 -155
- data/doc/Sprout/RubyFeature/ClassMethods.html +0 -1065
- data/doc/Sprout/RubyGenerator.html +0 -786
- data/doc/Sprout/Specification.html +0 -767
- data/doc/Sprout/System.html +0 -191
- data/doc/Sprout/System/BaseSystem.html +0 -1660
- data/doc/Sprout/System/JavaSystem.html +0 -122
- data/doc/Sprout/System/OSXSystem.html +0 -335
- data/doc/Sprout/System/ThreadMock.html +0 -183
- 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/TestHelper.html +0 -2165
- data/doc/Sprout/ToolGenerator.html +0 -953
- data/doc/Sprout/VERSION.html +0 -118
- data/doc/String.html +0 -290
- data/doc/_index.html +0 -820
- 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_list.html +0 -41
- 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 -3603
- data/doc/top-level-namespace.html +0 -192
- data/test/fixtures/library/archive/Archive.swc +0 -0
data/doc/Sprout/Platform.html
DELETED
@@ -1,714 +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::Platform</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">Platform</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::Platform
|
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::Platform</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/platform.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>Determine what environment we're in so that we can play nice with
|
86
|
-
libraries, processes, executables, etc.</p>
|
87
|
-
|
88
|
-
|
89
|
-
</div>
|
90
|
-
</div>
|
91
|
-
<div class="tags">
|
92
|
-
|
93
|
-
</div>
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
<h2>
|
98
|
-
Instance Method Summary
|
99
|
-
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
100
|
-
</h2>
|
101
|
-
|
102
|
-
<ul class="summary">
|
103
|
-
|
104
|
-
<li class="public ">
|
105
|
-
<span class="summary_signature">
|
106
|
-
|
107
|
-
<a href="#java%3F-instance_method" title="#java? (instance method)">- (Boolean) <strong>java?</strong> </a>
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
</span>
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
<span class="summary_desc"><div class='inline'>
|
121
|
-
<p>Returns <tt>true</tt> if the current platform is running in the JVM
|
122
|
-
(JRuby).</p>
|
123
|
-
</div></span>
|
124
|
-
|
125
|
-
</li>
|
126
|
-
|
127
|
-
|
128
|
-
<li class="public ">
|
129
|
-
<span class="summary_signature">
|
130
|
-
|
131
|
-
<a href="#linux%3F-instance_method" title="#linux? (instance method)">- (Boolean) <strong>linux?</strong> </a>
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
</span>
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
<span class="summary_desc"><div class='inline'>
|
145
|
-
<p>Returns <tt>true</tt> if the current platform is <tt>unix?</tt> and not
|
146
|
-
<tt>mac?</tt>.</p>
|
147
|
-
</div></span>
|
148
|
-
|
149
|
-
</li>
|
150
|
-
|
151
|
-
|
152
|
-
<li class="public ">
|
153
|
-
<span class="summary_signature">
|
154
|
-
|
155
|
-
<a href="#mac%3F-instance_method" title="#mac? (instance method)">- (Boolean) <strong>mac?</strong> </a>
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
</span>
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
<span class="summary_desc"><div class='inline'>
|
169
|
-
<p>Returns <tt>true</tt> if the current platform is some flash of OS X.</p>
|
170
|
-
</div></span>
|
171
|
-
|
172
|
-
</li>
|
173
|
-
|
174
|
-
|
175
|
-
<li class="public ">
|
176
|
-
<span class="summary_signature">
|
177
|
-
|
178
|
-
<a href="#ruby_platform-instance_method" title="#ruby_platform (instance method)">- (Object) <strong>ruby_platform</strong> </a>
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
</span>
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
<span class="summary_desc"><div class='inline'>
|
192
|
-
<p>Instance wrapper for the global Ruby Constant, <tt>RUBY_PLATFORM</tt>.</p>
|
193
|
-
</div></span>
|
194
|
-
|
195
|
-
</li>
|
196
|
-
|
197
|
-
|
198
|
-
<li class="public ">
|
199
|
-
<span class="summary_signature">
|
200
|
-
|
201
|
-
<a href="#unix%3F-instance_method" title="#unix? (instance method)">- (Boolean) <strong>unix?</strong> </a>
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
</span>
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
<span class="summary_desc"><div class='inline'>
|
215
|
-
<p>Returns <tt>true</tt> if the current platform is not <tt>windows?</tt> or
|
216
|
-
<tt>java?</tt>.</p>
|
217
|
-
</div></span>
|
218
|
-
|
219
|
-
</li>
|
220
|
-
|
221
|
-
|
222
|
-
<li class="public ">
|
223
|
-
<span class="summary_signature">
|
224
|
-
|
225
|
-
<a href="#vista%3F-instance_method" title="#vista? (instance method)">- (Boolean) <strong>vista?</strong> </a>
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
</span>
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
<span class="summary_desc"><div class='inline'>
|
239
|
-
<p>Returns <tt>true</tt> if the current platform is Vista.</p>
|
240
|
-
</div></span>
|
241
|
-
|
242
|
-
</li>
|
243
|
-
|
244
|
-
|
245
|
-
<li class="public ">
|
246
|
-
<span class="summary_signature">
|
247
|
-
|
248
|
-
<a href="#windows%3F-instance_method" title="#windows? (instance method)">- (Boolean) <strong>windows?</strong> </a>
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
</span>
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
<span class="summary_desc"><div class='inline'>
|
262
|
-
<p>Returns <tt>true</tt> if the current platform is some flavor of Windows.</p>
|
263
|
-
</div></span>
|
264
|
-
|
265
|
-
</li>
|
266
|
-
|
267
|
-
|
268
|
-
<li class="public ">
|
269
|
-
<span class="summary_signature">
|
270
|
-
|
271
|
-
<a href="#windows_nix%3F-instance_method" title="#windows_nix? (instance method)">- (Boolean) <strong>windows_nix?</strong> </a>
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
</span>
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
<span class="summary_desc"><div class='inline'>
|
285
|
-
<p>Returns <tt>true</tt> if the current platform is some flavor of Unix on
|
286
|
-
Windows.</p>
|
287
|
-
</div></span>
|
288
|
-
|
289
|
-
</li>
|
290
|
-
|
291
|
-
|
292
|
-
</ul>
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
<div id="instance_method_details" class="method_details_list">
|
298
|
-
<h2>Instance Method Details</h2>
|
299
|
-
|
300
|
-
|
301
|
-
<div class="method_details first">
|
302
|
-
<p class="signature first" id="java?-instance_method">
|
303
|
-
|
304
|
-
- (<tt>Boolean</tt>) <strong>java?</strong>
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
</p><div class="docstring">
|
309
|
-
<div class="discussion">
|
310
|
-
|
311
|
-
<p>Returns <tt>true</tt> if the current platform is running in the JVM
|
312
|
-
(JRuby).</p>
|
313
|
-
|
314
|
-
|
315
|
-
</div>
|
316
|
-
</div>
|
317
|
-
<div class="tags">
|
318
|
-
<h3>Returns:</h3>
|
319
|
-
<ul class="return">
|
320
|
-
|
321
|
-
<li>
|
322
|
-
|
323
|
-
<span class='type'>(<tt>Boolean</tt>)</span>
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
|
328
|
-
</li>
|
329
|
-
|
330
|
-
</ul>
|
331
|
-
|
332
|
-
</div><table class="source_code">
|
333
|
-
<tr>
|
334
|
-
<td>
|
335
|
-
<pre class="lines">
|
336
|
-
|
337
|
-
|
338
|
-
56
|
339
|
-
57
|
340
|
-
58</pre>
|
341
|
-
</td>
|
342
|
-
<td>
|
343
|
-
<pre class="code"><span class="info file"># File 'lib/sprout/platform.rb', line 56</span>
|
344
|
-
|
345
|
-
<span class='kw'>def</span> <span class='id java?'>java?</span>
|
346
|
-
<span class='lparen'>(</span><span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>java</span><span class='regexp_end'>/</span></span> <span class='op'>=~</span> <span class='id ruby_platform'>ruby_platform</span><span class='rparen'>)</span> <span class='op'>!=</span> <span class='kw'>nil</span>
|
347
|
-
<span class='kw'>end</span></pre>
|
348
|
-
</td>
|
349
|
-
</tr>
|
350
|
-
</table>
|
351
|
-
</div>
|
352
|
-
|
353
|
-
<div class="method_details ">
|
354
|
-
<p class="signature " id="linux?-instance_method">
|
355
|
-
|
356
|
-
- (<tt>Boolean</tt>) <strong>linux?</strong>
|
357
|
-
|
358
|
-
|
359
|
-
|
360
|
-
</p><div class="docstring">
|
361
|
-
<div class="discussion">
|
362
|
-
|
363
|
-
<p>Returns <tt>true</tt> if the current platform is <tt>unix?</tt> and not
|
364
|
-
<tt>mac?</tt>.</p>
|
365
|
-
|
366
|
-
|
367
|
-
</div>
|
368
|
-
</div>
|
369
|
-
<div class="tags">
|
370
|
-
<h3>Returns:</h3>
|
371
|
-
<ul class="return">
|
372
|
-
|
373
|
-
<li>
|
374
|
-
|
375
|
-
<span class='type'>(<tt>Boolean</tt>)</span>
|
376
|
-
|
377
|
-
|
378
|
-
|
379
|
-
|
380
|
-
</li>
|
381
|
-
|
382
|
-
</ul>
|
383
|
-
|
384
|
-
</div><table class="source_code">
|
385
|
-
<tr>
|
386
|
-
<td>
|
387
|
-
<pre class="lines">
|
388
|
-
|
389
|
-
|
390
|
-
49
|
391
|
-
50
|
392
|
-
51</pre>
|
393
|
-
</td>
|
394
|
-
<td>
|
395
|
-
<pre class="code"><span class="info file"># File 'lib/sprout/platform.rb', line 49</span>
|
396
|
-
|
397
|
-
<span class='kw'>def</span> <span class='id linux?'>linux?</span>
|
398
|
-
<span class='id unix?'>unix?</span> <span class='kw'>and</span> <span class='kw'>not</span> <span class='id mac?'>mac?</span>
|
399
|
-
<span class='kw'>end</span></pre>
|
400
|
-
</td>
|
401
|
-
</tr>
|
402
|
-
</table>
|
403
|
-
</div>
|
404
|
-
|
405
|
-
<div class="method_details ">
|
406
|
-
<p class="signature " id="mac?-instance_method">
|
407
|
-
|
408
|
-
- (<tt>Boolean</tt>) <strong>mac?</strong>
|
409
|
-
|
410
|
-
|
411
|
-
|
412
|
-
</p><div class="docstring">
|
413
|
-
<div class="discussion">
|
414
|
-
|
415
|
-
<p>Returns <tt>true</tt> if the current platform is some flash of OS X.</p>
|
416
|
-
|
417
|
-
|
418
|
-
</div>
|
419
|
-
</div>
|
420
|
-
<div class="tags">
|
421
|
-
<h3>Returns:</h3>
|
422
|
-
<ul class="return">
|
423
|
-
|
424
|
-
<li>
|
425
|
-
|
426
|
-
<span class='type'>(<tt>Boolean</tt>)</span>
|
427
|
-
|
428
|
-
|
429
|
-
|
430
|
-
|
431
|
-
</li>
|
432
|
-
|
433
|
-
</ul>
|
434
|
-
|
435
|
-
</div><table class="source_code">
|
436
|
-
<tr>
|
437
|
-
<td>
|
438
|
-
<pre class="lines">
|
439
|
-
|
440
|
-
|
441
|
-
35
|
442
|
-
36
|
443
|
-
37</pre>
|
444
|
-
</td>
|
445
|
-
<td>
|
446
|
-
<pre class="code"><span class="info file"># File 'lib/sprout/platform.rb', line 35</span>
|
447
|
-
|
448
|
-
<span class='kw'>def</span> <span class='id mac?'>mac?</span>
|
449
|
-
<span class='lparen'>(</span><span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>darwin</span><span class='regexp_end'>/</span></span> <span class='op'>=~</span> <span class='id ruby_platform'>ruby_platform</span><span class='rparen'>)</span> <span class='op'>!=</span> <span class='kw'>nil</span>
|
450
|
-
<span class='kw'>end</span></pre>
|
451
|
-
</td>
|
452
|
-
</tr>
|
453
|
-
</table>
|
454
|
-
</div>
|
455
|
-
|
456
|
-
<div class="method_details ">
|
457
|
-
<p class="signature " id="ruby_platform-instance_method">
|
458
|
-
|
459
|
-
- (<tt>Object</tt>) <strong>ruby_platform</strong>
|
460
|
-
|
461
|
-
|
462
|
-
|
463
|
-
</p><div class="docstring">
|
464
|
-
<div class="discussion">
|
465
|
-
|
466
|
-
<p>Instance wrapper for the global Ruby Constant, <tt>RUBY_PLATFORM</tt>.</p>
|
467
|
-
|
468
|
-
<p>wrapping this global allows for much easier testing and environment
|
469
|
-
simulation.</p>
|
470
|
-
|
471
|
-
|
472
|
-
</div>
|
473
|
-
</div>
|
474
|
-
<div class="tags">
|
475
|
-
|
476
|
-
</div><table class="source_code">
|
477
|
-
<tr>
|
478
|
-
<td>
|
479
|
-
<pre class="lines">
|
480
|
-
|
481
|
-
|
482
|
-
65
|
483
|
-
66
|
484
|
-
67</pre>
|
485
|
-
</td>
|
486
|
-
<td>
|
487
|
-
<pre class="code"><span class="info file"># File 'lib/sprout/platform.rb', line 65</span>
|
488
|
-
|
489
|
-
<span class='kw'>def</span> <span class='id ruby_platform'>ruby_platform</span>
|
490
|
-
<span class='const'>RUBY_PLATFORM</span>
|
491
|
-
<span class='kw'>end</span></pre>
|
492
|
-
</td>
|
493
|
-
</tr>
|
494
|
-
</table>
|
495
|
-
</div>
|
496
|
-
|
497
|
-
<div class="method_details ">
|
498
|
-
<p class="signature " id="unix?-instance_method">
|
499
|
-
|
500
|
-
- (<tt>Boolean</tt>) <strong>unix?</strong>
|
501
|
-
|
502
|
-
|
503
|
-
|
504
|
-
</p><div class="docstring">
|
505
|
-
<div class="discussion">
|
506
|
-
|
507
|
-
<p>Returns <tt>true</tt> if the current platform is not <tt>windows?</tt> or
|
508
|
-
<tt>java?</tt>.</p>
|
509
|
-
|
510
|
-
|
511
|
-
</div>
|
512
|
-
</div>
|
513
|
-
<div class="tags">
|
514
|
-
<h3>Returns:</h3>
|
515
|
-
<ul class="return">
|
516
|
-
|
517
|
-
<li>
|
518
|
-
|
519
|
-
<span class='type'>(<tt>Boolean</tt>)</span>
|
520
|
-
|
521
|
-
|
522
|
-
|
523
|
-
|
524
|
-
</li>
|
525
|
-
|
526
|
-
</ul>
|
527
|
-
|
528
|
-
</div><table class="source_code">
|
529
|
-
<tr>
|
530
|
-
<td>
|
531
|
-
<pre class="lines">
|
532
|
-
|
533
|
-
|
534
|
-
42
|
535
|
-
43
|
536
|
-
44</pre>
|
537
|
-
</td>
|
538
|
-
<td>
|
539
|
-
<pre class="code"><span class="info file"># File 'lib/sprout/platform.rb', line 42</span>
|
540
|
-
|
541
|
-
<span class='kw'>def</span> <span class='id unix?'>unix?</span>
|
542
|
-
<span class='kw'>not</span> <span class='id windows?'>windows?</span> <span class='kw'>and</span> <span class='kw'>not</span> <span class='id java?'>java?</span>
|
543
|
-
<span class='kw'>end</span></pre>
|
544
|
-
</td>
|
545
|
-
</tr>
|
546
|
-
</table>
|
547
|
-
</div>
|
548
|
-
|
549
|
-
<div class="method_details ">
|
550
|
-
<p class="signature " id="vista?-instance_method">
|
551
|
-
|
552
|
-
- (<tt>Boolean</tt>) <strong>vista?</strong>
|
553
|
-
|
554
|
-
|
555
|
-
|
556
|
-
</p><div class="docstring">
|
557
|
-
<div class="discussion">
|
558
|
-
|
559
|
-
<p>Returns <tt>true</tt> if the current platform is Vista.</p>
|
560
|
-
|
561
|
-
|
562
|
-
</div>
|
563
|
-
</div>
|
564
|
-
<div class="tags">
|
565
|
-
<h3>Returns:</h3>
|
566
|
-
<ul class="return">
|
567
|
-
|
568
|
-
<li>
|
569
|
-
|
570
|
-
<span class='type'>(<tt>Boolean</tt>)</span>
|
571
|
-
|
572
|
-
|
573
|
-
|
574
|
-
|
575
|
-
</li>
|
576
|
-
|
577
|
-
</ul>
|
578
|
-
|
579
|
-
</div><table class="source_code">
|
580
|
-
<tr>
|
581
|
-
<td>
|
582
|
-
<pre class="lines">
|
583
|
-
|
584
|
-
|
585
|
-
20
|
586
|
-
21
|
587
|
-
22</pre>
|
588
|
-
</td>
|
589
|
-
<td>
|
590
|
-
<pre class="code"><span class="info file"># File 'lib/sprout/platform.rb', line 20</span>
|
591
|
-
|
592
|
-
<span class='kw'>def</span> <span class='id vista?'>vista?</span>
|
593
|
-
<span class='lparen'>(</span><span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>vista</span><span class='regexp_end'>/</span></span> <span class='op'>=~</span> <span class='id ruby_platform'>ruby_platform</span><span class='rparen'>)</span> <span class='op'>!=</span> <span class='kw'>nil</span>
|
594
|
-
<span class='kw'>end</span></pre>
|
595
|
-
</td>
|
596
|
-
</tr>
|
597
|
-
</table>
|
598
|
-
</div>
|
599
|
-
|
600
|
-
<div class="method_details ">
|
601
|
-
<p class="signature " id="windows?-instance_method">
|
602
|
-
|
603
|
-
- (<tt>Boolean</tt>) <strong>windows?</strong>
|
604
|
-
|
605
|
-
|
606
|
-
|
607
|
-
</p><div class="docstring">
|
608
|
-
<div class="discussion">
|
609
|
-
|
610
|
-
<p>Returns <tt>true</tt> if the current platform is some flavor of Windows.</p>
|
611
|
-
|
612
|
-
|
613
|
-
</div>
|
614
|
-
</div>
|
615
|
-
<div class="tags">
|
616
|
-
<h3>Returns:</h3>
|
617
|
-
<ul class="return">
|
618
|
-
|
619
|
-
<li>
|
620
|
-
|
621
|
-
<span class='type'>(<tt>Boolean</tt>)</span>
|
622
|
-
|
623
|
-
|
624
|
-
|
625
|
-
|
626
|
-
</li>
|
627
|
-
|
628
|
-
</ul>
|
629
|
-
|
630
|
-
</div><table class="source_code">
|
631
|
-
<tr>
|
632
|
-
<td>
|
633
|
-
<pre class="lines">
|
634
|
-
|
635
|
-
|
636
|
-
13
|
637
|
-
14
|
638
|
-
15</pre>
|
639
|
-
</td>
|
640
|
-
<td>
|
641
|
-
<pre class="code"><span class="info file"># File 'lib/sprout/platform.rb', line 13</span>
|
642
|
-
|
643
|
-
<span class='kw'>def</span> <span class='id windows?'>windows?</span>
|
644
|
-
<span class='lparen'>(</span><span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>cygwin|mswin|mingw|bccwin|wince|emx|vista</span><span class='regexp_end'>/</span></span> <span class='op'>=~</span> <span class='id ruby_platform'>ruby_platform</span><span class='rparen'>)</span> <span class='op'>!=</span> <span class='kw'>nil</span>
|
645
|
-
<span class='kw'>end</span></pre>
|
646
|
-
</td>
|
647
|
-
</tr>
|
648
|
-
</table>
|
649
|
-
</div>
|
650
|
-
|
651
|
-
<div class="method_details ">
|
652
|
-
<p class="signature " id="windows_nix?-instance_method">
|
653
|
-
|
654
|
-
- (<tt>Boolean</tt>) <strong>windows_nix?</strong>
|
655
|
-
|
656
|
-
|
657
|
-
|
658
|
-
</p><div class="docstring">
|
659
|
-
<div class="discussion">
|
660
|
-
|
661
|
-
<p>Returns <tt>true</tt> if the current platform is some flavor of Unix on
|
662
|
-
Windows. Recognized nix-ish systems are: Cygwin, Mingw and BCCWin.</p>
|
663
|
-
|
664
|
-
|
665
|
-
</div>
|
666
|
-
</div>
|
667
|
-
<div class="tags">
|
668
|
-
<h3>Returns:</h3>
|
669
|
-
<ul class="return">
|
670
|
-
|
671
|
-
<li>
|
672
|
-
|
673
|
-
<span class='type'>(<tt>Boolean</tt>)</span>
|
674
|
-
|
675
|
-
|
676
|
-
|
677
|
-
|
678
|
-
</li>
|
679
|
-
|
680
|
-
</ul>
|
681
|
-
|
682
|
-
</div><table class="source_code">
|
683
|
-
<tr>
|
684
|
-
<td>
|
685
|
-
<pre class="lines">
|
686
|
-
|
687
|
-
|
688
|
-
28
|
689
|
-
29
|
690
|
-
30</pre>
|
691
|
-
</td>
|
692
|
-
<td>
|
693
|
-
<pre class="code"><span class="info file"># File 'lib/sprout/platform.rb', line 28</span>
|
694
|
-
|
695
|
-
<span class='kw'>def</span> <span class='id windows_nix?'>windows_nix?</span>
|
696
|
-
<span class='lparen'>(</span><span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>cygwin|mingw|bccwin</span><span class='regexp_end'>/</span></span> <span class='op'>=~</span> <span class='id ruby_platform'>ruby_platform</span><span class='rparen'>)</span> <span class='op'>!=</span> <span class='kw'>nil</span>
|
697
|
-
<span class='kw'>end</span></pre>
|
698
|
-
</td>
|
699
|
-
</tr>
|
700
|
-
</table>
|
701
|
-
</div>
|
702
|
-
|
703
|
-
</div>
|
704
|
-
|
705
|
-
</div>
|
706
|
-
|
707
|
-
<div id="footer">
|
708
|
-
Generated on Fri Apr 29 18:33:05 2011 by
|
709
|
-
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
710
|
-
0.6.3 (ruby-1.9.2).
|
711
|
-
</div>
|
712
|
-
|
713
|
-
</body>
|
714
|
-
</html>
|