sprout 1.1.17.pre → 1.1.18.pre
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of sprout might be problematic. Click here for more details.
- data/VERSION +1 -1
- data/doc/Dir.html +313 -0
- data/doc/Rake/Task.html +206 -0
- data/doc/Sprout.html +778 -0
- data/doc/Sprout/ArchiveUnpacker.html +1313 -0
- data/doc/Sprout/CommandLine.html +521 -0
- data/doc/Sprout/Concern.html +382 -0
- data/doc/Sprout/Errors.html +120 -0
- data/doc/Sprout/Errors/ArchiveUnpackerError.html +139 -0
- data/doc/Sprout/Errors/DestinationExistsError.html +143 -0
- data/doc/Sprout/Errors/DuplicateMemberError.html +142 -0
- data/doc/Sprout/Errors/ExecutableError.html +139 -0
- data/doc/Sprout/Errors/ExecutableRegistrationError.html +142 -0
- data/doc/Sprout/Errors/ExecutionError.html +135 -0
- data/doc/Sprout/Errors/GeneratorError.html +139 -0
- data/doc/Sprout/Errors/InvalidArgumentError.html +142 -0
- data/doc/Sprout/Errors/LoadError.html +135 -0
- data/doc/Sprout/Errors/MissingArgumentError.html +142 -0
- data/doc/Sprout/Errors/MissingExecutableError.html +142 -0
- data/doc/Sprout/Errors/MissingGeneratorError.html +142 -0
- data/doc/Sprout/Errors/MissingTemplateError.html +142 -0
- data/doc/Sprout/Errors/ProcessRunnerError.html +135 -0
- data/doc/Sprout/Errors/RemoteFileLoaderError.html +128 -0
- data/doc/Sprout/Errors/SproutError.html +132 -0
- data/doc/Sprout/Errors/UnknownArchiveType.html +136 -0
- data/doc/Sprout/Errors/UsageError.html +135 -0
- data/doc/Sprout/Errors/ValidationError.html +135 -0
- data/doc/Sprout/Errors/VersionRequirementNotMetError.html +135 -0
- data/doc/Sprout/Executable.html +183 -0
- data/doc/Sprout/Executable/Base.html +2986 -0
- data/doc/Sprout/Executable/Boolean.html +577 -0
- data/doc/Sprout/Executable/CollectionParam.html +521 -0
- data/doc/Sprout/Executable/FileParam.html +517 -0
- data/doc/Sprout/Executable/Files.html +311 -0
- data/doc/Sprout/Executable/Number.html +164 -0
- data/doc/Sprout/Executable/Param.html +3011 -0
- data/doc/Sprout/Executable/ParameterFactory.html +262 -0
- data/doc/Sprout/Executable/Path.html +247 -0
- data/doc/Sprout/Executable/Paths.html +268 -0
- data/doc/Sprout/Executable/Session.html +1587 -0
- data/doc/Sprout/Executable/StringParam.html +237 -0
- data/doc/Sprout/Executable/Strings.html +186 -0
- data/doc/Sprout/Executable/Url.html +180 -0
- data/doc/Sprout/Executable/Urls.html +185 -0
- data/doc/Sprout/FileTarget.html +1170 -0
- data/doc/Sprout/Generator.html +800 -0
- data/doc/Sprout/Generator/Base.html +1834 -0
- data/doc/Sprout/Generator/Command.html +716 -0
- data/doc/Sprout/Generator/DirectoryManifest.html +503 -0
- data/doc/Sprout/Generator/FileManifest.html +667 -0
- data/doc/Sprout/Generator/Manifest.html +403 -0
- data/doc/Sprout/Generator/TemplateManifest.html +213 -0
- data/doc/Sprout/GeneratorGenerator.html +990 -0
- data/doc/Sprout/Library.html +1259 -0
- data/doc/Sprout/LibraryGenerator.html +326 -0
- data/doc/Sprout/OutputBuffer.html +461 -0
- data/doc/Sprout/Platform.html +758 -0
- data/doc/Sprout/ProcessRunner.html +1801 -0
- data/doc/Sprout/ProgressBar.html +384 -0
- data/doc/Sprout/ProgressBarImpl.html +2151 -0
- data/doc/Sprout/ProgressBarManager.html +443 -0
- data/doc/Sprout/ProgressBarOutputStream.html +429 -0
- data/doc/Sprout/RDocParser.html +228 -0
- data/doc/Sprout/RemoteFileLoader.html +191 -0
- data/doc/Sprout/RemoteFileTarget.html +710 -0
- data/doc/Sprout/ReversedProgressBar.html +200 -0
- data/doc/Sprout/RubyFeature.html +176 -0
- data/doc/Sprout/RubyFeature/ClassMethods.html +1099 -0
- data/doc/Sprout/RubyGenerator.html +712 -0
- data/doc/Sprout/Specification.html +838 -0
- data/doc/Sprout/System.html +212 -0
- data/doc/Sprout/System/BaseSystem.html +1732 -0
- data/doc/Sprout/System/JavaSystem.html +137 -0
- data/doc/Sprout/System/OSXSystem.html +345 -0
- data/doc/Sprout/System/ThreadMock.html +201 -0
- data/doc/Sprout/System/UnixSystem.html +610 -0
- data/doc/Sprout/System/VistaSystem.html +263 -0
- data/doc/Sprout/System/WinNixSystem.html +340 -0
- data/doc/Sprout/System/WinSystem.html +590 -0
- data/doc/Sprout/TestHelper.html +2280 -0
- data/doc/Sprout/ToolGenerator.html +995 -0
- data/doc/Sprout/VERSION.html +135 -0
- data/doc/String.html +313 -0
- data/doc/_index.html +829 -0
- data/doc/class_list.html +47 -0
- data/doc/css/common.css +1 -0
- data/doc/css/full_list.css +55 -0
- data/doc/css/style.css +322 -0
- data/doc/file.README.html +109 -0
- data/doc/file_list.html +49 -0
- data/doc/frames.html +13 -0
- data/doc/index.html +109 -0
- data/doc/js/app.js +205 -0
- data/doc/js/full_list.js +173 -0
- data/doc/js/jquery.js +16 -0
- data/doc/method_list.html +3622 -0
- data/doc/top-level-namespace.html +220 -0
- data/lib/sprout/generators/generator/generator_generator.rb +3 -3
- data/lib/sprout/generators/generator/templates/{generator_class.rb → generator_class.erb} +0 -0
- data/lib/sprout/generators/generator/templates/{generator_test.rb → generator_test.erb} +0 -0
- data/lib/sprout/generators/generator/templates/{generator_test_helper.rb → generator_test_helper.erb} +0 -0
- data/lib/sprout/generators/library/library_generator.rb +1 -1
- data/lib/sprout/generators/library/templates/{library.rb → library.erb} +0 -0
- data/lib/sprout/generators/ruby/ruby_generator.rb +4 -5
- data/lib/sprout/generators/ruby/templates/{ruby_base.rb → ruby_base.erb} +0 -0
- data/lib/sprout/generators/ruby/templates/{ruby_input.rb → ruby_input.erb} +0 -0
- data/lib/sprout/generators/ruby/templates/{ruby_test_case.rb → ruby_test_case.erb} +0 -0
- data/lib/sprout/generators/ruby/templates/{ruby_test_helper.rb → ruby_test_helper.erb} +0 -0
- data/lib/sprout/generators/tool/templates/{tool.rb → tool.erb} +0 -2
- data/lib/sprout/generators/tool/tool_generator.rb +1 -1
- metadata +128 -32
@@ -0,0 +1,503 @@
|
|
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::DirectoryManifest
|
8
|
+
|
9
|
+
— Sprouts v.1.0.34.pre
|
10
|
+
|
11
|
+
</title>
|
12
|
+
|
13
|
+
<link rel="stylesheet" href="../../css/style.css" type="text/css" media="screen" charset="utf-8" />
|
14
|
+
|
15
|
+
<link rel="stylesheet" href="../../css/common.css" type="text/css" media="screen" charset="utf-8" />
|
16
|
+
|
17
|
+
<script type="text/javascript" charset="utf-8">
|
18
|
+
relpath = '../..';
|
19
|
+
if (relpath != '') relpath += '/';
|
20
|
+
</script>
|
21
|
+
|
22
|
+
<script type="text/javascript" charset="utf-8" src="../../js/jquery.js"></script>
|
23
|
+
|
24
|
+
<script type="text/javascript" charset="utf-8" src="../../js/app.js"></script>
|
25
|
+
|
26
|
+
|
27
|
+
</head>
|
28
|
+
<body>
|
29
|
+
<script type="text/javascript" charset="utf-8">
|
30
|
+
if (window.top.frames.main) document.body.className = 'frames';
|
31
|
+
</script>
|
32
|
+
|
33
|
+
<div id="header">
|
34
|
+
<div id="menu">
|
35
|
+
|
36
|
+
<a href="../../_index.html">Index (D)</a> »
|
37
|
+
<span class='title'><span class='object_link'><a href="../../Sprout.html" title="Sprout (module)">Sprout</a></span></span> » <span class='title'><span class='object_link'><a href="../Generator.html" title="Sprout::Generator (module)">Generator</a></span></span>
|
38
|
+
»
|
39
|
+
<span class="title">DirectoryManifest</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::DirectoryManifest
|
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="Manifest.html" title="Sprout::Generator::Manifest (class)">Manifest</a></span></span>
|
70
|
+
|
71
|
+
<ul class="fullTree">
|
72
|
+
<li>Object</li>
|
73
|
+
|
74
|
+
<li class="next"><span class='object_link'><a href="Manifest.html" title="Sprout::Generator::Manifest (class)">Manifest</a></span></li>
|
75
|
+
|
76
|
+
<li class="next">Sprout::Generator::DirectoryManifest</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/directory_manifest.rb</dd>
|
93
|
+
|
94
|
+
</dl>
|
95
|
+
<div class="clear"></div>
|
96
|
+
|
97
|
+
|
98
|
+
|
99
|
+
|
100
|
+
|
101
|
+
<h2>Instance Attribute Summary <small>(<a href="#" class="summary_toggle">collapse</a>)</small></h2>
|
102
|
+
<ul class="summary">
|
103
|
+
|
104
|
+
<li class="public ">
|
105
|
+
<span class="summary_signature">
|
106
|
+
|
107
|
+
<a href="#children-instance_method" title="#children (instance method)">- (Object) <strong>children</strong> </a>
|
108
|
+
|
109
|
+
|
110
|
+
|
111
|
+
</span>
|
112
|
+
|
113
|
+
|
114
|
+
<span class="note title readonly">readonly</span>
|
115
|
+
|
116
|
+
|
117
|
+
|
118
|
+
|
119
|
+
|
120
|
+
|
121
|
+
|
122
|
+
|
123
|
+
<span class="summary_desc"><div class='inline'><p>
|
124
|
+
Returns the value of attribute children.
|
125
|
+
</p>
|
126
|
+
</div></span>
|
127
|
+
|
128
|
+
</li>
|
129
|
+
|
130
|
+
|
131
|
+
<li class="public ">
|
132
|
+
<span class="summary_signature">
|
133
|
+
|
134
|
+
<a href="#generators-instance_method" title="#generators (instance method)">- (Object) <strong>generators</strong> </a>
|
135
|
+
|
136
|
+
|
137
|
+
|
138
|
+
</span>
|
139
|
+
|
140
|
+
|
141
|
+
<span class="note title readonly">readonly</span>
|
142
|
+
|
143
|
+
|
144
|
+
|
145
|
+
|
146
|
+
|
147
|
+
|
148
|
+
|
149
|
+
|
150
|
+
<span class="summary_desc"><div class='inline'><p>
|
151
|
+
Returns the value of attribute generators.
|
152
|
+
</p>
|
153
|
+
</div></span>
|
154
|
+
|
155
|
+
</li>
|
156
|
+
|
157
|
+
|
158
|
+
</ul>
|
159
|
+
|
160
|
+
|
161
|
+
|
162
|
+
|
163
|
+
|
164
|
+
<h3 class="inherited">Attributes inherited from <span class='object_link'><a href="Manifest.html" title="Sprout::Generator::Manifest (class)">Manifest</a></span></h3>
|
165
|
+
<p class="inherited"><span class='object_link'><a href="Manifest.html#generator-instance_method" title="Sprout::Generator::Manifest#generator (method)">#generator</a></span>, <span class='object_link'><a href="Manifest.html#parent-instance_method" title="Sprout::Generator::Manifest#parent (method)">#parent</a></span>, <span class='object_link'><a href="Manifest.html#path-instance_method" title="Sprout::Generator::Manifest#path (method)">#path</a></span></p>
|
166
|
+
|
167
|
+
|
168
|
+
|
169
|
+
<h2>
|
170
|
+
Instance Method Summary
|
171
|
+
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
172
|
+
</h2>
|
173
|
+
|
174
|
+
<ul class="summary">
|
175
|
+
|
176
|
+
<li class="public ">
|
177
|
+
<span class="summary_signature">
|
178
|
+
|
179
|
+
<a href="#create-instance_method" title="#create (instance method)">- (Object) <strong>create</strong> </a>
|
180
|
+
|
181
|
+
|
182
|
+
|
183
|
+
</span>
|
184
|
+
|
185
|
+
|
186
|
+
|
187
|
+
|
188
|
+
|
189
|
+
|
190
|
+
|
191
|
+
|
192
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
193
|
+
|
194
|
+
</li>
|
195
|
+
|
196
|
+
|
197
|
+
<li class="public ">
|
198
|
+
<span class="summary_signature">
|
199
|
+
|
200
|
+
<a href="#destroy-instance_method" title="#destroy (instance method)">- (Object) <strong>destroy</strong> </a>
|
201
|
+
|
202
|
+
|
203
|
+
|
204
|
+
</span>
|
205
|
+
|
206
|
+
|
207
|
+
|
208
|
+
|
209
|
+
|
210
|
+
|
211
|
+
|
212
|
+
|
213
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
214
|
+
|
215
|
+
</li>
|
216
|
+
|
217
|
+
|
218
|
+
<li class="public ">
|
219
|
+
<span class="summary_signature">
|
220
|
+
|
221
|
+
<a href="#initialize-instance_method" title="#initialize (instance method)">- (DirectoryManifest) <strong>initialize</strong> </a>
|
222
|
+
|
223
|
+
|
224
|
+
|
225
|
+
</span>
|
226
|
+
|
227
|
+
<span class="note title constructor">constructor</span>
|
228
|
+
|
229
|
+
|
230
|
+
|
231
|
+
|
232
|
+
|
233
|
+
|
234
|
+
|
235
|
+
|
236
|
+
<span class="summary_desc"><div class='inline'><p>
|
237
|
+
A new instance of DirectoryManifest.
|
238
|
+
</p>
|
239
|
+
</div></span>
|
240
|
+
|
241
|
+
</li>
|
242
|
+
|
243
|
+
|
244
|
+
</ul>
|
245
|
+
|
246
|
+
|
247
|
+
|
248
|
+
|
249
|
+
|
250
|
+
|
251
|
+
|
252
|
+
|
253
|
+
|
254
|
+
|
255
|
+
<h3 class="inherited">Methods inherited from <span class='object_link'><a href="Manifest.html" title="Sprout::Generator::Manifest (class)">Manifest</a></span></h3>
|
256
|
+
<p class="inherited"><span class='object_link'><a href="Manifest.html#say-instance_method" title="Sprout::Generator::Manifest#say (method)">#say</a></span></p>
|
257
|
+
<div id="constructor_details" class="method_details_list">
|
258
|
+
<h2>Constructor Details</h2>
|
259
|
+
|
260
|
+
<div class="method_details first">
|
261
|
+
<p class="signature first" id="initialize-instance_method">
|
262
|
+
|
263
|
+
- (<tt><span class='object_link'><a href="" title="Sprout::Generator::DirectoryManifest (class)">DirectoryManifest</a></span></tt>) <strong>initialize</strong>
|
264
|
+
|
265
|
+
|
266
|
+
|
267
|
+
</p><div class="docstring">
|
268
|
+
<div class="discussion">
|
269
|
+
<p>
|
270
|
+
A new instance of DirectoryManifest
|
271
|
+
</p>
|
272
|
+
|
273
|
+
|
274
|
+
</div>
|
275
|
+
</div>
|
276
|
+
<div class="tags">
|
277
|
+
|
278
|
+
|
279
|
+
</div><table class="source_code">
|
280
|
+
<tr>
|
281
|
+
<td>
|
282
|
+
<pre class="lines">
|
283
|
+
|
284
|
+
|
285
|
+
6
|
286
|
+
7
|
287
|
+
8
|
288
|
+
9
|
289
|
+
10</pre>
|
290
|
+
</td>
|
291
|
+
<td>
|
292
|
+
<pre class="code"><span class="info file"># File 'lib/sprout/generator/directory_manifest.rb', line 6</span>
|
293
|
+
|
294
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span>
|
295
|
+
<span class='kw'>super</span>
|
296
|
+
<span class='ivar'>@children</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
|
297
|
+
<span class='ivar'>@generators</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
|
298
|
+
<span class='kw'>end</span></pre>
|
299
|
+
</td>
|
300
|
+
</tr>
|
301
|
+
</table>
|
302
|
+
</div>
|
303
|
+
|
304
|
+
</div>
|
305
|
+
|
306
|
+
<div id="instance_attr_details" class="attr_details">
|
307
|
+
<h2>Instance Attribute Details</h2>
|
308
|
+
|
309
|
+
|
310
|
+
<span id=""></span>
|
311
|
+
<span id="children-instance_method"></span>
|
312
|
+
<div class="method_details first">
|
313
|
+
<p class="signature first" id="children-instance_method">
|
314
|
+
|
315
|
+
- (<tt>Object</tt>) <strong>children</strong> <span class="extras">(readonly)</span>
|
316
|
+
|
317
|
+
|
318
|
+
|
319
|
+
</p><div class="docstring">
|
320
|
+
<div class="discussion">
|
321
|
+
<p>
|
322
|
+
Returns the value of attribute children
|
323
|
+
</p>
|
324
|
+
|
325
|
+
|
326
|
+
</div>
|
327
|
+
</div>
|
328
|
+
<div class="tags">
|
329
|
+
|
330
|
+
|
331
|
+
</div><table class="source_code">
|
332
|
+
<tr>
|
333
|
+
<td>
|
334
|
+
<pre class="lines">
|
335
|
+
|
336
|
+
|
337
|
+
3
|
338
|
+
4
|
339
|
+
5</pre>
|
340
|
+
</td>
|
341
|
+
<td>
|
342
|
+
<pre class="code"><span class="info file"># File 'lib/sprout/generator/directory_manifest.rb', line 3</span>
|
343
|
+
|
344
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_children'>children</span>
|
345
|
+
<span class='ivar'>@children</span>
|
346
|
+
<span class='kw'>end</span></pre>
|
347
|
+
</td>
|
348
|
+
</tr>
|
349
|
+
</table>
|
350
|
+
</div>
|
351
|
+
|
352
|
+
|
353
|
+
<span id=""></span>
|
354
|
+
<span id="generators-instance_method"></span>
|
355
|
+
<div class="method_details ">
|
356
|
+
<p class="signature " id="generators-instance_method">
|
357
|
+
|
358
|
+
- (<tt>Object</tt>) <strong>generators</strong> <span class="extras">(readonly)</span>
|
359
|
+
|
360
|
+
|
361
|
+
|
362
|
+
</p><div class="docstring">
|
363
|
+
<div class="discussion">
|
364
|
+
<p>
|
365
|
+
Returns the value of attribute generators
|
366
|
+
</p>
|
367
|
+
|
368
|
+
|
369
|
+
</div>
|
370
|
+
</div>
|
371
|
+
<div class="tags">
|
372
|
+
|
373
|
+
|
374
|
+
</div><table class="source_code">
|
375
|
+
<tr>
|
376
|
+
<td>
|
377
|
+
<pre class="lines">
|
378
|
+
|
379
|
+
|
380
|
+
4
|
381
|
+
5
|
382
|
+
6</pre>
|
383
|
+
</td>
|
384
|
+
<td>
|
385
|
+
<pre class="code"><span class="info file"># File 'lib/sprout/generator/directory_manifest.rb', line 4</span>
|
386
|
+
|
387
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_generators'>generators</span>
|
388
|
+
<span class='ivar'>@generators</span>
|
389
|
+
<span class='kw'>end</span></pre>
|
390
|
+
</td>
|
391
|
+
</tr>
|
392
|
+
</table>
|
393
|
+
</div>
|
394
|
+
|
395
|
+
</div>
|
396
|
+
|
397
|
+
|
398
|
+
<div id="instance_method_details" class="method_details_list">
|
399
|
+
<h2>Instance Method Details</h2>
|
400
|
+
|
401
|
+
|
402
|
+
<div class="method_details first">
|
403
|
+
<p class="signature first" id="create-instance_method">
|
404
|
+
|
405
|
+
- (<tt>Object</tt>) <strong>create</strong>
|
406
|
+
|
407
|
+
|
408
|
+
|
409
|
+
</p><table class="source_code">
|
410
|
+
<tr>
|
411
|
+
<td>
|
412
|
+
<pre class="lines">
|
413
|
+
|
414
|
+
|
415
|
+
12
|
416
|
+
13
|
417
|
+
14
|
418
|
+
15
|
419
|
+
16
|
420
|
+
17
|
421
|
+
18
|
422
|
+
19
|
423
|
+
20
|
424
|
+
21</pre>
|
425
|
+
</td>
|
426
|
+
<td>
|
427
|
+
<pre class="code"><span class="info file"># File 'lib/sprout/generator/directory_manifest.rb', line 12</span>
|
428
|
+
|
429
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_create'>create</span>
|
430
|
+
<span class='kw'>if</span> <span class='op'>!</span><span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_directory?'>directory?</span><span class='lparen'>(</span><span class='id identifier rubyid_path'>path</span><span class='rparen'>)</span>
|
431
|
+
<span class='const'>FileUtils</span><span class='period'>.</span><span class='id identifier rubyid_mkdir_p'>mkdir_p</span> <span class='id identifier rubyid_path'>path</span>
|
432
|
+
<span class='id identifier rubyid_say'>say</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Created directory: </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_path'>path</span><span class='rbrace'>}</span><span class='tstring_end'>"</span></span>
|
433
|
+
<span class='kw'>else</span>
|
434
|
+
<span class='id identifier rubyid_say'>say</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Skipped directory: </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_path'>path</span><span class='rbrace'>}</span><span class='tstring_end'>"</span></span> <span class='kw'>unless</span><span class='lparen'>(</span><span class='id identifier rubyid_path'>path</span> <span class='op'>==</span> <span class='const'>Dir</span><span class='period'>.</span><span class='id identifier rubyid_pwd'>pwd</span><span class='rparen'>)</span>
|
435
|
+
<span class='kw'>end</span>
|
436
|
+
<span class='id identifier rubyid_create_children'>create_children</span>
|
437
|
+
<span class='id identifier rubyid_execute_generators'>execute_generators</span>
|
438
|
+
<span class='kw'>end</span></pre>
|
439
|
+
</td>
|
440
|
+
</tr>
|
441
|
+
</table>
|
442
|
+
</div>
|
443
|
+
|
444
|
+
<div class="method_details ">
|
445
|
+
<p class="signature " id="destroy-instance_method">
|
446
|
+
|
447
|
+
- (<tt>Object</tt>) <strong>destroy</strong>
|
448
|
+
|
449
|
+
|
450
|
+
|
451
|
+
</p><table class="source_code">
|
452
|
+
<tr>
|
453
|
+
<td>
|
454
|
+
<pre class="lines">
|
455
|
+
|
456
|
+
|
457
|
+
23
|
458
|
+
24
|
459
|
+
25
|
460
|
+
26
|
461
|
+
27
|
462
|
+
28
|
463
|
+
29
|
464
|
+
30
|
465
|
+
31
|
466
|
+
32
|
467
|
+
33
|
468
|
+
34
|
469
|
+
35</pre>
|
470
|
+
</td>
|
471
|
+
<td>
|
472
|
+
<pre class="code"><span class="info file"># File 'lib/sprout/generator/directory_manifest.rb', line 23</span>
|
473
|
+
|
474
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_destroy'>destroy</span>
|
475
|
+
<span class='id identifier rubyid_unexecute_generators'>unexecute_generators</span>
|
476
|
+
<span class='id identifier rubyid_success'>success</span> <span class='op'>=</span> <span class='id identifier rubyid_destroy_children'>destroy_children</span>
|
477
|
+
|
478
|
+
<span class='kw'>if</span> <span class='id identifier rubyid_success'>success</span> <span class='op'>&&</span> <span class='id identifier rubyid_can_remove?'>can_remove?</span>
|
479
|
+
<span class='const'>FileUtils</span><span class='period'>.</span><span class='id identifier rubyid_rmdir'>rmdir</span> <span class='id identifier rubyid_path'>path</span>
|
480
|
+
<span class='id identifier rubyid_say'>say</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Removed directory: </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_path'>path</span><span class='rbrace'>}</span><span class='tstring_end'>"</span></span>
|
481
|
+
<span class='kw'>true</span>
|
482
|
+
<span class='kw'>else</span>
|
483
|
+
<span class='id identifier rubyid_say'>say</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Skipped remove directory: </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_path'>path</span><span class='rbrace'>}</span><span class='tstring_end'>"</span></span>
|
484
|
+
<span class='kw'>false</span>
|
485
|
+
<span class='kw'>end</span>
|
486
|
+
<span class='kw'>end</span></pre>
|
487
|
+
</td>
|
488
|
+
</tr>
|
489
|
+
</table>
|
490
|
+
</div>
|
491
|
+
|
492
|
+
</div>
|
493
|
+
|
494
|
+
</div>
|
495
|
+
|
496
|
+
<div id="footer">
|
497
|
+
Generated on Sun Mar 11 14:30:34 2012 by
|
498
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
499
|
+
0.7.5 (ruby-1.9.2).
|
500
|
+
</div>
|
501
|
+
|
502
|
+
</body>
|
503
|
+
</html>
|