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.

Files changed (111) hide show
  1. data/VERSION +1 -1
  2. data/doc/Dir.html +313 -0
  3. data/doc/Rake/Task.html +206 -0
  4. data/doc/Sprout.html +778 -0
  5. data/doc/Sprout/ArchiveUnpacker.html +1313 -0
  6. data/doc/Sprout/CommandLine.html +521 -0
  7. data/doc/Sprout/Concern.html +382 -0
  8. data/doc/Sprout/Errors.html +120 -0
  9. data/doc/Sprout/Errors/ArchiveUnpackerError.html +139 -0
  10. data/doc/Sprout/Errors/DestinationExistsError.html +143 -0
  11. data/doc/Sprout/Errors/DuplicateMemberError.html +142 -0
  12. data/doc/Sprout/Errors/ExecutableError.html +139 -0
  13. data/doc/Sprout/Errors/ExecutableRegistrationError.html +142 -0
  14. data/doc/Sprout/Errors/ExecutionError.html +135 -0
  15. data/doc/Sprout/Errors/GeneratorError.html +139 -0
  16. data/doc/Sprout/Errors/InvalidArgumentError.html +142 -0
  17. data/doc/Sprout/Errors/LoadError.html +135 -0
  18. data/doc/Sprout/Errors/MissingArgumentError.html +142 -0
  19. data/doc/Sprout/Errors/MissingExecutableError.html +142 -0
  20. data/doc/Sprout/Errors/MissingGeneratorError.html +142 -0
  21. data/doc/Sprout/Errors/MissingTemplateError.html +142 -0
  22. data/doc/Sprout/Errors/ProcessRunnerError.html +135 -0
  23. data/doc/Sprout/Errors/RemoteFileLoaderError.html +128 -0
  24. data/doc/Sprout/Errors/SproutError.html +132 -0
  25. data/doc/Sprout/Errors/UnknownArchiveType.html +136 -0
  26. data/doc/Sprout/Errors/UsageError.html +135 -0
  27. data/doc/Sprout/Errors/ValidationError.html +135 -0
  28. data/doc/Sprout/Errors/VersionRequirementNotMetError.html +135 -0
  29. data/doc/Sprout/Executable.html +183 -0
  30. data/doc/Sprout/Executable/Base.html +2986 -0
  31. data/doc/Sprout/Executable/Boolean.html +577 -0
  32. data/doc/Sprout/Executable/CollectionParam.html +521 -0
  33. data/doc/Sprout/Executable/FileParam.html +517 -0
  34. data/doc/Sprout/Executable/Files.html +311 -0
  35. data/doc/Sprout/Executable/Number.html +164 -0
  36. data/doc/Sprout/Executable/Param.html +3011 -0
  37. data/doc/Sprout/Executable/ParameterFactory.html +262 -0
  38. data/doc/Sprout/Executable/Path.html +247 -0
  39. data/doc/Sprout/Executable/Paths.html +268 -0
  40. data/doc/Sprout/Executable/Session.html +1587 -0
  41. data/doc/Sprout/Executable/StringParam.html +237 -0
  42. data/doc/Sprout/Executable/Strings.html +186 -0
  43. data/doc/Sprout/Executable/Url.html +180 -0
  44. data/doc/Sprout/Executable/Urls.html +185 -0
  45. data/doc/Sprout/FileTarget.html +1170 -0
  46. data/doc/Sprout/Generator.html +800 -0
  47. data/doc/Sprout/Generator/Base.html +1834 -0
  48. data/doc/Sprout/Generator/Command.html +716 -0
  49. data/doc/Sprout/Generator/DirectoryManifest.html +503 -0
  50. data/doc/Sprout/Generator/FileManifest.html +667 -0
  51. data/doc/Sprout/Generator/Manifest.html +403 -0
  52. data/doc/Sprout/Generator/TemplateManifest.html +213 -0
  53. data/doc/Sprout/GeneratorGenerator.html +990 -0
  54. data/doc/Sprout/Library.html +1259 -0
  55. data/doc/Sprout/LibraryGenerator.html +326 -0
  56. data/doc/Sprout/OutputBuffer.html +461 -0
  57. data/doc/Sprout/Platform.html +758 -0
  58. data/doc/Sprout/ProcessRunner.html +1801 -0
  59. data/doc/Sprout/ProgressBar.html +384 -0
  60. data/doc/Sprout/ProgressBarImpl.html +2151 -0
  61. data/doc/Sprout/ProgressBarManager.html +443 -0
  62. data/doc/Sprout/ProgressBarOutputStream.html +429 -0
  63. data/doc/Sprout/RDocParser.html +228 -0
  64. data/doc/Sprout/RemoteFileLoader.html +191 -0
  65. data/doc/Sprout/RemoteFileTarget.html +710 -0
  66. data/doc/Sprout/ReversedProgressBar.html +200 -0
  67. data/doc/Sprout/RubyFeature.html +176 -0
  68. data/doc/Sprout/RubyFeature/ClassMethods.html +1099 -0
  69. data/doc/Sprout/RubyGenerator.html +712 -0
  70. data/doc/Sprout/Specification.html +838 -0
  71. data/doc/Sprout/System.html +212 -0
  72. data/doc/Sprout/System/BaseSystem.html +1732 -0
  73. data/doc/Sprout/System/JavaSystem.html +137 -0
  74. data/doc/Sprout/System/OSXSystem.html +345 -0
  75. data/doc/Sprout/System/ThreadMock.html +201 -0
  76. data/doc/Sprout/System/UnixSystem.html +610 -0
  77. data/doc/Sprout/System/VistaSystem.html +263 -0
  78. data/doc/Sprout/System/WinNixSystem.html +340 -0
  79. data/doc/Sprout/System/WinSystem.html +590 -0
  80. data/doc/Sprout/TestHelper.html +2280 -0
  81. data/doc/Sprout/ToolGenerator.html +995 -0
  82. data/doc/Sprout/VERSION.html +135 -0
  83. data/doc/String.html +313 -0
  84. data/doc/_index.html +829 -0
  85. data/doc/class_list.html +47 -0
  86. data/doc/css/common.css +1 -0
  87. data/doc/css/full_list.css +55 -0
  88. data/doc/css/style.css +322 -0
  89. data/doc/file.README.html +109 -0
  90. data/doc/file_list.html +49 -0
  91. data/doc/frames.html +13 -0
  92. data/doc/index.html +109 -0
  93. data/doc/js/app.js +205 -0
  94. data/doc/js/full_list.js +173 -0
  95. data/doc/js/jquery.js +16 -0
  96. data/doc/method_list.html +3622 -0
  97. data/doc/top-level-namespace.html +220 -0
  98. data/lib/sprout/generators/generator/generator_generator.rb +3 -3
  99. data/lib/sprout/generators/generator/templates/{generator_class.rb → generator_class.erb} +0 -0
  100. data/lib/sprout/generators/generator/templates/{generator_test.rb → generator_test.erb} +0 -0
  101. data/lib/sprout/generators/generator/templates/{generator_test_helper.rb → generator_test_helper.erb} +0 -0
  102. data/lib/sprout/generators/library/library_generator.rb +1 -1
  103. data/lib/sprout/generators/library/templates/{library.rb → library.erb} +0 -0
  104. data/lib/sprout/generators/ruby/ruby_generator.rb +4 -5
  105. data/lib/sprout/generators/ruby/templates/{ruby_base.rb → ruby_base.erb} +0 -0
  106. data/lib/sprout/generators/ruby/templates/{ruby_input.rb → ruby_input.erb} +0 -0
  107. data/lib/sprout/generators/ruby/templates/{ruby_test_case.rb → ruby_test_case.erb} +0 -0
  108. data/lib/sprout/generators/ruby/templates/{ruby_test_helper.rb → ruby_test_helper.erb} +0 -0
  109. data/lib/sprout/generators/tool/templates/{tool.rb → tool.erb} +0 -2
  110. data/lib/sprout/generators/tool/tool_generator.rb +1 -1
  111. metadata +128 -32
