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,690 +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::Generator::Command</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 (C)</a> &raquo;
27
- <span class='title'><span class='object_link'><a href="../../Sprout.html" title="Sprout (module)">Sprout</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../Generator.html" title="Sprout::Generator (module)">Generator</a></span></span>
28
- &raquo;
29
- <span class="title">Command</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::Generator::Command
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::Generator::Command</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/generator/command.rb</dd>
78
-
79
- </dl>
80
- <div class="clear"></div>
81
-
82
-
83
-
84
- <h2>Instance Attribute Summary <small>(<a href="#" class="summary_toggle">collapse</a>)</small></h2>
85
- <ul class="summary">
86
-
87
- <li class="public ">
88
- <span class="summary_signature">
89
-
90
- <a href="#logger-instance_method" title="#logger (instance method)">- (Object) <strong>logger</strong> </a>
91
-
92
-
93
-
94
- </span>
95
-
96
-
97
-
98
-
99
-
100
-
101
-
102
-
103
-
104
-
105
-
106
- <span class="summary_desc"><div class='inline'>
107
- <p>Returns the value of attribute logger.</p>
108
- </div></span>
109
-
110
- </li>
111
-
112
-
113
- <li class="public ">
114
- <span class="summary_signature">
115
-
116
- <a href="#working_dir-instance_method" title="#working_dir (instance method)">- (Object) <strong>working_dir</strong> </a>
117
-
118
-
119
-
120
- </span>
121
-
122
-
123
-
124
-
125
-
126
-
127
-
128
-
129
-
130
-
131
-
132
- <span class="summary_desc"><div class='inline'>
133
- <p>Returns the value of attribute working_dir.</p>
134
- </div></span>
135
-
136
- </li>
137
-
138
-
139
- </ul>
140
-
141
-
142
-
143
- <h2>
144
- Instance Method Summary
145
- <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
146
- </h2>
147
-
148
- <ul class="summary">
149
-
150
- <li class="public ">
151
- <span class="summary_signature">
152
-
153
- <a href="#directory-instance_method" title="#directory (instance method)">- (Object) <strong>directory</strong>(path, &amp;block) </a>
154
-
155
-
156
-
157
- </span>
158
-
159
-
160
-
161
-
162
-
163
-
164
-
165
-
166
- <span class="summary_desc"><div class='inline'></div></span>
167
-
168
- </li>
169
-
170
-
171
- <li class="public ">
172
- <span class="summary_signature">
173
-
174
- <a href="#execute-instance_method" title="#execute (instance method)">- (Object) <strong>execute</strong> </a>
175
-
176
-
177
-
178
- </span>
179
-
180
-
181
-
182
-
183
-
184
-
185
-
186
-
187
- <span class="summary_desc"><div class='inline'></div></span>
188
-
189
- </li>
190
-
191
-
192
- <li class="public ">
193
- <span class="summary_signature">
194
-
195
- <a href="#file-instance_method" title="#file (instance method)">- (Object) <strong>file</strong>(path, template = nil) </a>
196
-
197
-
198
-
199
- </span>
200
-
201
-
202
-
203
-
204
-
205
-
206
-
207
-
208
- <span class="summary_desc"><div class='inline'></div></span>
209
-
210
- </li>
211
-
212
-
213
- <li class="public ">
214
- <span class="summary_signature">
215
-
216
- <a href="#generator-instance_method" title="#generator (instance method)">- (Object) <strong>generator</strong>(name, options = {}) </a>
217
-
218
-
219
-
220
- </span>
221
-
222
-
223
-
224
-
225
-
226
-
227
-
228
-
229
- <span class="summary_desc"><div class='inline'></div></span>
230
-
231
- </li>
232
-
233
-
234
- <li class="public ">
235
- <span class="summary_signature">
236
-
237
- <a href="#initialize-instance_method" title="#initialize (instance method)">- (Command) <strong>initialize</strong>(generator) </a>
238
-
239
-
240
-
241
- </span>
242
-
243
- <span class="note title constructor">constructor</span>
244
-
245
-
246
-
247
-
248
-
249
-
250
-
251
-
252
- <span class="summary_desc"><div class='inline'>
253
- <p>A new instance of Command.</p>
254
- </div></span>
255
-
256
- </li>
257
-
258
-
259
- <li class="public ">
260
- <span class="summary_signature">
261
-
262
- <a href="#template-instance_method" title="#template (instance method)">- (Object) <strong>template</strong>(path, template = nil) </a>
263
-
264
-
265
-
266
- </span>
267
-
268
-
269
-
270
-
271
-
272
-
273
-
274
-
275
- <span class="summary_desc"><div class='inline'></div></span>
276
-
277
- </li>
278
-
279
-
280
- <li class="public ">
281
- <span class="summary_signature">
282
-
283
- <a href="#unexecute-instance_method" title="#unexecute (instance method)">- (Object) <strong>unexecute</strong> </a>
284
-
285
-
286
-
287
- </span>
288
-
289
-
290
-
291
-
292
-
293
-
294
-
295
-
296
- <span class="summary_desc"><div class='inline'></div></span>
297
-
298
- </li>
299
-
300
-
301
- </ul>
302
-
303
-
304
- <div id="constructor_details" class="method_details_list">
305
- <h2>Constructor Details</h2>
306
-
307
- <div class="method_details first">
308
- <p class="signature first" id="initialize-instance_method">
309
-
310
- - (<tt><span class='object_link'><a href="" title="Sprout::Generator::Command (class)">Command</a></span></tt>) <strong>initialize</strong>(generator)
311
-
312
-
313
-
314
- </p><div class="docstring">
315
- <div class="discussion">
316
-
317
- <p>A new instance of Command</p>
318
-
319
-
320
- </div>
321
- </div>
322
- <div class="tags">
323
-
324
- </div><table class="source_code">
325
- <tr>
326
- <td>
327
- <pre class="lines">
328
-
329
-
330
- 7
331
- 8
332
- 9
333
- 10
334
- 11
335
- 12</pre>
336
- </td>
337
- <td>
338
- <pre class="code"><span class="info file"># File 'lib/sprout/generator/command.rb', line 7</span>
339
-
340
- <span class='kw'>def</span> <span class='id initialize'>initialize</span> <span class='id generator'>generator</span>
341
- <span class='ivar'>@generator</span> <span class='op'>=</span> <span class='id generator'>generator</span>
342
- <span class='ivar'>@working_dir</span> <span class='op'>=</span> <span class='const'>DirectoryManifest</span><span class='period'>.</span><span class='id new'>new</span>
343
- <span class='ivar'>@working_dir</span><span class='period'>.</span><span class='id generator'>generator</span> <span class='op'>=</span> <span class='id generator'>generator</span>
344
- <span class='ivar'>@working_dir</span><span class='period'>.</span><span class='id path'>path</span> <span class='op'>=</span> <span class='id generator'>generator</span><span class='period'>.</span><span class='id path'>path</span>
345
- <span class='kw'>end</span></pre>
346
- </td>
347
- </tr>
348
- </table>
349
- </div>
350
-
351
- </div>
352
-
353
- <div id="instance_attr_details" class="attr_details">
354
- <h2>Instance Attribute Details</h2>
355
-
356
-
357
- <span id="logger=-instance_method"></span>
358
- <span id="logger-instance_method"></span>
359
- <div class="method_details first">
360
- <p class="signature first" id="logger-instance_method">
361
-
362
- - (<tt>Object</tt>) <strong>logger</strong>
363
-
364
-
365
-
366
- </p><div class="docstring">
367
- <div class="discussion">
368
-
369
- <p>Returns the value of attribute logger</p>
370
-
371
-
372
- </div>
373
- </div>
374
- <div class="tags">
375
-
376
- </div><table class="source_code">
377
- <tr>
378
- <td>
379
- <pre class="lines">
380
-
381
-
382
- 4
383
- 5
384
- 6</pre>
385
- </td>
386
- <td>
387
- <pre class="code"><span class="info file"># File 'lib/sprout/generator/command.rb', line 4</span>
388
-
389
- <span class='kw'>def</span> <span class='id logger'>logger</span>
390
- <span class='ivar'>@logger</span>
391
- <span class='kw'>end</span></pre>
392
- </td>
393
- </tr>
394
- </table>
395
- </div>
396
-
397
-
398
- <span id="working_dir=-instance_method"></span>
399
- <span id="working_dir-instance_method"></span>
400
- <div class="method_details ">
401
- <p class="signature " id="working_dir-instance_method">
402
-
403
- - (<tt>Object</tt>) <strong>working_dir</strong>
404
-
405
-
406
-
407
- </p><div class="docstring">
408
- <div class="discussion">
409
-
410
- <p>Returns the value of attribute working_dir</p>
411
-
412
-
413
- </div>
414
- </div>
415
- <div class="tags">
416
-
417
- </div><table class="source_code">
418
- <tr>
419
- <td>
420
- <pre class="lines">
421
-
422
-
423
- 5
424
- 6
425
- 7</pre>
426
- </td>
427
- <td>
428
- <pre class="code"><span class="info file"># File 'lib/sprout/generator/command.rb', line 5</span>
429
-
430
- <span class='kw'>def</span> <span class='id working_dir'>working_dir</span>
431
- <span class='ivar'>@working_dir</span>
432
- <span class='kw'>end</span></pre>
433
- </td>
434
- </tr>
435
- </table>
436
- </div>
437
-
438
- </div>
439
-
440
-
441
- <div id="instance_method_details" class="method_details_list">
442
- <h2>Instance Method Details</h2>
443
-
444
-
445
- <div class="method_details first">
446
- <p class="signature first" id="directory-instance_method">
447
-
448
- - (<tt>Object</tt>) <strong>directory</strong>(path, &amp;block)
449
-
450
-
451
-
452
- </p><table class="source_code">
453
- <tr>
454
- <td>
455
- <pre class="lines">
456
-
457
-
458
- 14
459
- 15
460
- 16
461
- 17
462
- 18
463
- 19
464
- 20
465
- 21
466
- 22
467
- 23
468
- 24</pre>
469
- </td>
470
- <td>
471
- <pre class="code"><span class="info file"># File 'lib/sprout/generator/command.rb', line 14</span>
472
-
473
- <span class='kw'>def</span> <span class='id directory'>directory</span> <span class='id path'>path</span><span class='comma'>,</span> <span class='op'>&amp;</span><span class='id block'>block</span>
474
- <span class='id raise'>raise</span> <span class='const'>Sprout</span><span class='op'>::</span><span class='const'>Errors</span><span class='op'>::</span><span class='const'>GeneratorError</span><span class='period'>.</span><span class='id new'>new</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Cannot create directory with nil path</span><span class='tstring_end'>&quot;</span></span> <span class='kw'>if</span> <span class='id path'>path</span><span class='period'>.</span><span class='id nil?'>nil?</span>
475
- <span class='id manifest'>manifest</span> <span class='op'>=</span> <span class='const'>DirectoryManifest</span><span class='period'>.</span><span class='id new'>new</span>
476
- <span class='id manifest'>manifest</span><span class='period'>.</span><span class='id generator'>generator</span> <span class='op'>=</span> <span class='ivar'>@generator</span>
477
- <span class='id manifest'>manifest</span><span class='period'>.</span><span class='id path'>path</span> <span class='op'>=</span> <span class='const'>File</span><span class='period'>.</span><span class='id join'>join</span><span class='lparen'>(</span><span class='ivar'>@working_dir</span><span class='period'>.</span><span class='id path'>path</span><span class='comma'>,</span> <span class='id path'>path</span><span class='rparen'>)</span>
478
- <span class='ivar'>@working_dir</span><span class='period'>.</span><span class='id children'>children</span> <span class='op'>&lt;&lt;</span> <span class='id manifest'>manifest</span>
479
- <span class='id parent'>parent</span> <span class='op'>=</span> <span class='ivar'>@working_dir</span>
480
- <span class='ivar'>@working_dir</span> <span class='op'>=</span> <span class='id manifest'>manifest</span>
481
- <span class='kw'>yield</span> <span class='kw'>if</span> <span class='id block_given?'>block_given?</span>
482
- <span class='ivar'>@working_dir</span> <span class='op'>=</span> <span class='id parent'>parent</span>
483
- <span class='kw'>end</span></pre>
484
- </td>
485
- </tr>
486
- </table>
487
- </div>
488
-
489
- <div class="method_details ">
490
- <p class="signature " id="execute-instance_method">
491
-
492
- - (<tt>Object</tt>) <strong>execute</strong>
493
-
494
-
495
-
496
- </p><table class="source_code">
497
- <tr>
498
- <td>
499
- <pre class="lines">
500
-
501
-
502
- 55
503
- 56
504
- 57
505
- 58
506
- 59
507
- 60
508
- 61
509
- 62
510
- 63
511
- 64
512
- 65</pre>
513
- </td>
514
- <td>
515
- <pre class="code"><span class="info file"># File 'lib/sprout/generator/command.rb', line 55</span>
516
-
517
- <span class='kw'>def</span> <span class='id execute'>execute</span>
518
- <span class='kw'>begin</span>
519
- <span class='id working_dir'>working_dir</span><span class='period'>.</span><span class='id create'>create</span>
520
- <span class='kw'>rescue</span> <span class='const'>StandardError</span> <span class='op'>=&gt;</span> <span class='id e'>e</span>
521
- <span class='ivar'>@generator</span><span class='period'>.</span><span class='id say'>say</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>[</span><span class='embexpr_beg'>#{</span><span class='id e'>e</span><span class='period'>.</span><span class='id class'>class</span><span class='rbrace'>}</span><span class='tstring_content'>] </span><span class='embexpr_beg'>#{</span><span class='id e'>e</span><span class='period'>.</span><span class='id message'>message</span><span class='rbrace'>}</span><span class='tstring_end'>&quot;</span></span>
522
- <span class='id working_dir'>working_dir</span><span class='period'>.</span><span class='id children'>children</span><span class='period'>.</span><span class='id each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id child'>child</span><span class='op'>|</span>
523
- <span class='id child'>child</span><span class='period'>.</span><span class='id destroy'>destroy</span>
524
- <span class='kw'>end</span>
525
- <span class='id raise'>raise</span> <span class='id e'>e</span>
526
- <span class='kw'>end</span>
527
- <span class='kw'>end</span></pre>
528
- </td>
529
- </tr>
530
- </table>
531
- </div>
532
-
533
- <div class="method_details ">
534
- <p class="signature " id="file-instance_method">
535
-
536
- - (<tt>Object</tt>) <strong>file</strong>(path, template = nil)
537
-
538
-
539
-
540
- </p><table class="source_code">
541
- <tr>
542
- <td>
543
- <pre class="lines">
544
-
545
-
546
- 36
547
- 37
548
- 38
549
- 39
550
- 40
551
- 41
552
- 42
553
- 43
554
- 44</pre>
555
- </td>
556
- <td>
557
- <pre class="code"><span class="info file"># File 'lib/sprout/generator/command.rb', line 36</span>
558
-
559
- <span class='kw'>def</span> <span class='id file'>file</span> <span class='id path'>path</span><span class='comma'>,</span> <span class='id template'>template</span><span class='op'>=</span><span class='kw'>nil</span>
560
- <span class='id raise'>raise</span> <span class='const'>Sprout</span><span class='op'>::</span><span class='const'>Errors</span><span class='op'>::</span><span class='const'>GeneratorError</span><span class='period'>.</span><span class='id new'>new</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Cannot create file with nil path</span><span class='tstring_end'>&quot;</span></span> <span class='kw'>if</span> <span class='id path'>path</span><span class='period'>.</span><span class='id nil?'>nil?</span>
561
- <span class='id manifest'>manifest</span> <span class='op'>=</span> <span class='const'>FileManifest</span><span class='period'>.</span><span class='id new'>new</span>
562
- <span class='id manifest'>manifest</span><span class='period'>.</span><span class='id generator'>generator</span> <span class='op'>=</span> <span class='ivar'>@generator</span>
563
- <span class='id manifest'>manifest</span><span class='period'>.</span><span class='id path'>path</span> <span class='op'>=</span> <span class='const'>File</span><span class='period'>.</span><span class='id join'>join</span><span class='lparen'>(</span> <span class='id working_dir'>working_dir</span><span class='period'>.</span><span class='id path'>path</span><span class='comma'>,</span> <span class='id path'>path</span> <span class='rparen'>)</span>
564
- <span class='id manifest'>manifest</span><span class='period'>.</span><span class='id template'>template</span> <span class='op'>=</span> <span class='id template'>template</span>
565
- <span class='id manifest'>manifest</span><span class='period'>.</span><span class='id templates'>templates</span> <span class='op'>=</span> <span class='ivar'>@generator</span><span class='period'>.</span><span class='id template_paths'>template_paths</span>
566
- <span class='id working_dir'>working_dir</span><span class='period'>.</span><span class='id children'>children</span> <span class='op'>&lt;&lt;</span> <span class='id manifest'>manifest</span>
567
- <span class='kw'>end</span></pre>
568
- </td>
569
- </tr>
570
- </table>
571
- </div>
572
-
573
- <div class="method_details ">
574
- <p class="signature " id="generator-instance_method">
575
-
576
- - (<tt>Object</tt>) <strong>generator</strong>(name, options = {})
577
-
578
-
579
-
580
- </p><table class="source_code">
581
- <tr>
582
- <td>
583
- <pre class="lines">
584
-
585
-
586
- 46
587
- 47
588
- 48
589
- 49
590
- 50
591
- 51
592
- 52
593
- 53</pre>
594
- </td>
595
- <td>
596
- <pre class="code"><span class="info file"># File 'lib/sprout/generator/command.rb', line 46</span>
597
-
598
- <span class='kw'>def</span> <span class='id generator'>generator</span> <span class='id name'>name</span><span class='comma'>,</span> <span class='id options'>options</span><span class='op'>=</span><span class='lbrace'>{</span><span class='rbrace'>}</span>
599
- <span class='id raise'>raise</span> <span class='const'>Sprout</span><span class='op'>::</span><span class='const'>Errors</span><span class='op'>::</span><span class='const'>GeneratorError</span><span class='period'>.</span><span class='id new'>new</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Cannot call another generator with nil name</span><span class='tstring_end'>&quot;</span></span> <span class='kw'>if</span> <span class='id name'>name</span><span class='period'>.</span><span class='id nil?'>nil?</span>
600
- <span class='id instance'>instance</span> <span class='op'>=</span> <span class='const'>Sprout</span><span class='op'>::</span><span class='const'>Generator</span><span class='period'>.</span><span class='id create_instance'>create_instance</span> <span class='id name'>name</span><span class='comma'>,</span> <span class='id options'>options</span>
601
- <span class='id instance'>instance</span><span class='period'>.</span><span class='id logger'>logger</span> <span class='op'>=</span> <span class='id logger'>logger</span>
602
- <span class='id instance'>instance</span><span class='period'>.</span><span class='id path'>path</span> <span class='op'>=</span> <span class='id working_dir'>working_dir</span><span class='period'>.</span><span class='id path'>path</span>
603
- <span class='id instance'>instance</span><span class='period'>.</span><span class='id from_hash'>from_hash</span> <span class='id options'>options</span>
604
- <span class='id working_dir'>working_dir</span><span class='period'>.</span><span class='id generators'>generators</span> <span class='op'>&lt;&lt;</span> <span class='id instance'>instance</span>
605
- <span class='kw'>end</span></pre>
606
- </td>
607
- </tr>
608
- </table>
609
- </div>
610
-
611
- <div class="method_details ">
612
- <p class="signature " id="template-instance_method">
613
-
614
- - (<tt>Object</tt>) <strong>template</strong>(path, template = nil)
615
-
616
-
617
-
618
- </p><table class="source_code">
619
- <tr>
620
- <td>
621
- <pre class="lines">
622
-
623
-
624
- 26
625
- 27
626
- 28
627
- 29
628
- 30
629
- 31
630
- 32
631
- 33
632
- 34</pre>
633
- </td>
634
- <td>
635
- <pre class="code"><span class="info file"># File 'lib/sprout/generator/command.rb', line 26</span>
636
-
637
- <span class='kw'>def</span> <span class='id template'>template</span> <span class='id path'>path</span><span class='comma'>,</span> <span class='id template'>template</span><span class='op'>=</span><span class='kw'>nil</span>
638
- <span class='id raise'>raise</span> <span class='const'>Sprout</span><span class='op'>::</span><span class='const'>Errors</span><span class='op'>::</span><span class='const'>GeneratorError</span><span class='period'>.</span><span class='id new'>new</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Cannot create file with nil path</span><span class='tstring_end'>&quot;</span></span> <span class='kw'>if</span> <span class='id path'>path</span><span class='period'>.</span><span class='id nil?'>nil?</span>
639
- <span class='id manifest'>manifest</span> <span class='op'>=</span> <span class='const'>TemplateManifest</span><span class='period'>.</span><span class='id new'>new</span>
640
- <span class='id manifest'>manifest</span><span class='period'>.</span><span class='id generator'>generator</span> <span class='op'>=</span> <span class='ivar'>@generator</span>
641
- <span class='id manifest'>manifest</span><span class='period'>.</span><span class='id path'>path</span> <span class='op'>=</span> <span class='const'>File</span><span class='period'>.</span><span class='id join'>join</span><span class='lparen'>(</span> <span class='id working_dir'>working_dir</span><span class='period'>.</span><span class='id path'>path</span><span class='comma'>,</span> <span class='id path'>path</span> <span class='rparen'>)</span>
642
- <span class='id manifest'>manifest</span><span class='period'>.</span><span class='id template'>template</span> <span class='op'>=</span> <span class='id template'>template</span>
643
- <span class='id manifest'>manifest</span><span class='period'>.</span><span class='id templates'>templates</span> <span class='op'>=</span> <span class='ivar'>@generator</span><span class='period'>.</span><span class='id template_paths'>template_paths</span>
644
- <span class='id working_dir'>working_dir</span><span class='period'>.</span><span class='id children'>children</span> <span class='op'>&lt;&lt;</span> <span class='id manifest'>manifest</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="unexecute-instance_method">
653
-
654
- - (<tt>Object</tt>) <strong>unexecute</strong>
655
-
656
-
657
-
658
- </p><table class="source_code">
659
- <tr>
660
- <td>
661
- <pre class="lines">
662
-
663
-
664
- 67
665
- 68
666
- 69</pre>
667
- </td>
668
- <td>
669
- <pre class="code"><span class="info file"># File 'lib/sprout/generator/command.rb', line 67</span>
670
-
671
- <span class='kw'>def</span> <span class='id unexecute'>unexecute</span>
672
- <span class='id working_dir'>working_dir</span><span class='period'>.</span><span class='id destroy'>destroy</span>
673
- <span class='kw'>end</span></pre>
674
- </td>
675
- </tr>
676
- </table>
677
- </div>
678
-
679
- </div>
680
-
681
- </div>
682
-
683
- <div id="footer">
684
- Generated on Fri Apr 29 18:33:08 2011 by
685
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
686
- 0.6.3 (ruby-1.9.2).
687
- </div>
688
-
689
- </body>
690
- </html>