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.

Files changed (101) hide show
  1. data/VERSION +1 -1
  2. data/lib/sprout/executable/base.rb +7 -7
  3. metadata +101 -252
  4. data/Gemfile.lock +0 -50
  5. data/doc/Dir.html +0 -288
  6. data/doc/Rake/Task.html +0 -184
  7. data/doc/Sprout.html +0 -740
  8. data/doc/Sprout/ArchiveUnpacker.html +0 -1246
  9. data/doc/Sprout/CommandLine.html +0 -520
  10. data/doc/Sprout/Concern.html +0 -351
  11. data/doc/Sprout/Errors.html +0 -101
  12. data/doc/Sprout/Errors/ArchiveUnpackerError.html +0 -125
  13. data/doc/Sprout/Errors/DestinationExistsError.html +0 -133
  14. data/doc/Sprout/Errors/DuplicateMemberError.html +0 -132
  15. data/doc/Sprout/Errors/ExecutableError.html +0 -125
  16. data/doc/Sprout/Errors/ExecutableRegistrationError.html +0 -132
  17. data/doc/Sprout/Errors/ExecutionError.html +0 -121
  18. data/doc/Sprout/Errors/GeneratorError.html +0 -125
  19. data/doc/Sprout/Errors/InvalidArgumentError.html +0 -132
  20. data/doc/Sprout/Errors/LoadError.html +0 -121
  21. data/doc/Sprout/Errors/MissingArgumentError.html +0 -132
  22. data/doc/Sprout/Errors/MissingExecutableError.html +0 -132
  23. data/doc/Sprout/Errors/MissingGeneratorError.html +0 -132
  24. data/doc/Sprout/Errors/MissingTemplateError.html +0 -132
  25. data/doc/Sprout/Errors/ProcessRunnerError.html +0 -121
  26. data/doc/Sprout/Errors/RemoteFileLoaderError.html +0 -110
  27. data/doc/Sprout/Errors/SproutError.html +0 -114
  28. data/doc/Sprout/Errors/UnknownArchiveType.html +0 -122
  29. data/doc/Sprout/Errors/UsageError.html +0 -121
  30. data/doc/Sprout/Errors/ValidationError.html +0 -121
  31. data/doc/Sprout/Errors/VersionRequirementNotMetError.html +0 -121
  32. data/doc/Sprout/Executable.html +0 -169
  33. data/doc/Sprout/Executable/Base.html +0 -2813
  34. data/doc/Sprout/Executable/Boolean.html +0 -534
  35. data/doc/Sprout/Executable/CollectionParam.html +0 -483
  36. data/doc/Sprout/Executable/FileParam.html +0 -484
  37. data/doc/Sprout/Executable/Files.html +0 -292
  38. data/doc/Sprout/Executable/Number.html +0 -141
  39. data/doc/Sprout/Executable/Param.html +0 -2874
  40. data/doc/Sprout/Executable/ParameterFactory.html +0 -232
  41. data/doc/Sprout/Executable/Path.html +0 -223
  42. data/doc/Sprout/Executable/Paths.html +0 -253
  43. data/doc/Sprout/Executable/Session.html +0 -1513
  44. data/doc/Sprout/Executable/StringParam.html +0 -213
  45. data/doc/Sprout/Executable/Strings.html +0 -167
  46. data/doc/Sprout/Executable/Url.html +0 -160
  47. data/doc/Sprout/Executable/Urls.html +0 -170
  48. data/doc/Sprout/FileTarget.html +0 -1109
  49. data/doc/Sprout/Generator.html +0 -750
  50. data/doc/Sprout/Generator/Base.html +0 -1902
  51. data/doc/Sprout/Generator/Command.html +0 -690
  52. data/doc/Sprout/Generator/DirectoryManifest.html +0 -476
  53. data/doc/Sprout/Generator/FileManifest.html +0 -643
  54. data/doc/Sprout/Generator/Manifest.html +0 -377
  55. data/doc/Sprout/Generator/TemplateManifest.html +0 -194
  56. data/doc/Sprout/GeneratorGenerator.html +0 -1115
  57. data/doc/Sprout/Library.html +0 -1146
  58. data/doc/Sprout/LibraryGenerator.html +0 -331
  59. data/doc/Sprout/OutputBuffer.html +0 -445
  60. data/doc/Sprout/Platform.html +0 -714
  61. data/doc/Sprout/ProcessRunner.html +0 -1707
  62. data/doc/Sprout/ProgressBar.html +0 -366
  63. data/doc/Sprout/ProgressBarImpl.html +0 -2109
  64. data/doc/Sprout/ProgressBarManager.html +0 -424
  65. data/doc/Sprout/ProgressBarOutputStream.html +0 -406
  66. data/doc/Sprout/RDocParser.html +0 -211
  67. data/doc/Sprout/RemoteFileLoader.html +0 -172
  68. data/doc/Sprout/RemoteFileTarget.html +0 -679
  69. data/doc/Sprout/ReversedProgressBar.html +0 -184
  70. data/doc/Sprout/RubyFeature.html +0 -155
  71. data/doc/Sprout/RubyFeature/ClassMethods.html +0 -1065
  72. data/doc/Sprout/RubyGenerator.html +0 -786
  73. data/doc/Sprout/Specification.html +0 -767
  74. data/doc/Sprout/System.html +0 -191
  75. data/doc/Sprout/System/BaseSystem.html +0 -1660
  76. data/doc/Sprout/System/JavaSystem.html +0 -122
  77. data/doc/Sprout/System/OSXSystem.html +0 -335
  78. data/doc/Sprout/System/ThreadMock.html +0 -183
  79. data/doc/Sprout/System/UnixSystem.html +0 -584
  80. data/doc/Sprout/System/VistaSystem.html +0 -251
  81. data/doc/Sprout/System/WinNixSystem.html +0 -325
  82. data/doc/Sprout/System/WinSystem.html +0 -571
  83. data/doc/Sprout/TestHelper.html +0 -2165
  84. data/doc/Sprout/ToolGenerator.html +0 -953
  85. data/doc/Sprout/VERSION.html +0 -118
  86. data/doc/String.html +0 -290
  87. data/doc/_index.html +0 -820
  88. data/doc/class_list.html +0 -36
  89. data/doc/css/common.css +0 -1
  90. data/doc/css/full_list.css +0 -53
  91. data/doc/css/style.css +0 -310
  92. data/doc/file.README.html +0 -96
  93. data/doc/file_list.html +0 -41
  94. data/doc/frames.html +0 -13
  95. data/doc/index.html +0 -96
  96. data/doc/js/app.js +0 -202
  97. data/doc/js/full_list.js +0 -149
  98. data/doc/js/jquery.js +0 -154
  99. data/doc/method_list.html +0 -3603
  100. data/doc/top-level-namespace.html +0 -192
  101. data/test/fixtures/library/archive/Archive.swc +0 -0