@@ -0,0 +1,1834 @@
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::Generator::Base
8
+
9
+ &mdash; 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 (B)</a> &raquo;
37
+ <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>
38
+ &raquo;
39
+ <span class="title">Base</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::Generator::Base
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="../Executable/Base.html" title="Sprout::Executable::Base (class)">Executable::Base</a></span></span>
70
+
71
+ <ul class="fullTree">
72
+ <li>Object</li>
73
+
74
+ <li class="next"><span class='object_link'><a href="../Executable/Base.html" title="Sprout::Executable::Base (class)">Executable::Base</a></span></li>
75
+
76
+ <li class="next">Sprout::Generator::Base</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/generator/base.rb</dd>
93
+
94
+ </dl>
95
+ <div class="clear"></div>
96
+
97
+ <div id="subclasses">
98
+ <h2>Direct Known Subclasses</h2>
99
+ <p class="children"><span class='object_link'><a href="../GeneratorGenerator.html" title="Sprout::GeneratorGenerator (class)">Sprout::GeneratorGenerator</a></span>, <span class='object_link'><a href="../LibraryGenerator.html" title="Sprout::LibraryGenerator (class)">LibraryGenerator</a></span>, <span class='object_link'><a href="../RubyGenerator.html" title="Sprout::RubyGenerator (class)">RubyGenerator</a></span>, <span class='object_link'><a href="../ToolGenerator.html" title="Sprout::ToolGenerator (class)">ToolGenerator</a></span></p>
100
+ </div>
101
+
102
+ <h2>Constant Summary</h2>
103
+
104
+
105
+
106
+
107
+ <h2>Constant Summary</h2>
108
+
109
+ <h3 class="inherited">Constants included
110
+ from <span class='object_link'><a href="../Executable.html" title="Sprout::Executable (module)">Executable</a></span></h3>
111
+ <p class="inherited"><span class='object_link'><a href="../Executable.html#DEFAULT_FILE_EXPRESSION-constant" title="Sprout::Executable::DEFAULT_FILE_EXPRESSION (constant)">Executable::DEFAULT_FILE_EXPRESSION</a></span>, <span class='object_link'><a href="../Executable.html#DEFAULT_PREFIX-constant" title="Sprout::Executable::DEFAULT_PREFIX (constant)">Executable::DEFAULT_PREFIX</a></span>, <span class='object_link'><a href="../Executable.html#DEFAULT_SHORT_PREFIX-constant" title="Sprout::Executable::DEFAULT_SHORT_PREFIX (constant)">Executable::DEFAULT_SHORT_PREFIX</a></span></p>
112
+
113
+
114
+ <h2>Instance Attribute Summary <small>(<a href="#" class="summary_toggle">collapse</a>)</small></h2>
115
+ <ul class="summary">
116
+
117
+ <li class="public ">
118
+ <span class="summary_signature">
119
+
120
+ <a href="#destroy-instance_method" title="#destroy (instance method)">- (Object) <strong>destroy</strong> </a>
121
+
122
+
123
+
124
+ </span>
125
+
126
+
127
+
128
+
129
+
130
+
131
+
132
+
133
+
134
+
135
+
136
+ <span class="summary_desc"><div class='inline'><p>
137
+ Insteast of creating, destroy the files.
138
+ </p>
139
+ </div></span>
140
+
141
+ </li>
142
+
143
+
144
+ <li class="public ">
145
+ <span class="summary_signature">
146
+
147
+ <a href="#force-instance_method" title="#force (instance method)">- (Object) <strong>force</strong> </a>
148
+
149
+
150
+
151
+ </span>
152
+
153
+
154
+
155
+
156
+
157
+
158
+
159
+
160
+
161
+
162
+
163
+ <span class="summary_desc"><div class='inline'><p>
164
+ Force the creation of files without prompting.
165
+ </p>
166
+ </div></span>
167
+
168
+ </li>
169
+
170
+
171
+ <li class="public ">
172
+ <span class="summary_signature">
173
+
174
+ <a href="#input-instance_method" title="#input (instance method)">- (Object) <strong>input</strong> </a>
175
+
176
+
177
+
178
+ </span>
179
+
180
+
181
+
182
+
183
+
184
+
185
+
186
+
187
+
188
+
189
+
190
+ <span class="summary_desc"><div class='inline'><p>
191
+ The primary input for the application or component.
192
+ </p>
193
+ </div></span>
194
+
195
+ </li>
196
+
197
+
198
+ <li class="public ">
199
+ <span class="summary_signature">
200
+
201
+ <a href="#logger-instance_method" title="#logger (instance method)">- (Object) <strong>logger</strong> </a>
202
+
203
+
204
+
205
+ </span>
206
+
207
+
208
+
209
+
210
+
211
+
212
+
213
+
214
+
215
+
216
+
217
+ <span class="summary_desc"><div class='inline'><p>
218
+ Returns the value of attribute logger.
219
+ </p>
220
+ </div></span>
221
+
222
+ </li>
223
+
224
+
225
+ <li class="public ">
226
+ <span class="summary_signature">
227
+
228
+ <a href="#name-instance_method" title="#name (instance method)">- (Object) <strong>name</strong> </a>
229
+
230
+
231
+
232
+ </span>
233
+
234
+
235
+
236
+
237
+
238
+
239
+
240
+
241
+
242
+
243
+
244
+ <span class="summary_desc"><div class='inline'><p>
245
+ The symbol name for which this generator is most appropriate.
246
+ </p>
247
+ </div></span>
248
+
249
+ </li>
250
+
251
+
252
+ <li class="public ">
253
+ <span class="summary_signature">
254
+
255
+ <a href="#path-instance_method" title="#path (instance method)">- (Object) <strong>path</strong> </a>
256
+
257
+
258
+
259
+ </span>
260
+
261
+
262
+
263
+
264
+
265
+
266
+
267
+
268
+
269
+
270
+
271
+ <span class="summary_desc"><div class='inline'><p>
272
+ The directory where files will be created.
273
+ </p>
274
+ </div></span>
275
+
276
+ </li>
277
+
278
+
279
+ <li class="public ">
280
+ <span class="summary_signature">
281
+
282
+ <a href="#pkg_name-instance_method" title="#pkg_name (instance method)">- (Object) <strong>pkg_name</strong> </a>
283
+
284
+
285
+
286
+ </span>
287
+
288
+
289
+
290
+
291
+
292
+
293
+
294
+
295
+
296
+
297
+
298
+ <span class="summary_desc"><div class='inline'><p>
299
+ Returns the value of attribute pkg_name.
300
+ </p>
301
+ </div></span>
302
+
303
+ </li>
304
+
305
+
306
+ <li class="public ">
307
+ <span class="summary_signature">
308
+
309
+ <a href="#pkg_version-instance_method" title="#pkg_version (instance method)">- (Object) <strong>pkg_version</strong> </a>
310
+
311
+
312
+
313
+ </span>
314
+
315
+
316
+
317
+
318
+
319
+
320
+
321
+
322
+
323
+
324
+
325
+ <span class="summary_desc"><div class='inline'><p>
326
+ Returns the value of attribute pkg_version.
327
+ </p>
328
+ </div></span>
329
+
330
+ </li>
331
+
332
+
333
+ <li class="public ">
334
+ <span class="summary_signature">
335
+
336
+ <a href="#quiet-instance_method" title="#quiet (instance method)">- (Object) <strong>quiet</strong> </a>
337
+
338
+
339
+
340
+ </span>
341
+
342
+
343
+
344
+
345
+
346
+
347
+
348
+
349
+
350
+
351
+
352
+ <span class="summary_desc"><div class='inline'><p>
353
+ Run the generator in Quiet mode - do not write status to standard output.
354
+ </p>
355
+ </div></span>
356
+
357
+ </li>
358
+
359
+
360
+ <li class="public ">
361
+ <span class="summary_signature">
362
+
363
+ <a href="#show_template_paths-instance_method" title="#show_template_paths (instance method)">- (Object) <strong>show_template_paths</strong> </a>
364
+
365
+
366
+
367
+ </span>
368
+
369
+
370
+
371
+
372
+
373
+
374
+
375
+
376
+
377
+
378
+
379
+ <span class="summary_desc"><div class='inline'><p>
380
+ Display the paths this generator will use to look for templates on this
381
+ system and exit.
382
+ </p>
383
+ </div></span>
384
+
385
+ </li>
386
+
387
+
388
+ <li class="public ">
389
+ <span class="summary_signature">
390
+
391
+ <a href="#templates-instance_method" title="#templates (instance method)">- (Object) <strong>templates</strong> </a>
392
+
393
+
394
+
395
+ </span>
396
+
397
+
398
+
399
+
400
+
401
+
402
+
403
+
404
+
405
+
406
+
407
+ <span class="summary_desc"><div class='inline'><p>
408
+ A collection of paths to look in for named templates.
409
+ </p>
410
+ </div></span>
411
+
412
+ </li>
413
+
414
+
415
+ </ul>
416
+
417
+
418
+
419
+
420
+
421
+ <h3 class="inherited">Attributes inherited from <span class='object_link'><a href="../Executable/Base.html" title="Sprout::Executable::Base (class)">Executable::Base</a></span></h3>
422
+ <p class="inherited"><span class='object_link'><a href="../Executable/Base.html#abort_on_failure-instance_method" title="Sprout::Executable::Base#abort_on_failure (method)">#abort_on_failure</a></span>, <span class='object_link'><a href="../Executable/Base.html#default_prefix-instance_method" title="Sprout::Executable::Base#default_prefix (method)">#default_prefix</a></span>, <span class='object_link'><a href="../Executable/Base.html#default_short_prefix-instance_method" title="Sprout::Executable::Base#default_short_prefix (method)">#default_short_prefix</a></span>, <span class='object_link'><a href="../Executable/Base.html#executable-instance_method" title="Sprout::Executable::Base#executable (method)">#executable</a></span>, <span class='object_link'><a href="../Executable/Base.html#param_hash-instance_method" title="Sprout::Executable::Base#param_hash (method)">#param_hash</a></span>, <span class='object_link'><a href="../Executable/Base.html#params-instance_method" title="Sprout::Executable::Base#params (method)">#params</a></span>, <span class='object_link'><a href="../Executable/Base.html#prerequisites-instance_method" title="Sprout::Executable::Base#prerequisites (method)">#prerequisites</a></span>, <span class='object_link'><a href="../Executable/Base.html#rake_task_name-instance_method" title="Sprout::Executable::Base#rake_task_name (method)">#rake_task_name</a></span></p>
423
+
424
+
425
+
426
+ <h2>
427
+ Class Method Summary
428
+ <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
429
+ </h2>
430
+
431
+ <ul class="summary">
432
+
433
+ <li class="public ">
434
+ <span class="summary_signature">
435
+
436
+ <a href="#inherited-class_method" title="inherited (class method)">+ (Object) <strong>inherited</strong>(base) </a>
437
+
438
+
439
+
440
+ </span>
441
+
442
+
443
+
444
+
445
+
446
+
447
+
448
+
449
+ <span class="summary_desc"><div class='inline'></div></span>
450
+
451
+ </li>
452
+
453
+
454
+ </ul>
455
+
456
+ <h2>
457
+ Instance Method Summary
458
+ <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
459
+ </h2>
460
+
461
+ <ul class="summary">
462
+
463
+ <li class="public ">
464
+ <span class="summary_signature">
465
+
466
+ <a href="#create_template_paths-instance_method" title="#create_template_paths (instance method)">- (Object) <strong>create_template_paths</strong> </a>
467
+
468
+
469
+
470
+ </span>
471
+
472
+
473
+
474
+
475
+
476
+
477
+
478
+
479
+ <span class="summary_desc"><div class='inline'></div></span>
480
+
481
+ </li>
482
+
483
+
484
+ <li class="protected ">
485
+ <span class="summary_signature">
486
+
487
+ <a href="#default_search_paths-instance_method" title="#default_search_paths (instance method)">- (Object) <strong>default_search_paths</strong> </a>
488
+
489
+
490
+
491
+ </span>
492
+
493
+
494
+ <span class="note title protected">protected</span>
495
+
496
+
497
+
498
+
499
+
500
+ <span class="summary_desc"><div class='inline'></div></span>
501
+
502
+ </li>
503
+
504
+
505
+ <li class="protected ">
506
+ <span class="summary_signature">
507
+
508
+ <a href="#directory-instance_method" title="#directory (instance method)">- (Object) <strong>directory</strong>(name, &amp;block) </a>
509
+
510
+
511
+
512
+ </span>
513
+
514
+
515
+ <span class="note title protected">protected</span>
516
+
517
+
518
+
519
+
520
+
521
+ <span class="summary_desc"><div class='inline'></div></span>
522
+
523
+ </li>
524
+
525
+
526
+ <li class="protected ">
527
+ <span class="summary_signature">
528
+
529
+ <a href="#do_show_template_paths-instance_method" title="#do_show_template_paths (instance method)">- (Object) <strong>do_show_template_paths</strong> </a>
530
+
531
+
532
+
533
+ </span>
534
+
535
+
536
+ <span class="note title protected">protected</span>
537
+
538
+
539
+
540
+
541
+
542
+ <span class="summary_desc"><div class='inline'></div></span>
543
+
544
+ </li>
545
+
546
+
547
+ <li class="public ">
548
+ <span class="summary_signature">
549
+
550
+ <a href="#execute-instance_method" title="#execute (instance method)">- (Object) <strong>execute</strong> </a>
551
+
552
+
553
+
554
+ </span>
555
+
556
+
557
+
558
+
559
+
560
+
561
+
562
+
563
+ <span class="summary_desc"><div class='inline'><p>
564
+ Record the actions and trigger them.
565
+ </p>
566
+ </div></span>
567
+
568
+ </li>
569
+
570
+
571
+ <li class="protected ">
572
+ <span class="summary_signature">
573
+
574
+ <a href="#file-instance_method" title="#file (instance method)">- (Object) <strong>file</strong>(name, template = nil) </a>
575
+
576
+
577
+
578
+ </span>
579
+
580
+
581
+ <span class="note title protected">protected</span>
582
+
583
+
584
+
585
+
586
+
587
+ <span class="summary_desc"><div class='inline'></div></span>
588
+
589
+ </li>
590
+
591
+
592
+ <li class="protected ">
593
+ <span class="summary_signature">
594
+
595
+ <a href="#generator-instance_method" title="#generator (instance method)">- (Object) <strong>generator</strong>(name, options = {}) </a>
596
+
597
+
598
+
599
+ </span>
600
+
601
+
602
+ <span class="note title protected">protected</span>
603
+
604
+
605
+
606
+
607
+
608
+ <span class="summary_desc"><div class='inline'></div></span>
609
+
610
+ </li>
611
+
612
+
613
+ <li class="protected ">
614
+ <span class="summary_signature">
615
+
616
+ <a href="#prepare_command-instance_method" title="#prepare_command (instance method)">- (Object) <strong>prepare_command</strong> </a>
617
+
618
+
619
+
620
+ </span>
621
+
622
+
623
+ <span class="note title protected">protected</span>
624
+
625
+
626
+
627
+
628
+
629
+ <span class="summary_desc"><div class='inline'></div></span>
630
+
631
+ </li>
632
+
633
+
634
+ <li class="public ">
635
+ <span class="summary_signature">
636
+
637
+ <a href="#resolve_template-instance_method" title="#resolve_template (instance method)">- (Object) <strong>resolve_template</strong>(content) </a>
638
+
639
+
640
+
641
+ </span>
642
+
643
+
644
+
645
+
646
+
647
+
648
+
649
+
650
+ <span class="summary_desc"><div class='inline'><p>
651
+ TODO: Add support for arbitrary templating languages.
652
+ </p>
653
+ </div></span>
654
+
655
+ </li>
656
+
657
+
658
+ <li class="public ">
659
+ <span class="summary_signature">
660
+
661
+ <a href="#say-instance_method" title="#say (instance method)">- (Object) <strong>say</strong>(message) </a>
662
+
663
+
664
+
665
+ </span>
666
+
667
+
668
+
669
+
670
+
671
+
672
+
673
+
674
+ <span class="summary_desc"><div class='inline'></div></span>
675
+
676
+ </li>
677
+
678
+
679
+ <li class="protected ">
680
+ <span class="summary_signature">
681
+
682
+ <a href="#template-instance_method" title="#template (instance method)">- (Object) <strong>template</strong>(name, template = nil) </a>
683
+
684
+
685
+
686
+ </span>
687
+
688
+
689
+ <span class="note title protected">protected</span>
690
+
691
+
692
+
693
+
694
+
695
+ <span class="summary_desc"><div class='inline'></div></span>
696
+
697
+ </li>
698
+
699
+
700
+ <li class="public ">
701
+ <span class="summary_signature">
702
+
703
+ <a href="#template_paths-instance_method" title="#template_paths (instance method)">- (Object) <strong>template_paths</strong> </a>
704
+
705
+
706
+
707
+ </span>
708
+
709
+
710
+
711
+
712
+
713
+
714
+
715
+
716
+ <span class="summary_desc"><div class='inline'><p>
717
+ Returns a collection of templates that were provided on the command line,
718
+ followed by templates that are created by a concrete generator, followed
719
+ by the Sprout::Generator.search_paths + &#8216;templates&#8217; folders.
720
+ </p>
721
+ </div></span>
722
+
723
+ </li>
724
+
725
+
726
+ <li class="public ">
727
+ <span class="summary_signature">
728
+
729
+ <a href="#unexecute-instance_method" title="#unexecute (instance method)">- (Object) <strong>unexecute</strong> </a>
730
+
731
+
732
+
733
+ </span>
734
+
735
+
736
+
737
+
738
+
739
+
740
+
741
+
742
+ <span class="summary_desc"><div class='inline'><p>
743
+ Rollback the generator.
744
+ </p>
745
+ </div></span>
746
+
747
+ </li>
748
+
749
+
750
+ <li class="public ">
751
+ <span class="summary_signature">
752
+
753
+ <a href="#validate-instance_method" title="#validate (instance method)">- (Object) <strong>validate</strong> </a>
754
+
755
+
756
+
757
+ </span>
758
+
759
+
760
+
761
+
762
+
763
+
764
+
765
+
766
+ <span class="summary_desc"><div class='inline'></div></span>
767
+
768
+ </li>
769
+
770
+
771
+ </ul>
772
+
773
+
774
+
775
+
776
+
777
+
778
+
779
+
780
+
781
+
782
+ <h3 class="inherited">Methods inherited from <span class='object_link'><a href="../Executable/Base.html" title="Sprout::Executable::Base (class)">Executable::Base</a></span></h3>
783
+ <p class="inherited"><span class='object_link'><a href="../Executable/Base.html#add_param-class_method" title="Sprout::Executable::Base.add_param (method)">add_param</a></span>, <span class='object_link'><a href="../Executable/Base.html#add_param_alias-class_method" title="Sprout::Executable::Base.add_param_alias (method)">add_param_alias</a></span>, <span class='object_link'><a href="../Executable/Base.html#binary_path-instance_method" title="Sprout::Executable::Base#binary_path (method)">#binary_path</a></span>, <span class='object_link'><a href="../Executable/Base.html#binary_path%3D-instance_method" title="Sprout::Executable::Base#binary_path= (method)">#binary_path=</a></span>, <span class='object_link'><a href="../Executable/Base.html#create_outer_task-instance_method" title="Sprout::Executable::Base#create_outer_task (method)">#create_outer_task</a></span>, <span class='object_link'><a href="../Executable/Base.html#default_file_expression-instance_method" title="Sprout::Executable::Base#default_file_expression (method)">#default_file_expression</a></span>, <span class='object_link'><a href="../Executable/Base.html#execute_delegate-instance_method" title="Sprout::Executable::Base#execute_delegate (method)">#execute_delegate</a></span>, <span class='object_link'><a href="../Executable/Base.html#from_hash-instance_method" title="Sprout::Executable::Base#from_hash (method)">#from_hash</a></span>, <span class='object_link'><a href="../Executable/Base.html#initialize-instance_method" title="Sprout::Executable::Base#initialize (method)">#initialize</a></span>, <span class='object_link'><a href="../Executable/Base.html#initialize_defaults-instance_method" title="Sprout::Executable::Base#initialize_defaults (method)">#initialize_defaults</a></span>, <span class='object_link'><a href="../Executable/Base.html#library_added-instance_method" title="Sprout::Executable::Base#library_added (method)">#library_added</a></span>, <span class='object_link'><a href="../Executable/Base.html#parse%21-instance_method" title="Sprout::Executable::Base#parse! (method)">#parse!</a></span>, <span class='object_link'><a href="../Executable/Base.html#parse_extra_options%21-instance_method" title="Sprout::Executable::Base#parse_extra_options! (method)">#parse_extra_options!</a></span>, <span class='object_link'><a href="../Executable/Base.html#parse_rake_task_arg-instance_method" title="Sprout::Executable::Base#parse_rake_task_arg (method)">#parse_rake_task_arg</a></span>, <span class='object_link'><a href="../Executable/Base.html#prepare-instance_method" title="Sprout::Executable::Base#prepare (method)">#prepare</a></span>, <span class='object_link'><a href="../Executable/Base.html#set-class_method" title="Sprout::Executable::Base.set (method)">set</a></span>, <span class='object_link'><a href="../Executable/Base.html#static_default_value_collection-class_method" title="Sprout::Executable::Base.static_default_value_collection (method)">static_default_value_collection</a></span>, <span class='object_link'><a href="../Executable/Base.html#static_parameter_collection-class_method" title="Sprout::Executable::Base.static_parameter_collection (method)">static_parameter_collection</a></span>, <span class='object_link'><a href="../Executable/Base.html#stderr-instance_method" title="Sprout::Executable::Base#stderr (method)">#stderr</a></span>, <span class='object_link'><a href="../Executable/Base.html#stderr%3D-instance_method" title="Sprout::Executable::Base#stderr= (method)">#stderr=</a></span>, <span class='object_link'><a href="../Executable/Base.html#stdout-instance_method" title="Sprout::Executable::Base#stdout (method)">#stdout</a></span>, <span class='object_link'><a href="../Executable/Base.html#stdout%3D-instance_method" title="Sprout::Executable::Base#stdout= (method)">#stdout=</a></span>, <span class='object_link'><a href="../Executable/Base.html#system_execute-instance_method" title="Sprout::Executable::Base#system_execute (method)">#system_execute</a></span>, <span class='object_link'><a href="../Executable/Base.html#to_hash-instance_method" title="Sprout::Executable::Base#to_hash (method)">#to_hash</a></span>, <span class='object_link'><a href="../Executable/Base.html#to_help-instance_method" title="Sprout::Executable::Base#to_help (method)">#to_help</a></span>, <span class='object_link'><a href="../Executable/Base.html#to_rake-instance_method" title="Sprout::Executable::Base#to_rake (method)">#to_rake</a></span>, <span class='object_link'><a href="../Executable/Base.html#to_shell-instance_method" title="Sprout::Executable::Base#to_shell (method)">#to_shell</a></span>, <span class='object_link'><a href="../Executable/Base.html#update_rake_task_name_from_args-instance_method" title="Sprout::Executable::Base#update_rake_task_name_from_args (method)">#update_rake_task_name_from_args</a></span></p>
784
+
785
+
786
+
787
+
788
+
789
+
790
+
791
+
792
+
793
+
794
+
795
+
796
+
797
+
798
+
799
+
800
+
801
+
802
+ <h3 class="inherited">Methods included from <span class='object_link'><a href="../Concern.html" title="Sprout::Concern (module)">Concern</a></span></h3>
803
+ <p class="inherited"><span class='object_link'><a href="../Concern.html#append_features-instance_method" title="Sprout::Concern#append_features (method)">#append_features</a></span>, <span class='object_link'><a href="../Concern.html#extended-class_method" title="Sprout::Concern.extended (method)">extended</a></span>, <span class='object_link'><a href="../Concern.html#included-instance_method" title="Sprout::Concern#included (method)">#included</a></span></p>
804
+ <div id="constructor_details" class="method_details_list">
805
+ <h2>Constructor Details</h2>
806
+
807
+ <p class="notice">This class inherits a constructor from <span class='object_link'><a href="../Executable/Base.html#initialize-instance_method" title="Sprout::Executable::Base#initialize (method)">Sprout::Executable::Base</a></span></p>
808
+
809
+ </div>
810
+
811
+ <div id="instance_attr_details" class="attr_details">
812
+ <h2>Instance Attribute Details</h2>
813
+
814
+
815
+ <span id="destroy=-instance_method"></span>
816
+ <span id="destroy-instance_method"></span>
817
+ <div class="method_details first">
818
+ <p class="signature first" id="destroy-instance_method">
819
+
820
+ - (<tt>Object</tt>) <strong>destroy</strong>
821
+
822
+
823
+
824
+ </p><div class="docstring">
825
+ <div class="discussion">
826
+ <p>
827
+ Insteast of creating, destroy the files.
828
+ </p>
829
+
830
+
831
+ </div>
832
+ </div>
833
+ <div class="tags">
834
+
835
+
836
+ </div><table class="source_code">
837
+ <tr>
838
+ <td>
839
+ <pre class="lines">
840
+
841
+
842
+ 22</pre>
843
+ </td>
844
+ <td>
845
+ <pre class="code"><span class="info file"># File 'lib/sprout/generator/base.rb', line 22</span>
846
+
847
+ <span class='id identifier rubyid_add_param'>add_param</span> <span class='symbol'>:destroy</span><span class='comma'>,</span> <span class='const'>Boolean</span></pre>
848
+ </td>
849
+ </tr>
850
+ </table>
851
+ </div>
852
+
853
+
854
+ <span id="force=-instance_method"></span>
855
+ <span id="force-instance_method"></span>
856
+ <div class="method_details ">
857
+ <p class="signature " id="force-instance_method">
858
+
859
+ - (<tt>Object</tt>) <strong>force</strong>
860
+
861
+
862
+
863
+ </p><div class="docstring">
864
+ <div class="discussion">
865
+ <p>
866
+ Force the creation of files without prompting.
867
+ </p>
868
+
869
+
870
+ </div>
871
+ </div>
872
+ <div class="tags">
873
+
874
+
875
+ </div><table class="source_code">
876
+ <tr>
877
+ <td>
878
+ <pre class="lines">
879
+
880
+
881
+ 26</pre>
882
+ </td>
883
+ <td>
884
+ <pre class="code"><span class="info file"># File 'lib/sprout/generator/base.rb', line 26</span>
885
+
886
+ <span class='id identifier rubyid_add_param'>add_param</span> <span class='symbol'>:force</span><span class='comma'>,</span> <span class='const'>Boolean</span></pre>
887
+ </td>
888
+ </tr>
889
+ </table>
890
+ </div>
891
+
892
+
893
+ <span id="input=-instance_method"></span>
894
+ <span id="input-instance_method"></span>
895
+ <div class="method_details ">
896
+ <p class="signature " id="input-instance_method">
897
+
898
+ - (<tt>Object</tt>) <strong>input</strong>
899
+
900
+
901
+
902
+ </p><div class="docstring">
903
+ <div class="discussion">
904
+ <p>
905
+ The primary input for the application or component.
906
+ </p>
907
+
908
+
909
+ </div>
910
+ </div>
911
+ <div class="tags">
912
+
913
+
914
+ </div><table class="source_code">
915
+ <tr>
916
+ <td>
917
+ <pre class="lines">
918
+
919
+
920
+ 44</pre>
921
+ </td>
922
+ <td>
923
+ <pre class="code"><span class="info file"># File 'lib/sprout/generator/base.rb', line 44</span>
924
+
925
+ <span class='id identifier rubyid_add_param'>add_param</span> <span class='symbol'>:input</span><span class='comma'>,</span> <span class='const'>String</span><span class='comma'>,</span> <span class='lbrace'>{</span> <span class='symbol'>:hidden_name</span> <span class='op'>=&gt;</span> <span class='kw'>true</span><span class='comma'>,</span> <span class='symbol'>:required</span> <span class='op'>=&gt;</span> <span class='kw'>true</span> <span class='rbrace'>}</span></pre>
926
+ </td>
927
+ </tr>
928
+ </table>
929
+ </div>
930
+
931
+
932
+ <span id="logger=-instance_method"></span>
933
+ <span id="logger-instance_method"></span>
934
+ <div class="method_details ">
935
+ <p class="signature " id="logger-instance_method">
936
+
937
+ - (<tt>Object</tt>) <strong>logger</strong>
938
+
939
+
940
+
941
+ </p><div class="docstring">
942
+ <div class="discussion">
943
+ <p>
944
+ Returns the value of attribute logger
945
+ </p>
946
+
947
+
948
+ </div>
949
+ </div>
950
+ <div class="tags">
951
+
952
+
953
+ </div><table class="source_code">
954
+ <tr>
955
+ <td>
956
+ <pre class="lines">
957
+
958
+
959
+ 73
960
+ 74
961
+ 75</pre>
962
+ </td>
963
+ <td>
964
+ <pre class="code"><span class="info file"># File 'lib/sprout/generator/base.rb', line 73</span>
965
+
966
+ <span class='kw'>def</span> <span class='id identifier rubyid_logger'>logger</span>
967
+ <span class='ivar'>@logger</span>
968
+ <span class='kw'>end</span></pre>
969
+ </td>
970
+ </tr>
971
+ </table>
972
+ </div>
973
+
974
+
975
+ <span id="name=-instance_method"></span>
976
+ <span id="name-instance_method"></span>
977
+ <div class="method_details ">
978
+ <p class="signature " id="name-instance_method">
979
+
980
+ - (<tt>Object</tt>) <strong>name</strong>
981
+
982
+
983
+
984
+ </p><div class="docstring">
985
+ <div class="discussion">
986
+ <p>
987
+ The symbol name for which this generator is most appropriate.
988
+ </p>
989
+ <p>
990
+ This value defaults to :application so, if you&#8217;re working on an
991
+ application generator, you can leave it as the default.
992
+ </p>
993
+ <p>
994
+ For all other generator types, you&#8217;ll want to select the most general
995
+ project type that this generator may be useful in.
996
+ </p>
997
+ <p>
998
+ Following are some example values:
999
+ </p>
1000
+ <pre class="code ruby"><code>
1001
+ :as3, :flex3, :flex4, :air2
1002
+ </code></pre>
1003
+ <p>
1004
+ or core libraries:
1005
+ </p>
1006
+ <pre class="code ruby"><code>
1007
+ :asunit4, :flexunit4
1008
+ </code></pre>
1009
+ <p>
1010
+ or even other libraries:
1011
+ </p>
1012
+ <pre class="code ruby"><code>
1013
+ :puremvc, :robotlegs, :swizz</code></pre>
1014
+
1015
+
1016
+ </div>
1017
+ </div>
1018
+ <div class="tags">
1019
+
1020
+
1021
+ </div><table class="source_code">
1022
+ <tr>
1023
+ <td>
1024
+ <pre class="lines">
1025
+
1026
+
1027
+ 48</pre>
1028
+ </td>
1029
+ <td>
1030
+ <pre class="code"><span class="info file"># File 'lib/sprout/generator/base.rb', line 48</span>
1031
+
1032
+ <span class='id identifier rubyid_set'>set</span> <span class='symbol'>:name</span><span class='comma'>,</span> <span class='symbol'>:application</span></pre>
1033
+ </td>
1034
+ </tr>
1035
+ </table>
1036
+ </div>
1037
+
1038
+
1039
+ <span id="path=-instance_method"></span>
1040
+ <span id="path-instance_method"></span>
1041
+ <div class="method_details ">
1042
+ <p class="signature " id="path-instance_method">
1043
+
1044
+ - (<tt>Object</tt>) <strong>path</strong>
1045
+
1046
+
1047
+
1048
+ </p><div class="docstring">
1049
+ <div class="discussion">
1050
+ <p>
1051
+ The directory where files will be created.
1052
+ </p>
1053
+
1054
+
1055
+ </div>
1056
+ </div>
1057
+ <div class="tags">
1058
+
1059
+
1060
+ </div><table class="source_code">
1061
+ <tr>
1062
+ <td>
1063
+ <pre class="lines">
1064
+
1065
+
1066
+ 18</pre>
1067
+ </td>
1068
+ <td>
1069
+ <pre class="code"><span class="info file"># File 'lib/sprout/generator/base.rb', line 18</span>
1070
+
1071
+ <span class='id identifier rubyid_add_param'>add_param</span> <span class='symbol'>:path</span><span class='comma'>,</span> <span class='const'>Path</span><span class='comma'>,</span> <span class='lbrace'>{</span> <span class='symbol'>:default</span> <span class='op'>=&gt;</span> <span class='const'>Dir</span><span class='period'>.</span><span class='id identifier rubyid_pwd'>pwd</span> <span class='rbrace'>}</span></pre>
1072
+ </td>
1073
+ </tr>
1074
+ </table>
1075
+ </div>
1076
+
1077
+
1078
+ <span id="pkg_name=-instance_method"></span>
1079
+ <span id="pkg_name-instance_method"></span>
1080
+ <div class="method_details ">
1081
+ <p class="signature " id="pkg_name-instance_method">
1082
+
1083
+ - (<tt>Object</tt>) <strong>pkg_name</strong>
1084
+
1085
+
1086
+
1087
+ </p><div class="docstring">
1088
+ <div class="discussion">
1089
+ <p>
1090
+ Returns the value of attribute pkg_name
1091
+ </p>
1092
+
1093
+
1094
+ </div>
1095
+ </div>
1096
+ <div class="tags">
1097
+
1098
+
1099
+ </div><table class="source_code">
1100
+ <tr>
1101
+ <td>
1102
+ <pre class="lines">
1103
+
1104
+
1105
+ 74
1106
+ 75
1107
+ 76</pre>
1108
+ </td>
1109
+ <td>
1110
+ <pre class="code"><span class="info file"># File 'lib/sprout/generator/base.rb', line 74</span>
1111
+
1112
+ <span class='kw'>def</span> <span class='id identifier rubyid_pkg_name'>pkg_name</span>
1113
+ <span class='ivar'>@pkg_name</span>
1114
+ <span class='kw'>end</span></pre>
1115
+ </td>
1116
+ </tr>
1117
+ </table>
1118
+ </div>
1119
+
1120
+
1121
+ <span id="pkg_version=-instance_method"></span>
1122
+ <span id="pkg_version-instance_method"></span>
1123
+ <div class="method_details ">
1124
+ <p class="signature " id="pkg_version-instance_method">
1125
+
1126
+ - (<tt>Object</tt>) <strong>pkg_version</strong>
1127
+
1128
+
1129
+
1130
+ </p><div class="docstring">
1131
+ <div class="discussion">
1132
+ <p>
1133
+ Returns the value of attribute pkg_version
1134
+ </p>
1135
+
1136
+
1137
+ </div>
1138
+ </div>
1139
+ <div class="tags">
1140
+
1141
+
1142
+ </div><table class="source_code">
1143
+ <tr>
1144
+ <td>
1145
+ <pre class="lines">
1146
+
1147
+
1148
+ 75
1149
+ 76
1150
+ 77</pre>
1151
+ </td>
1152
+ <td>
1153
+ <pre class="code"><span class="info file"># File 'lib/sprout/generator/base.rb', line 75</span>
1154
+
1155
+ <span class='kw'>def</span> <span class='id identifier rubyid_pkg_version'>pkg_version</span>
1156
+ <span class='ivar'>@pkg_version</span>
1157
+ <span class='kw'>end</span></pre>
1158
+ </td>
1159
+ </tr>
1160
+ </table>
1161
+ </div>
1162
+
1163
+
1164
+ <span id="quiet=-instance_method"></span>
1165
+ <span id="quiet-instance_method"></span>
1166
+ <div class="method_details ">
1167
+ <p class="signature " id="quiet-instance_method">
1168
+
1169
+ - (<tt>Object</tt>) <strong>quiet</strong>
1170
+
1171
+
1172
+
1173
+ </p><div class="docstring">
1174
+ <div class="discussion">
1175
+ <p>
1176
+ Run the generator in Quiet mode - do not write status to standard output.
1177
+ </p>
1178
+
1179
+
1180
+ </div>
1181
+ </div>
1182
+ <div class="tags">
1183
+
1184
+
1185
+ </div><table class="source_code">
1186
+ <tr>
1187
+ <td>
1188
+ <pre class="lines">
1189
+
1190
+
1191
+ 31</pre>
1192
+ </td>
1193
+ <td>
1194
+ <pre class="code"><span class="info file"># File 'lib/sprout/generator/base.rb', line 31</span>
1195
+
1196
+ <span class='id identifier rubyid_add_param'>add_param</span> <span class='symbol'>:quiet</span><span class='comma'>,</span> <span class='const'>Boolean</span></pre>
1197
+ </td>
1198
+ </tr>
1199
+ </table>
1200
+ </div>
1201
+
1202
+
1203
+ <span id="show_template_paths=-instance_method"></span>
1204
+ <span id="show_template_paths-instance_method"></span>
1205
+ <div class="method_details ">
1206
+ <p class="signature " id="show_template_paths-instance_method">
1207
+
1208
+ - (<tt>Object</tt>) <strong>show_template_paths</strong>
1209
+
1210
+
1211
+
1212
+ </p><div class="docstring">
1213
+ <div class="discussion">
1214
+ <p>
1215
+ Display the paths this generator will use to look for templates on this
1216
+ system and exit.
1217
+ </p>
1218
+
1219
+
1220
+ </div>
1221
+ </div>
1222
+ <div class="tags">
1223
+
1224
+
1225
+ </div><table class="source_code">
1226
+ <tr>
1227
+ <td>
1228
+ <pre class="lines">
1229
+
1230
+
1231
+ 36</pre>
1232
+ </td>
1233
+ <td>
1234
+ <pre class="code"><span class="info file"># File 'lib/sprout/generator/base.rb', line 36</span>
1235
+
1236
+ <span class='id identifier rubyid_add_param'>add_param</span> <span class='symbol'>:show_template_paths</span><span class='comma'>,</span> <span class='const'>Boolean</span></pre>
1237
+ </td>
1238
+ </tr>
1239
+ </table>
1240
+ </div>
1241
+
1242
+
1243
+ <span id="templates=-instance_method"></span>
1244
+ <span id="templates-instance_method"></span>
1245
+ <div class="method_details ">
1246
+ <p class="signature " id="templates-instance_method">
1247
+
1248
+ - (<tt>Object</tt>) <strong>templates</strong>
1249
+
1250
+
1251
+
1252
+ </p><div class="docstring">
1253
+ <div class="discussion">
1254
+ <p>
1255
+ A collection of paths to look in for named templates.
1256
+ </p>
1257
+
1258
+
1259
+ </div>
1260
+ </div>
1261
+ <div class="tags">
1262
+
1263
+
1264
+ </div><table class="source_code">
1265
+ <tr>
1266
+ <td>
1267
+ <pre class="lines">
1268
+
1269
+
1270
+ 40</pre>
1271
+ </td>
1272
+ <td>
1273
+ <pre class="code"><span class="info file"># File 'lib/sprout/generator/base.rb', line 40</span>
1274
+
1275
+ <span class='id identifier rubyid_add_param'>add_param</span> <span class='symbol'>:templates</span><span class='comma'>,</span> <span class='const'>Paths</span></pre>
1276
+ </td>
1277
+ </tr>
1278
+ </table>
1279
+ </div>
1280
+
1281
+ </div>
1282
+
1283
+
1284
+ <div id="class_method_details" class="method_details_list">
1285
+ <h2>Class Method Details</h2>
1286
+
1287
+
1288
+ <div class="method_details first">
1289
+ <p class="signature first" id="inherited-class_method">
1290
+
1291
+ + (<tt>Object</tt>) <strong>inherited</strong>(base)
1292
+
1293
+
1294
+
1295
+ </p><table class="source_code">
1296
+ <tr>
1297
+ <td>
1298
+ <pre class="lines">
1299
+
1300
+
1301
+ 6
1302
+ 7
1303
+ 8
1304
+ 9
1305
+ 10
1306
+ 11
1307
+ 12
1308
+ 13
1309
+ 14</pre>
1310
+ </td>
1311
+ <td>
1312
+ <pre class="code"><span class="info file"># File 'lib/sprout/generator/base.rb', line 6</span>
1313
+
1314
+ <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_inherited'>inherited</span> <span class='id identifier rubyid_base'>base</span>
1315
+ <span class='comment'># NOTE: We can NOT instantiate the class here,
1316
+ </span> <span class='comment'># because only it's first line has been interpreted, if we
1317
+ </span> <span class='comment'># instantiate here, none of the code declared in the class body will
1318
+ </span> <span class='comment'># be associated with this instance.
1319
+ </span> <span class='comment'>#
1320
+ </span> <span class='comment'># Go ahead and register the class and update instances later...
1321
+ </span> <span class='const'>Sprout</span><span class='op'>::</span><span class='const'>Generator</span><span class='period'>.</span><span class='id identifier rubyid_register'>register</span> <span class='id identifier rubyid_base'>base</span><span class='comma'>,</span> <span class='id identifier rubyid_template_from_caller'>template_from_caller</span><span class='lparen'>(</span><span class='id identifier rubyid_caller'>caller</span><span class='period'>.</span><span class='id identifier rubyid_first'>first</span><span class='rparen'>)</span>
1322
+ <span class='kw'>end</span></pre>
1323
+ </td>
1324
+ </tr>
1325
+ </table>
1326
+ </div>
1327
+
1328
+ </div>
1329
+
1330
+ <div id="instance_method_details" class="method_details_list">
1331
+ <h2>Instance Method Details</h2>
1332
+
1333
+
1334
+ <div class="method_details first">
1335
+ <p class="signature first" id="create_template_paths-instance_method">
1336
+
1337
+ - (<tt>Object</tt>) <strong>create_template_paths</strong>
1338
+
1339
+
1340
+
1341
+ </p><table class="source_code">
1342
+ <tr>
1343
+ <td>
1344
+ <pre class="lines">
1345
+
1346
+
1347
+ 122
1348
+ 123
1349
+ 124
1350
+ 125
1351
+ 126</pre>
1352
+ </td>
1353
+ <td>
1354
+ <pre class="code"><span class="info file"># File 'lib/sprout/generator/base.rb', line 122</span>
1355
+
1356
+ <span class='kw'>def</span> <span class='id identifier rubyid_create_template_paths'>create_template_paths</span>
1357
+ <span class='id identifier rubyid_paths'>paths</span> <span class='op'>=</span> <span class='id identifier rubyid_templates'>templates</span><span class='period'>.</span><span class='id identifier rubyid_dup'>dup</span>
1358
+ <span class='id identifier rubyid_paths'>paths</span> <span class='op'>=</span> <span class='id identifier rubyid_paths'>paths</span><span class='period'>.</span><span class='id identifier rubyid_concat'>concat</span> <span class='const'>Sprout</span><span class='op'>::</span><span class='const'>Generator</span><span class='period'>.</span><span class='id identifier rubyid_search_paths'>search_paths</span>
1359
+ <span class='id identifier rubyid_paths'>paths</span> <span class='op'>&lt;&lt;</span> <span class='const'>Sprout</span><span class='op'>::</span><span class='const'>Generator</span><span class='op'>::</span><span class='id identifier rubyid_template_folder_for'>template_folder_for</span><span class='lparen'>(</span><span class='kw'>self</span><span class='rparen'>)</span>
1360
+ <span class='kw'>end</span></pre>
1361
+ </td>
1362
+ </tr>
1363
+ </table>
1364
+ </div>
1365
+
1366
+ <div class="method_details ">
1367
+ <p class="signature " id="default_search_paths-instance_method">
1368
+
1369
+ - (<tt>Object</tt>) <strong>default_search_paths</strong> <span class="extras">(protected)</span>
1370
+
1371
+
1372
+
1373
+ </p><table class="source_code">
1374
+ <tr>
1375
+ <td>
1376
+ <pre class="lines">
1377
+
1378
+
1379
+ 145
1380
+ 146
1381
+ 147</pre>
1382
+ </td>
1383
+ <td>
1384
+ <pre class="code"><span class="info file"># File 'lib/sprout/generator/base.rb', line 145</span>
1385
+
1386
+ <span class='kw'>def</span> <span class='id identifier rubyid_default_search_paths'>default_search_paths</span>
1387
+ <span class='const'>Sprout</span><span class='op'>::</span><span class='const'>Generator</span><span class='period'>.</span><span class='id identifier rubyid_search_paths'>search_paths</span><span class='period'>.</span><span class='id identifier rubyid_collect'>collect</span> <span class='lbrace'>{</span> <span class='op'>|</span><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_join'>join</span><span class='lparen'>(</span><span class='id identifier rubyid_path'>path</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>templates</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span> <span class='rbrace'>}</span>
1388
+ <span class='kw'>end</span></pre>
1389
+ </td>
1390
+ </tr>
1391
+ </table>
1392
+ </div>
1393
+
1394
+ <div class="method_details ">
1395
+ <p class="signature " id="directory-instance_method">
1396
+
1397
+ - (<tt>Object</tt>) <strong>directory</strong>(name, &amp;block) <span class="extras">(protected)</span>
1398
+
1399
+
1400
+
1401
+ </p><table class="source_code">
1402
+ <tr>
1403
+ <td>
1404
+ <pre class="lines">
1405
+
1406
+
1407
+ 157
1408
+ 158
1409
+ 159</pre>
1410
+ </td>
1411
+ <td>
1412
+ <pre class="code"><span class="info file"># File 'lib/sprout/generator/base.rb', line 157</span>
1413
+
1414
+ <span class='kw'>def</span> <span class='id identifier rubyid_directory'>directory</span> <span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='op'>&amp;</span><span class='id identifier rubyid_block'>block</span>
1415
+ <span class='ivar'>@command</span><span class='period'>.</span><span class='id identifier rubyid_directory'>directory</span> <span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='op'>&amp;</span><span class='id identifier rubyid_block'>block</span>
1416
+ <span class='kw'>end</span></pre>
1417
+ </td>
1418
+ </tr>
1419
+ </table>
1420
+ </div>
1421
+
1422
+ <div class="method_details ">
1423
+ <p class="signature " id="do_show_template_paths-instance_method">
1424
+
1425
+ - (<tt>Object</tt>) <strong>do_show_template_paths</strong> <span class="extras">(protected)</span>
1426
+
1427
+
1428
+
1429
+ </p><table class="source_code">
1430
+ <tr>
1431
+ <td>
1432
+ <pre class="lines">
1433
+
1434
+
1435
+ 130
1436
+ 131
1437
+ 132
1438
+ 133
1439
+ 134
1440
+ 135
1441
+ 136
1442
+ 137
1443
+ 138
1444
+ 139
1445
+ 140
1446
+ 141
1447
+ 142
1448
+ 143</pre>
1449
+ </td>
1450
+ <td>
1451
+ <pre class="code"><span class="info file"># File 'lib/sprout/generator/base.rb', line 130</span>
1452
+
1453
+ <span class='kw'>def</span> <span class='id identifier rubyid_do_show_template_paths'>do_show_template_paths</span>
1454
+ <span class='ivar'>@logger</span> <span class='op'>||=</span> <span class='gvar'>$stdout</span>
1455
+ <span class='id identifier rubyid_message'>message</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>The following paths will be checked for templates:\n</span><span class='tstring_end'>&quot;</span></span>
1456
+
1457
+ <span class='id identifier rubyid_paths'>paths</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>--templates+=[value]</span><span class='tstring_end'>&quot;</span></span><span class='rbracket'>]</span>
1458
+ <span class='id identifier rubyid_paths'>paths</span> <span class='op'>=</span> <span class='id identifier rubyid_paths'>paths</span><span class='period'>.</span><span class='id identifier rubyid_concat'>concat</span> <span class='const'>Sprout</span><span class='op'>::</span><span class='const'>Generator</span><span class='period'>.</span><span class='id identifier rubyid_create_search_paths'>create_search_paths</span>
1459
+ <span class='id identifier rubyid_paths'>paths</span> <span class='op'>&lt;&lt;</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>ENV['SPROUT_GENERATORS']</span><span class='tstring_end'>&quot;</span></span>
1460
+ <span class='id identifier rubyid_paths'>paths</span> <span class='op'>&lt;&lt;</span> <span class='const'>Sprout</span><span class='op'>::</span><span class='const'>Generator</span><span class='op'>::</span><span class='id identifier rubyid_template_folder_for'>template_folder_for</span><span class='lparen'>(</span><span class='kw'>self</span><span class='rparen'>)</span>
1461
+
1462
+ <span class='id identifier rubyid_message'>message</span> <span class='op'>&lt;&lt;</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'> * </span><span class='tstring_end'>&quot;</span></span>
1463
+ <span class='id identifier rubyid_message'>message</span> <span class='op'>&lt;&lt;</span> <span class='id identifier rubyid_paths'>paths</span><span class='period'>.</span><span class='id identifier rubyid_join'>join</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>\n * </span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
1464
+ <span class='id identifier rubyid_say'>say</span> <span class='id identifier rubyid_message'>message</span>
1465
+ <span class='id identifier rubyid_message'>message</span>
1466
+ <span class='kw'>end</span></pre>
1467
+ </td>
1468
+ </tr>
1469
+ </table>
1470
+ </div>
1471
+
1472
+ <div class="method_details ">
1473
+ <p class="signature " id="execute-instance_method">
1474
+
1475
+ - (<tt>Object</tt>) <strong>execute</strong>
1476
+
1477
+
1478
+
1479
+ </p><div class="docstring">
1480
+ <div class="discussion">
1481
+ <p>
1482
+ Record the actions and trigger them
1483
+ </p>
1484
+
1485
+
1486
+ </div>
1487
+ </div>
1488
+ <div class="tags">
1489
+
1490
+
1491
+ </div><table class="source_code">
1492
+ <tr>
1493
+ <td>
1494
+ <pre class="lines">
1495
+
1496
+
1497
+ 79
1498
+ 80
1499
+ 81
1500
+ 82
1501
+ 83</pre>
1502
+ </td>
1503
+ <td>
1504
+ <pre class="code"><span class="info file"># File 'lib/sprout/generator/base.rb', line 79</span>
1505
+
1506
+ <span class='kw'>def</span> <span class='id identifier rubyid_execute'>execute</span>
1507
+ <span class='kw'>return</span> <span class='id identifier rubyid_do_show_template_paths'>do_show_template_paths</span> <span class='kw'>if</span> <span class='id identifier rubyid_show_template_paths'>show_template_paths</span>
1508
+ <span class='kw'>return</span> <span class='id identifier rubyid_prepare_command'>prepare_command</span><span class='period'>.</span><span class='id identifier rubyid_unexecute'>unexecute</span> <span class='kw'>if</span> <span class='id identifier rubyid_destroy'>destroy</span>
1509
+ <span class='id identifier rubyid_prepare_command'>prepare_command</span><span class='period'>.</span><span class='id identifier rubyid_execute'>execute</span>
1510
+ <span class='kw'>end</span></pre>
1511
+ </td>
1512
+ </tr>
1513
+ </table>
1514
+ </div>
1515
+
1516
+ <div class="method_details ">
1517
+ <p class="signature " id="file-instance_method">
1518
+
1519
+ - (<tt>Object</tt>) <strong>file</strong>(name, template = nil) <span class="extras">(protected)</span>
1520
+
1521
+
1522
+
1523
+ </p><table class="source_code">
1524
+ <tr>
1525
+ <td>
1526
+ <pre class="lines">
1527
+
1528
+
1529
+ 161
1530
+ 162
1531
+ 163</pre>
1532
+ </td>
1533
+ <td>
1534
+ <pre class="code"><span class="info file"># File 'lib/sprout/generator/base.rb', line 161</span>
1535
+
1536
+ <span class='kw'>def</span> <span class='id identifier rubyid_file'>file</span> <span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='id identifier rubyid_template'>template</span><span class='op'>=</span><span class='kw'>nil</span>
1537
+ <span class='ivar'>@command</span><span class='period'>.</span><span class='id identifier rubyid_file'>file</span> <span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='id identifier rubyid_template'>template</span>
1538
+ <span class='kw'>end</span></pre>
1539
+ </td>
1540
+ </tr>
1541
+ </table>
1542
+ </div>
1543
+
1544
+ <div class="method_details ">
1545
+ <p class="signature " id="generator-instance_method">
1546
+
1547
+ - (<tt>Object</tt>) <strong>generator</strong>(name, options = {}) <span class="extras">(protected)</span>
1548
+
1549
+
1550
+
1551
+ </p><table class="source_code">
1552
+ <tr>
1553
+ <td>
1554
+ <pre class="lines">
1555
+
1556
+
1557
+ 169
1558
+ 170
1559
+ 171</pre>
1560
+ </td>
1561
+ <td>
1562
+ <pre class="code"><span class="info file"># File 'lib/sprout/generator/base.rb', line 169</span>
1563
+
1564
+ <span class='kw'>def</span> <span class='id identifier rubyid_generator'>generator</span> <span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='id identifier rubyid_options'>options</span><span class='op'>=</span><span class='lbrace'>{</span><span class='rbrace'>}</span>
1565
+ <span class='ivar'>@command</span><span class='period'>.</span><span class='id identifier rubyid_generator'>generator</span> <span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='id identifier rubyid_to_hash'>to_hash</span><span class='period'>.</span><span class='id identifier rubyid_merge'>merge</span><span class='lparen'>(</span><span class='id identifier rubyid_options'>options</span><span class='rparen'>)</span>
1566
+ <span class='kw'>end</span></pre>
1567
+ </td>
1568
+ </tr>
1569
+ </table>
1570
+ </div>
1571
+
1572
+ <div class="method_details ">
1573
+ <p class="signature " id="prepare_command-instance_method">
1574
+
1575
+ - (<tt>Object</tt>) <strong>prepare_command</strong> <span class="extras">(protected)</span>
1576
+
1577
+
1578
+
1579
+ </p><table class="source_code">
1580
+ <tr>
1581
+ <td>
1582
+ <pre class="lines">
1583
+
1584
+
1585
+ 149
1586
+ 150
1587
+ 151
1588
+ 152
1589
+ 153
1590
+ 154
1591
+ 155</pre>
1592
+ </td>
1593
+ <td>
1594
+ <pre class="code"><span class="info file"># File 'lib/sprout/generator/base.rb', line 149</span>
1595
+
1596
+ <span class='kw'>def</span> <span class='id identifier rubyid_prepare_command'>prepare_command</span>
1597
+ <span class='ivar'>@logger</span> <span class='op'>||=</span> <span class='gvar'>$stdout</span>
1598
+ <span class='ivar'>@command</span> <span class='op'>=</span> <span class='const'>Command</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span> <span class='kw'>self</span>
1599
+ <span class='ivar'>@command</span><span class='period'>.</span><span class='id identifier rubyid_logger'>logger</span> <span class='op'>=</span> <span class='id identifier rubyid_logger'>logger</span>
1600
+ <span class='id identifier rubyid_manifest'>manifest</span>
1601
+ <span class='ivar'>@command</span>
1602
+ <span class='kw'>end</span></pre>
1603
+ </td>
1604
+ </tr>
1605
+ </table>
1606
+ </div>
1607
+
1608
+ <div class="method_details ">
1609
+ <p class="signature " id="resolve_template-instance_method">
1610
+
1611
+ - (<tt>Object</tt>) <strong>resolve_template</strong>(content)
1612
+
1613
+
1614
+
1615
+ </p><div class="docstring">
1616
+ <div class="discussion">
1617
+ <p>
1618
+ TODO: Add support for arbitrary templating languages. For now, just support
1619
+ ERB&#8230;
1620
+ </p>
1621
+ <p>
1622
+ TODO: This is also a possible spot where those of you that don&#8217;t want
1623
+ to snuggle might put pretty-print code or some such modifiers&#8230;
1624
+ </p>
1625
+
1626
+
1627
+ </div>
1628
+ </div>
1629
+ <div class="tags">
1630
+
1631
+
1632
+ </div><table class="source_code">
1633
+ <tr>
1634
+ <td>
1635
+ <pre class="lines">
1636
+
1637
+
1638
+ 107
1639
+ 108
1640
+ 109
1641
+ 110</pre>
1642
+ </td>
1643
+ <td>
1644
+ <pre class="code"><span class="info file"># File 'lib/sprout/generator/base.rb', line 107</span>
1645
+
1646
+ <span class='kw'>def</span> <span class='id identifier rubyid_resolve_template'>resolve_template</span> <span class='id identifier rubyid_content'>content</span>
1647
+ <span class='id identifier rubyid_require'>require</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>erb</span><span class='tstring_end'>'</span></span>
1648
+ <span class='const'>ERB</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_content'>content</span><span class='comma'>,</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>&gt;</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_result'>result</span><span class='lparen'>(</span><span class='id identifier rubyid_binding'>binding</span><span class='rparen'>)</span>
1649
+ <span class='kw'>end</span></pre>
1650
+ </td>
1651
+ </tr>
1652
+ </table>
1653
+ </div>
1654
+
1655
+ <div class="method_details ">
1656
+ <p class="signature " id="say-instance_method">
1657
+
1658
+ - (<tt>Object</tt>) <strong>say</strong>(message)
1659
+
1660
+
1661
+
1662
+ </p><table class="source_code">
1663
+ <tr>
1664
+ <td>
1665
+ <pre class="lines">
1666
+
1667
+
1668
+ 96
1669
+ 97
1670
+ 98</pre>
1671
+ </td>
1672
+ <td>
1673
+ <pre class="code"><span class="info file"># File 'lib/sprout/generator/base.rb', line 96</span>
1674
+
1675
+ <span class='kw'>def</span> <span class='id identifier rubyid_say'>say</span> <span class='id identifier rubyid_message'>message</span>
1676
+ <span class='id identifier rubyid_logger'>logger</span><span class='period'>.</span><span class='id identifier rubyid_puts'>puts</span> <span class='id identifier rubyid_message'>message</span><span class='period'>.</span><span class='id identifier rubyid_gsub'>gsub</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_path'>path</span><span class='rbrace'>}</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</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='kw'>unless</span> <span class='id identifier rubyid_quiet'>quiet</span>
1677
+ <span class='kw'>end</span></pre>
1678
+ </td>
1679
+ </tr>
1680
+ </table>
1681
+ </div>
1682
+
1683
+ <div class="method_details ">
1684
+ <p class="signature " id="template-instance_method">
1685
+
1686
+ - (<tt>Object</tt>) <strong>template</strong>(name, template = nil) <span class="extras">(protected)</span>
1687
+
1688
+
1689
+
1690
+ </p><table class="source_code">
1691
+ <tr>
1692
+ <td>
1693
+ <pre class="lines">
1694
+
1695
+
1696
+ 165
1697
+ 166
1698
+ 167</pre>
1699
+ </td>
1700
+ <td>
1701
+ <pre class="code"><span class="info file"># File 'lib/sprout/generator/base.rb', line 165</span>
1702
+
1703
+ <span class='kw'>def</span> <span class='id identifier rubyid_template'>template</span> <span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='id identifier rubyid_template'>template</span><span class='op'>=</span><span class='kw'>nil</span>
1704
+ <span class='ivar'>@command</span><span class='period'>.</span><span class='id identifier rubyid_template'>template</span> <span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='id identifier rubyid_template'>template</span>
1705
+ <span class='kw'>end</span></pre>
1706
+ </td>
1707
+ </tr>
1708
+ </table>
1709
+ </div>
1710
+
1711
+ <div class="method_details ">
1712
+ <p class="signature " id="template_paths-instance_method">
1713
+
1714
+ - (<tt>Object</tt>) <strong>template_paths</strong>
1715
+
1716
+
1717
+
1718
+ </p><div class="docstring">
1719
+ <div class="discussion">
1720
+ <p>
1721
+ Returns a collection of templates that were provided on the command line,
1722
+ followed by templates that are created by a concrete generator, followed
1723
+ by the Sprout::Generator.search_paths + &#8216;templates&#8217; folders.
1724
+ </p>
1725
+
1726
+
1727
+ </div>
1728
+ </div>
1729
+ <div class="tags">
1730
+
1731
+
1732
+ </div><table class="source_code">
1733
+ <tr>
1734
+ <td>
1735
+ <pre class="lines">
1736
+
1737
+
1738
+ 118
1739
+ 119
1740
+ 120</pre>
1741
+ </td>
1742
+ <td>
1743
+ <pre class="code"><span class="info file"># File 'lib/sprout/generator/base.rb', line 118</span>
1744
+
1745
+ <span class='kw'>def</span> <span class='id identifier rubyid_template_paths'>template_paths</span>
1746
+ <span class='id identifier rubyid_create_template_paths'>create_template_paths</span>
1747
+ <span class='kw'>end</span></pre>
1748
+ </td>
1749
+ </tr>
1750
+ </table>
1751
+ </div>
1752
+
1753
+ <div class="method_details ">
1754
+ <p class="signature " id="unexecute-instance_method">
1755
+
1756
+ - (<tt>Object</tt>) <strong>unexecute</strong>
1757
+
1758
+
1759
+
1760
+ </p><div class="docstring">
1761
+ <div class="discussion">
1762
+ <p>
1763
+ Rollback the generator
1764
+ </p>
1765
+
1766
+
1767
+ </div>
1768
+ </div>
1769
+ <div class="tags">
1770
+
1771
+
1772
+ </div><table class="source_code">
1773
+ <tr>
1774
+ <td>
1775
+ <pre class="lines">
1776
+
1777
+
1778
+ 92
1779
+ 93
1780
+ 94</pre>
1781
+ </td>
1782
+ <td>
1783
+ <pre class="code"><span class="info file"># File 'lib/sprout/generator/base.rb', line 92</span>
1784
+
1785
+ <span class='kw'>def</span> <span class='id identifier rubyid_unexecute'>unexecute</span>
1786
+ <span class='id identifier rubyid_prepare_command'>prepare_command</span><span class='period'>.</span><span class='id identifier rubyid_unexecute'>unexecute</span>
1787
+ <span class='kw'>end</span></pre>
1788
+ </td>
1789
+ </tr>
1790
+ </table>
1791
+ </div>
1792
+
1793
+ <div class="method_details ">
1794
+ <p class="signature " id="validate-instance_method">
1795
+
1796
+ - (<tt>Object</tt>) <strong>validate</strong>
1797
+
1798
+
1799
+
1800
+ </p><table class="source_code">
1801
+ <tr>
1802
+ <td>
1803
+ <pre class="lines">
1804
+
1805
+
1806
+ 85
1807
+ 86
1808
+ 87
1809
+ 88</pre>
1810
+ </td>
1811
+ <td>
1812
+ <pre class="code"><span class="info file"># File 'lib/sprout/generator/base.rb', line 85</span>
1813
+
1814
+ <span class='kw'>def</span> <span class='id identifier rubyid_validate'>validate</span>
1815
+ <span class='kw'>return</span> <span class='kw'>true</span> <span class='kw'>if</span> <span class='id identifier rubyid_show_template_paths'>show_template_paths</span>
1816
+ <span class='kw'>super</span>
1817
+ <span class='kw'>end</span></pre>
1818
+ </td>
1819
+ </tr>
1820
+ </table>
1821
+ </div>
1822
+
1823
+ </div>
1824
+
1825
+ </div>
1826
+
1827
+ <div id="footer">
1828
+ Generated on Sun Mar 11 14:30:33 2012 by
1829
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1830
+ 0.7.5 (ruby-1.9.2).
1831
+ </div>
1832
+
1833
+ </body>
1834
+ </html>