@@ -1,740 +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>Module: Sprout</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 (S)</a> &raquo;
27
-
28
-
29
- <span class="title">Sprout</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>Module: Sprout
47
-
48
-
49
-
50
- </h1>
51
-
52
- <dl class="box">
53
-
54
-
55
-
56
-
57
-
58
-
59
-
60
-
61
- <dt class="r1 last">Defined in:</dt>
62
- <dd class="r1 last">lib/sprout.rb<span class="defines">,<br />
63
- lib/sprout/errors.rb,<br /> lib/sprout/system.rb,<br /> lib/sprout/version.rb,<br /> lib/sprout/library.rb,<br /> lib/sprout/concern.rb,<br /> lib/sprout/platform.rb,<br /> lib/sprout/generator.rb,<br /> lib/sprout/executable.rb,<br /> lib/sprout/file_target.rb,<br /> lib/sprout/rdoc_parser.rb,<br /> lib/sprout/progress_bar.rb,<br /> lib/sprout/ruby_feature.rb,<br /> lib/sprout/command_line.rb,<br /> lib/sprout/specification.rb,<br /> lib/sprout/output_buffer.rb,<br /> lib/sprout/executable/url.rb,<br /> lib/sprout/generator/base.rb,<br /> lib/sprout/process_runner.rb,<br /> lib/sprout/executable/urls.rb,<br /> lib/sprout/executable/path.rb,<br /> lib/sprout/executable/base.rb,<br /> lib/sprout/executable/files.rb,<br /> lib/sprout/executable/param.rb,<br /> lib/sprout/executable/paths.rb,<br /> lib/sprout/executable/number.rb,<br /> lib/sprout/remote_file_loader.rb,<br /> lib/sprout/executable/boolean.rb,<br /> lib/sprout/executable/strings.rb,<br /> lib/sprout/remote_file_target.rb,<br /> lib/sprout/executable/file_param.rb,<br /> lib/sprout/executable/string_param.rb,<br /> lib/sprout/executable/collection_param.rb,<br /> lib/sprout/generators/tool/tool_generator.rb,<br /> lib/sprout/generators/ruby/ruby_generator.rb,<br /> lib/sprout/generators/library/library_generator.rb,<br /> lib/sprout/generators/generator/generator_generator.rb</span>
64
- </dd>
65
-
66
- </dl>
67
- <div class="clear"></div>
68
-
69
- <h2>Defined Under Namespace</h2>
70
- <p class="children">
71
-
72
-
73
- <strong class="modules">Modules:</strong> <span class='object_link'><a href="Sprout/Concern.html" title="Sprout::Concern (module)">Concern</a></span>, <span class='object_link'><a href="Sprout/Errors.html" title="Sprout::Errors (module)">Errors</a></span>, <span class='object_link'><a href="Sprout/Executable.html" title="Sprout::Executable (module)">Executable</a></span>, <span class='object_link'><a href="Sprout/Generator.html" title="Sprout::Generator (module)">Generator</a></span>, <span class='object_link'><a href="Sprout/RubyFeature.html" title="Sprout::RubyFeature (module)">RubyFeature</a></span>, <span class='object_link'><a href="Sprout/System.html" title="Sprout::System (module)">System</a></span>, <span class='object_link'><a href="Sprout/TestHelper.html" title="Sprout::TestHelper (module)">TestHelper</a></span>, <span class='object_link'><a href="Sprout/VERSION.html" title="Sprout::VERSION (module)">VERSION</a></span>
74
-
75
-
76
-
77
- <strong class="classes">Classes:</strong> <span class='object_link'><a href="Sprout/ArchiveUnpacker.html" title="Sprout::ArchiveUnpacker (class)">ArchiveUnpacker</a></span>, <span class='object_link'><a href="Sprout/CommandLine.html" title="Sprout::CommandLine (class)">CommandLine</a></span>, <span class='object_link'><a href="Sprout/FileTarget.html" title="Sprout::FileTarget (class)">FileTarget</a></span>, <span class='object_link'><a href="Sprout/GeneratorGenerator.html" title="Sprout::GeneratorGenerator (class)">GeneratorGenerator</a></span>, <span class='object_link'><a href="Sprout/Library.html" title="Sprout::Library (class)">Library</a></span>, <span class='object_link'><a href="Sprout/LibraryGenerator.html" title="Sprout::LibraryGenerator (class)">LibraryGenerator</a></span>, <span class='object_link'><a href="Sprout/OutputBuffer.html" title="Sprout::OutputBuffer (class)">OutputBuffer</a></span>, <span class='object_link'><a href="Sprout/Platform.html" title="Sprout::Platform (class)">Platform</a></span>, <span class='object_link'><a href="Sprout/ProcessRunner.html" title="Sprout::ProcessRunner (class)">ProcessRunner</a></span>, <span class='object_link'><a href="Sprout/ProgressBar.html" title="Sprout::ProgressBar (class)">ProgressBar</a></span>, <span class='object_link'><a href="Sprout/ProgressBarImpl.html" title="Sprout::ProgressBarImpl (class)">ProgressBarImpl</a></span>, <span class='object_link'><a href="Sprout/ProgressBarManager.html" title="Sprout::ProgressBarManager (class)">ProgressBarManager</a></span>, <span class='object_link'><a href="Sprout/ProgressBarOutputStream.html" title="Sprout::ProgressBarOutputStream (class)">ProgressBarOutputStream</a></span>, <span class='object_link'><a href="Sprout/RDocParser.html" title="Sprout::RDocParser (class)">RDocParser</a></span>, <span class='object_link'><a href="Sprout/RemoteFileLoader.html" title="Sprout::RemoteFileLoader (class)">RemoteFileLoader</a></span>, <span class='object_link'><a href="Sprout/RemoteFileTarget.html" title="Sprout::RemoteFileTarget (class)">RemoteFileTarget</a></span>, <span class='object_link'><a href="Sprout/ReversedProgressBar.html" title="Sprout::ReversedProgressBar (class)">ReversedProgressBar</a></span>, <span class='object_link'><a href="Sprout/RubyGenerator.html" title="Sprout::RubyGenerator (class)">RubyGenerator</a></span>, <span class='object_link'><a href="Sprout/Specification.html" title="Sprout::Specification (class)">Specification</a></span>, <span class='object_link'><a href="Sprout/ToolGenerator.html" title="Sprout::ToolGenerator (class)">ToolGenerator</a></span>
78
-
79
-
80
- </p>
81
-
82
- <h2>Constant Summary</h2>
83
-
84
- <dl class="constants">
85
-
86
- <dt id="NAME-constant" class="">NAME =
87
-
88
- </dt>
89
- <dd><pre class="code"><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>sprout</span><span class='tstring_end'>'</span></span></pre></dd>
90
-
91
- </dl>
92
-
93
-
94
-
95
-
96
-
97
- <h2>
98
- Class 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="#cache-class_method" title="cache (class method)">+ (Dir) <strong>cache</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>where Sprouts will look for downloaded archives.</p>
122
- </div></span>
123
-
124
- </li>
125
-
126
-
127
- <li class="public ">
128
- <span class="summary_signature">
129
-
130
- <a href="#current_system-class_method" title="current_system (class method)">+ (Sprout::System) <strong>current_system</strong> </a>
131
-
132
-
133
-
134
- </span>
135
-
136
-
137
-
138
-
139
-
140
-
141
-
142
-
143
- <span class="summary_desc"><div class='inline'>
144
- <p>determine features like the cache path and how external processes are
145
- executed.</p>
146
- </div></span>
147
-
148
- </li>
149
-
150
-
151
- <li class="public ">
152
- <span class="summary_signature">
153
-
154
- <a href="#file_from_caller-class_method" title="file_from_caller (class method)">+ (File) <strong>file_from_caller</strong>(caller_string) </a>
155
-
156
-
157
-
158
- </span>
159
-
160
-
161
-
162
-
163
-
164
-
165
-
166
-
167
- <span class="summary_desc"><div class='inline'>
168
- <p>a Ruby exception.</p>
169
- </div></span>
170
-
171
- </li>
172
-
173
-
174
- <li class="public ">
175
- <span class="summary_signature">
176
-
177
- <a href="#generator_cache-class_method" title="generator_cache (class method)">+ (Dir) <strong>generator_cache</strong> </a>
178
-
179
-
180
-
181
- </span>
182
-
183
-
184
-
185
-
186
-
187
-
188
-
189
-
190
- <span class="summary_desc"><div class='inline'>
191
- <p>templates.</p>
192
- </div></span>
193
-
194
- </li>
195
-
196
-
197
- <li class="public ">
198
- <span class="summary_signature">
199
-
200
- <a href="#home-class_method" title="home (class method)">+ (Dir) <strong>home</strong> </a>
201
-
202
-
203
-
204
- </span>
205
-
206
-
207
-
208
-
209
-
210
-
211
-
212
-
213
- <span class="summary_desc"><div class='inline'>
214
- <p>will write files and generators and their templates.</p>
215
- </div></span>
216
-
217
- </li>
218
-
219
-
220
- <li class="public ">
221
- <span class="summary_signature">
222
-
223
- <a href="#stderr-class_method" title="stderr (class method)">+ (Object) <strong>stderr</strong> </a>
224
-
225
-
226
-
227
- </span>
228
-
229
-
230
-
231
-
232
-
233
-
234
-
235
-
236
- <span class="summary_desc"><div class='inline'></div></span>
237
-
238
- </li>
239
-
240
-
241
- <li class="public ">
242
- <span class="summary_signature">
243
-
244
- <a href="#stderr%3D-class_method" title="stderr= (class method)">+ (Object) <strong>stderr=</strong>(err) </a>
245
-
246
-
247
-
248
- </span>
249
-
250
-
251
-
252
-
253
-
254
-
255
-
256
-
257
- <span class="summary_desc"><div class='inline'></div></span>
258
-
259
- </li>
260
-
261
-
262
- <li class="public ">
263
- <span class="summary_signature">
264
-
265
- <a href="#stdout-class_method" title="stdout (class method)">+ (Object) <strong>stdout</strong> </a>
266
-
267
-
268
-
269
- </span>
270
-
271
-
272
-
273
-
274
-
275
-
276
-
277
-
278
- <span class="summary_desc"><div class='inline'></div></span>
279
-
280
- </li>
281
-
282
-
283
- <li class="public ">
284
- <span class="summary_signature">
285
-
286
- <a href="#stdout%3D-class_method" title="stdout= (class method)">+ (Object) <strong>stdout=</strong>(out) </a>
287
-
288
-
289
-
290
- </span>
291
-
292
-
293
-
294
-
295
-
296
-
297
-
298
-
299
- <span class="summary_desc"><div class='inline'></div></span>
300
-
301
- </li>
302
-
303
-
304
- </ul>
305
-
306
-
307
-
308
-
309
- <div id="class_method_details" class="method_details_list">
310
- <h2>Class Method Details</h2>
311
-
312
-
313
- <div class="method_details first">
314
- <p class="signature first" id="cache-class_method">
315
-
316
- + (<tt><span class='object_link'><a href="Dir.html" title="Dir (class)">Dir</a></span></tt>) <strong>cache</strong>
317
-
318
-
319
-
320
- </p><div class="docstring">
321
- <div class="discussion">
322
-
323
- <p>where Sprouts will look for downloaded archives.</p>
324
-
325
- <pre class="code"><span class='id puts'>puts</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>&gt;&gt; Sprout Cache: </span><span class='embexpr_beg'>#{</span><span class='const'>Sprout</span><span class='period'>.</span><span class='id cache'>cache</span><span class='rbrace'>}</span><span class='tstring_end'>&quot;</span></span></pre>
326
-
327
-
328
- </div>
329
- </div>
330
- <div class="tags">
331
- <h3>Returns:</h3>
332
- <ul class="return">
333
-
334
- <li>
335
-
336
- <span class='type'>(<tt><span class='object_link'><a href="Dir.html" title="Dir (class)">Dir</a></span></tt>)</span>
337
-
338
-
339
-
340
-
341
- &mdash;
342
- <div class='inline'>
343
- <p>The system-specific path to the writeable cache directory</p>
344
- </div>
345
-
346
- </li>
347
-
348
- </ul>
349
-
350
- </div><table class="source_code">
351
- <tr>
352
- <td>
353
- <pre class="lines">
354
-
355
-
356
- 63
357
- 64
358
- 65</pre>
359
- </td>
360
- <td>
361
- <pre class="code"><span class="info file"># File 'lib/sprout.rb', line 63</span>
362
-
363
- <span class='kw'>def</span> <span class='id cache'>cache</span>
364
- <span class='const'>File</span><span class='period'>.</span><span class='id join'>join</span><span class='lparen'>(</span><span class='id home'>home</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>cache</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span>
365
- <span class='kw'>end</span></pre>
366
- </td>
367
- </tr>
368
- </table>
369
- </div>
370
-
371
- <div class="method_details ">
372
- <p class="signature " id="current_system-class_method">
373
-
374
- + (<tt><span class='object_link'><a href="Sprout/System.html" title="Sprout::System (module)">Sprout::System</a></span></tt>) <strong>current_system</strong>
375
-
376
-
377
-
378
- </p><div class="docstring">
379
- <div class="discussion">
380
-
381
- <p>determine features like the cache path and how external processes are
382
- executed.</p>
383
-
384
- <pre class="code"><span class='id system'>system</span> <span class='op'>=</span> <span class='const'>Sprout</span><span class='period'>.</span><span class='id current_system'>current_system</span>
385
- <span class='id puts'>puts</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>&gt;&gt; System: </span><span class='embexpr_beg'>#{</span><span class='id system'>system</span><span class='period'>.</span><span class='id inspect'>inspect</span><span class='rbrace'>}</span><span class='tstring_end'>&quot;</span></span></pre>
386
-
387
-
388
- </div>
389
- </div>
390
- <div class="tags">
391
- <h3>Returns:</h3>
392
- <ul class="return">
393
-
394
- <li>
395
-
396
- <span class='type'>(<tt><span class='object_link'><a href="Sprout/System.html" title="Sprout::System (module)">Sprout::System</a></span></tt>)</span>
397
-
398
-
399
-
400
-
401
- &mdash;
402
- <div class='inline'>
403
- <p>That is currently being used to</p>
404
- </div>
405
-
406
- </li>
407
-
408
- </ul>
409
-
410
- </div><table class="source_code">
411
- <tr>
412
- <td>
413
- <pre class="lines">
414
-
415
-
416
- 95
417
- 96
418
- 97</pre>
419
- </td>
420
- <td>
421
- <pre class="code"><span class="info file"># File 'lib/sprout.rb', line 95</span>
422
-
423
- <span class='kw'>def</span> <span class='id current_system'>current_system</span>
424
- <span class='const'>Sprout</span><span class='op'>::</span><span class='const'>System</span><span class='period'>.</span><span class='id create'>create</span>
425
- <span class='kw'>end</span></pre>
426
- </td>
427
- </tr>
428
- </table>
429
- </div>
430
-
431
- <div class="method_details ">
432
- <p class="signature " id="file_from_caller-class_method">
433
-
434
- + (<tt>File</tt>) <strong>file_from_caller</strong>(caller_string)
435
-
436
-
437
-
438
- </p><div class="docstring">
439
- <div class="discussion">
440
-
441
- <p>a Ruby exception.</p>
442
-
443
- <p>Note: It's a real bummer that this string is colon delimited - The value on
444
- Windows often includes a colon... Once again, Windows is dissed by
445
- fundamental Ruby decisions.</p>
446
-
447
-
448
- </div>
449
- </div>
450
- <div class="tags">
451
- <h3>Returns:</h3>
452
- <ul class="return">
453
-
454
- <li>
455
-
456
- <span class='type'>(<tt>File</tt>)</span>
457
-
458
-
459
-
460
-
461
- &mdash;
462
- <div class='inline'>
463
- <p>Path to the file from the 'caller' property of</p>
464
- </div>
465
-
466
- </li>
467
-
468
- </ul>
469
-
470
- </div><table class="source_code">
471
- <tr>
472
- <td>
473
- <pre class="lines">
474
-
475
-
476
- 122
477
- 123
478
- 124
479
- 125
480
- 126
481
- 127
482
- 128
483
- 129</pre>
484
- </td>
485
- <td>
486
- <pre class="code"><span class="info file"># File 'lib/sprout.rb', line 122</span>
487
-
488
- <span class='kw'>def</span> <span class='id file_from_caller'>file_from_caller</span> <span class='id caller_string'>caller_string</span>
489
- <span class='id parts'>parts</span> <span class='op'>=</span> <span class='id caller_string'>caller_string</span><span class='period'>.</span><span class='id 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>
490
- <span class='id str'>str</span> <span class='op'>=</span> <span class='id parts'>parts</span><span class='period'>.</span><span class='id shift'>shift</span>
491
- <span class='kw'>while</span><span class='lparen'>(</span><span class='id parts'>parts</span><span class='period'>.</span><span class='id size'>size</span> <span class='op'>&gt;</span> <span class='int'>0</span> <span class='op'>&amp;&amp;</span> <span class='op'>!</span><span class='const'>File</span><span class='period'>.</span><span class='id exists?'>exists?</span><span class='lparen'>(</span><span class='id str'>str</span><span class='rparen'>)</span><span class='rparen'>)</span>
492
- <span class='id str'>str</span> <span class='op'>&lt;&lt;</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>:</span><span class='embexpr_beg'>#{</span><span class='id parts'>parts</span><span class='period'>.</span><span class='id shift'>shift</span><span class='rbrace'>}</span><span class='tstring_end'>&quot;</span></span>
493
- <span class='kw'>end</span>
494
- <span class='id str'>str</span>
495
- <span class='kw'>end</span></pre>
496
- </td>
497
- </tr>
498
- </table>
499
- </div>
500
-
501
- <div class="method_details ">
502
- <p class="signature " id="generator_cache-class_method">
503
-
504
- + (<tt><span class='object_link'><a href="Dir.html" title="Dir (class)">Dir</a></span></tt>) <strong>generator_cache</strong>
505
-
506
-
507
-
508
- </p><div class="docstring">
509
- <div class="discussion">
510
-
511
- <p>templates.</p>
512
-
513
- <pre class="code"><span class='id puts'>puts</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>&gt;&gt; Generator Cache: </span><span class='embexpr_beg'>#{</span><span class='const'>Sprout</span><span class='period'>.</span><span class='id generator_cache'>generator_cache</span><span class='rbrace'>}</span><span class='tstring_end'>&quot;</span></span></pre>
514
-
515
-
516
- </div>
517
- </div>
518
- <div class="tags">
519
- <h3>Returns:</h3>
520
- <ul class="return">
521
-
522
- <li>
523
-
524
- <span class='type'>(<tt><span class='object_link'><a href="Dir.html" title="Dir (class)">Dir</a></span></tt>)</span>
525
-
526
-
527
-
528
-
529
- &mdash;
530
- <div class='inline'>
531
- <p>The location where Sprouts will look for generators and their</p>
532
- </div>
533
-
534
- </li>
535
-
536
- </ul>
537
-
538
- </div><table class="source_code">
539
- <tr>
540
- <td>
541
- <pre class="lines">
542
-
543
-
544
- 83
545
- 84
546
- 85</pre>
547
- </td>
548
- <td>
549
- <pre class="code"><span class="info file"># File 'lib/sprout.rb', line 83</span>
550
-
551
- <span class='kw'>def</span> <span class='id generator_cache'>generator_cache</span>
552
- <span class='const'>File</span><span class='period'>.</span><span class='id join'>join</span> <span class='id cache'>cache</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>generators</span><span class='tstring_end'>'</span></span>
553
- <span class='kw'>end</span></pre>
554
- </td>
555
- </tr>
556
- </table>
557
- </div>
558
-
559
- <div class="method_details ">
560
- <p class="signature " id="home-class_method">
561
-
562
- + (<tt><span class='object_link'><a href="Dir.html" title="Dir (class)">Dir</a></span></tt>) <strong>home</strong>
563
-
564
-
565
-
566
- </p><div class="docstring">
567
- <div class="discussion">
568
-
569
- <p>will write files and generators and their templates.</p>
570
-
571
- <pre class="code"><span class='id puts'>puts</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>&gt;&gt; Sprout home: </span><span class='embexpr_beg'>#{</span><span class='const'>Sprout</span><span class='period'>.</span><span class='id home'>home</span><span class='rbrace'>}</span><span class='tstring_end'>&quot;</span></span></pre>
572
-
573
-
574
- </div>
575
- </div>
576
- <div class="tags">
577
- <h3>Returns:</h3>
578
- <ul class="return">
579
-
580
- <li>
581
-
582
- <span class='type'>(<tt><span class='object_link'><a href="Dir.html" title="Dir (class)">Dir</a></span></tt>)</span>
583
-
584
-
585
-
586
-
587
- &mdash;
588
- <div class='inline'>
589
- <p>The location where the currently-running version of Sprouts</p>
590
- </div>
591
-
592
- </li>
593
-
594
- </ul>
595
-
596
- </div><table class="source_code">
597
- <tr>
598
- <td>
599
- <pre class="lines">
600
-
601
-
602
- 73
603
- 74
604
- 75</pre>
605
- </td>
606
- <td>
607
- <pre class="code"><span class="info file"># File 'lib/sprout.rb', line 73</span>
608
-
609
- <span class='kw'>def</span> <span class='id home'>home</span>
610
- <span class='const'>File</span><span class='period'>.</span><span class='id join'>join</span><span class='lparen'>(</span><span class='id current_system'>current_system</span><span class='period'>.</span><span class='id application_home'>application_home</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>sprouts</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span><span class='comma'>,</span> <span class='const'>Sprout</span><span class='op'>::</span><span class='const'>VERSION</span><span class='op'>::</span><span class='const'>MAJOR_MINOR</span><span class='rparen'>)</span>
611
- <span class='kw'>end</span></pre>
612
- </td>
613
- </tr>
614
- </table>
615
- </div>
616
-
617
- <div class="method_details ">
618
- <p class="signature " id="stderr-class_method">
619
-
620
- + (<tt>Object</tt>) <strong>stderr</strong>
621
-
622
-
623
-
624
- </p><table class="source_code">
625
- <tr>
626
- <td>
627
- <pre class="lines">
628
-
629
-
630
- 111
631
- 112
632
- 113</pre>
633
- </td>
634
- <td>
635
- <pre class="code"><span class="info file"># File 'lib/sprout.rb', line 111</span>
636
-
637
- <span class='kw'>def</span> <span class='id stderr'>stderr</span>
638
- <span class='ivar'>@stderr</span> <span class='op'>||=</span> <span class='gvar'>$stderr</span>
639
- <span class='kw'>end</span></pre>
640
- </td>
641
- </tr>
642
- </table>
643
- </div>
644
-
645
- <div class="method_details ">
646
- <p class="signature " id="stderr=-class_method">
647
-
648
- + (<tt>Object</tt>) <strong>stderr=</strong>(err)
649
-
650
-
651
-
652
- </p><table class="source_code">
653
- <tr>
654
- <td>
655
- <pre class="lines">
656
-
657
-
658
- 107
659
- 108
660
- 109</pre>
661
- </td>
662
- <td>
663
- <pre class="code"><span class="info file"># File 'lib/sprout.rb', line 107</span>
664
-
665
- <span class='kw'>def</span> <span class='id stderr='>stderr=</span><span class='lparen'>(</span><span class='id err'>err</span><span class='rparen'>)</span>
666
- <span class='ivar'>@stderr</span> <span class='op'>=</span> <span class='id err'>err</span>
667
- <span class='kw'>end</span></pre>
668
- </td>
669
- </tr>
670
- </table>
671
- </div>
672
-
673
- <div class="method_details ">
674
- <p class="signature " id="stdout-class_method">
675
-
676
- + (<tt>Object</tt>) <strong>stdout</strong>
677
-
678
-
679
-
680
- </p><table class="source_code">
681
- <tr>
682
- <td>
683
- <pre class="lines">
684
-
685
-
686
- 103
687
- 104
688
- 105</pre>
689
- </td>
690
- <td>
691
- <pre class="code"><span class="info file"># File 'lib/sprout.rb', line 103</span>
692
-
693
- <span class='kw'>def</span> <span class='id stdout'>stdout</span>
694
- <span class='ivar'>@stdout</span> <span class='op'>||=</span> <span class='gvar'>$stdout</span>
695
- <span class='kw'>end</span></pre>
696
- </td>
697
- </tr>
698
- </table>
699
- </div>
700
-
701
- <div class="method_details ">
702
- <p class="signature " id="stdout=-class_method">
703
-
704
- + (<tt>Object</tt>) <strong>stdout=</strong>(out)
705
-
706
-
707
-
708
- </p><table class="source_code">
709
- <tr>
710
- <td>
711
- <pre class="lines">
712
-
713
-
714
- 99
715
- 100
716
- 101</pre>
717
- </td>
718
- <td>
719
- <pre class="code"><span class="info file"># File 'lib/sprout.rb', line 99</span>
720
-
721
- <span class='kw'>def</span> <span class='id stdout='>stdout=</span><span class='lparen'>(</span><span class='id out'>out</span><span class='rparen'>)</span>
722
- <span class='ivar'>@stdout</span> <span class='op'>=</span> <span class='id out'>out</span>
723
- <span class='kw'>end</span></pre>
724
- </td>
725
- </tr>
726
- </table>
727
- </div>
728
-
729
- </div>
730
-
731
- </div>
732
-
733
- <div id="footer">
734
- Generated on Fri Apr 29 18:33:04 2011 by
735
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
736
- 0.6.3 (ruby-1.9.2).
737
- </div>
738
-
739
- </body>
740
- </html>