sprout 1.0.11.pre → 1.0.13.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 (149) hide show
  1. data/lib/sprout/executable.rb +37 -10
  2. data/lib/sprout/generator/base.rb +17 -0
  3. data/lib/sprout/ruby_feature.rb +1 -1
  4. data/lib/sprout/version.rb +1 -1
  5. data/rdoc/<.html +274 -0
  6. data/rdoc/Dir.html +387 -0
  7. data/rdoc/Object.html +344 -0
  8. data/rdoc/Sprout.html +440 -0
  9. data/rdoc/Sprout/ArchiveUnpacker.html +1045 -0
  10. data/rdoc/Sprout/Base.html +283 -0
  11. data/rdoc/Sprout/Base/ClassMethods.html +474 -0
  12. data/rdoc/Sprout/Concern.html +415 -0
  13. data/rdoc/Sprout/Errors.html +324 -0
  14. data/rdoc/Sprout/Errors/ArchiveUnpackerError.html +284 -0
  15. data/rdoc/Sprout/Errors/DestinationExistsError.html +286 -0
  16. data/rdoc/Sprout/Errors/DuplicateMemberError.html +284 -0
  17. data/rdoc/Sprout/Errors/ExecutableError.html +285 -0
  18. data/rdoc/Sprout/Errors/ExecutableRegistrationError.html +284 -0
  19. data/rdoc/Sprout/Errors/ExecutionError.html +284 -0
  20. data/rdoc/Sprout/Errors/GeneratorError.html +284 -0
  21. data/rdoc/Sprout/Errors/InvalidArgumentError.html +284 -0
  22. data/rdoc/Sprout/Errors/LoadError.html +284 -0
  23. data/rdoc/Sprout/Errors/MissingArgumentError.html +284 -0
  24. data/rdoc/Sprout/Errors/MissingExecutableError.html +284 -0
  25. data/rdoc/Sprout/Errors/MissingGeneratorError.html +285 -0
  26. data/rdoc/Sprout/Errors/MissingTemplateError.html +285 -0
  27. data/rdoc/Sprout/Errors/ProcessRunnerError.html +284 -0
  28. data/rdoc/Sprout/Errors/RemoteFileLoaderError.html +284 -0
  29. data/rdoc/Sprout/Errors/SproutError.html +284 -0
  30. data/rdoc/Sprout/Errors/UnknownArchiveType.html +285 -0
  31. data/rdoc/Sprout/Errors/UsageError.html +284 -0
  32. data/rdoc/Sprout/Errors/ValidationError.html +284 -0
  33. data/rdoc/Sprout/Errors/VersionRequirementNotMetError.html +284 -0
  34. data/rdoc/Sprout/Executable.html +549 -0
  35. data/rdoc/Sprout/Executable/Boolean.html +445 -0
  36. data/rdoc/Sprout/Executable/ClassMethods.html +713 -0
  37. data/rdoc/Sprout/Executable/CollectionParam.html +501 -0
  38. data/rdoc/Sprout/Executable/FileParam.html +512 -0
  39. data/rdoc/Sprout/Executable/Files.html +385 -0
  40. data/rdoc/Sprout/Executable/InstanceMethods.html +1597 -0
  41. data/rdoc/Sprout/Executable/Number.html +284 -0
  42. data/rdoc/Sprout/Executable/Param.html +1660 -0
  43. data/rdoc/Sprout/Executable/ParameterFactory.html +345 -0
  44. data/rdoc/Sprout/Executable/Path.html +339 -0
  45. data/rdoc/Sprout/Executable/Paths.html +339 -0
  46. data/rdoc/Sprout/Executable/StringParam.html +333 -0
  47. data/rdoc/Sprout/Executable/Strings.html +295 -0
  48. data/rdoc/Sprout/Executable/Url.html +284 -0
  49. data/rdoc/Sprout/Executable/Urls.html +284 -0
  50. data/rdoc/Sprout/FileTarget.html +660 -0
  51. data/rdoc/Sprout/Generator.html +643 -0
  52. data/rdoc/Sprout/Generator/Base.html +1143 -0
  53. data/rdoc/Sprout/Generator/Command.html +604 -0
  54. data/rdoc/Sprout/Generator/DirectoryManifest.html +561 -0
  55. data/rdoc/Sprout/Generator/FileManifest.html +545 -0
  56. data/rdoc/Sprout/Generator/Manifest.html +387 -0
  57. data/rdoc/Sprout/Generator/TemplateManifest.html +331 -0
  58. data/rdoc/Sprout/GeneratorGenerator.html +358 -0
  59. data/rdoc/Sprout/Library.html +646 -0
  60. data/rdoc/Sprout/LibraryGenerator.html +368 -0
  61. data/rdoc/Sprout/Log.html +281 -0
  62. data/rdoc/Sprout/Platform.html +610 -0
  63. data/rdoc/Sprout/ProcessRunner.html +1145 -0
  64. data/rdoc/Sprout/ProgressBar.html +281 -0
  65. data/rdoc/Sprout/ProgressBarImpl.html +281 -0
  66. data/rdoc/Sprout/ProgressBarManager.html +281 -0
  67. data/rdoc/Sprout/ProgressBarOutputStream.html +281 -0
  68. data/rdoc/Sprout/RDocParser.html +702 -0
  69. data/rdoc/Sprout/RemoteFileLoader.html +537 -0
  70. data/rdoc/Sprout/RemoteFileTarget.html +741 -0
  71. data/rdoc/Sprout/ReversedProgressBar.html +281 -0
  72. data/rdoc/Sprout/RubyFeature.html +324 -0
  73. data/rdoc/Sprout/RubyFeature/ClassMethods.html +821 -0
  74. data/rdoc/Sprout/RubyGenerator.html +576 -0
  75. data/rdoc/Sprout/Specification.html +915 -0
  76. data/rdoc/Sprout/System.html +383 -0
  77. data/rdoc/Sprout/System/BaseSystem.html +1173 -0
  78. data/rdoc/Sprout/System/JavaSystem.html +284 -0
  79. data/rdoc/Sprout/System/OSXSystem.html +419 -0
  80. data/rdoc/Sprout/System/ThreadMock.html +281 -0
  81. data/rdoc/Sprout/System/UnixSystem.html +583 -0
  82. data/rdoc/Sprout/System/VistaSystem.html +367 -0
  83. data/rdoc/Sprout/System/WinNixSystem.html +417 -0
  84. data/rdoc/Sprout/System/WinSystem.html +672 -0
  85. data/rdoc/Sprout/ToolGenerator.html +376 -0
  86. data/rdoc/Sprout/VERSION.html +274 -0
  87. data/rdoc/SproutTestCase.html +279 -0
  88. data/rdoc/String.html +411 -0
  89. data/rdoc/created.rid +61 -0
  90. data/rdoc/index.html +795 -0
  91. data/rdoc/lib/sprout/archive_unpacker_rb.html +56 -0
  92. data/rdoc/lib/sprout/base_rb.html +111 -0
  93. data/rdoc/lib/sprout/concern_rb.html +52 -0
  94. data/rdoc/lib/sprout/dir_rb.html +52 -0
  95. data/rdoc/lib/sprout/errors_rb.html +52 -0
  96. data/rdoc/lib/sprout/executable/boolean_rb.html +52 -0
  97. data/rdoc/lib/sprout/executable/collection_param_rb.html +52 -0
  98. data/rdoc/lib/sprout/executable/file_param_rb.html +52 -0
  99. data/rdoc/lib/sprout/executable/files_rb.html +52 -0
  100. data/rdoc/lib/sprout/executable/number_rb.html +52 -0
  101. data/rdoc/lib/sprout/executable/param_rb.html +52 -0
  102. data/rdoc/lib/sprout/executable/parameter_factory_rb.html +52 -0
  103. data/rdoc/lib/sprout/executable/path_rb.html +52 -0
  104. data/rdoc/lib/sprout/executable/paths_rb.html +52 -0
  105. data/rdoc/lib/sprout/executable/string_param_rb.html +52 -0
  106. data/rdoc/lib/sprout/executable/strings_rb.html +52 -0
  107. data/rdoc/lib/sprout/executable/url_rb.html +52 -0
  108. data/rdoc/lib/sprout/executable/urls_rb.html +52 -0
  109. data/rdoc/lib/sprout/executable_rb.html +78 -0
  110. data/rdoc/lib/sprout/file_target_rb.html +52 -0
  111. data/rdoc/lib/sprout/generator/base_rb.html +54 -0
  112. data/rdoc/lib/sprout/generator/command_rb.html +52 -0
  113. data/rdoc/lib/sprout/generator/directory_manifest_rb.html +52 -0
  114. data/rdoc/lib/sprout/generator/file_manifest_rb.html +52 -0
  115. data/rdoc/lib/sprout/generator/manifest_rb.html +52 -0
  116. data/rdoc/lib/sprout/generator/template_manifest_rb.html +52 -0
  117. data/rdoc/lib/sprout/generators/generator/generator_generator_rb.html +52 -0
  118. data/rdoc/lib/sprout/generators/generator/templates/generator_test_helper_rb.html +64 -0
  119. data/rdoc/lib/sprout/generators/library/library_generator_rb.html +52 -0
  120. data/rdoc/lib/sprout/generators/ruby/ruby_generator_rb.html +52 -0
  121. data/rdoc/lib/sprout/generators/ruby/templates/ruby_base_rb.html +54 -0
  122. data/rdoc/lib/sprout/generators/tool/tool_generator_rb.html +52 -0
  123. data/rdoc/lib/sprout/library_rb.html +52 -0
  124. data/rdoc/lib/sprout/log_rb.html +52 -0
  125. data/rdoc/lib/sprout/platform_rb.html +52 -0
  126. data/rdoc/lib/sprout/process_runner_rb.html +58 -0
  127. data/rdoc/lib/sprout/progress_bar_rb.html +72 -0
  128. data/rdoc/lib/sprout/rdoc_parser_rb.html +54 -0
  129. data/rdoc/lib/sprout/remote_file_loader_rb.html +54 -0
  130. data/rdoc/lib/sprout/remote_file_target_rb.html +52 -0
  131. data/rdoc/lib/sprout/ruby_feature_rb.html +52 -0
  132. data/rdoc/lib/sprout/specification_rb.html +52 -0
  133. data/rdoc/lib/sprout/string_rb.html +52 -0
  134. data/rdoc/lib/sprout/system/base_system_rb.html +52 -0
  135. data/rdoc/lib/sprout/system/java_system_rb.html +52 -0
  136. data/rdoc/lib/sprout/system/osx_system_rb.html +52 -0
  137. data/rdoc/lib/sprout/system/unix_system_rb.html +52 -0
  138. data/rdoc/lib/sprout/system/vista_system_rb.html +52 -0
  139. data/rdoc/lib/sprout/system/win_nix_system_rb.html +52 -0
  140. data/rdoc/lib/sprout/system/win_system_rb.html +52 -0
  141. data/rdoc/lib/sprout/system_rb.html +66 -0
  142. data/rdoc/lib/sprout/test/sprout_test_case_rb.html +57 -0
  143. data/rdoc/lib/sprout/version_rb.html +52 -0
  144. data/rdoc/lib/sprout_rb.html +54 -0
  145. data/rdoc/rdoc.css +706 -0
  146. data/test/fixtures/executable/mxmlc.rb +2 -2
  147. data/test/unit/executable_test.rb +13 -0
  148. data/test/unit/generator_test.rb +25 -2
  149. metadata +144 -3
@@ -0,0 +1,358 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
3
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5
+ <head>
6
+ <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
7
+
8
+ <title>Class: Sprout::GeneratorGenerator</title>
9
+
10
+ <link rel="stylesheet" href="../rdoc.css" type="text/css" media="screen" />
11
+
12
+ <script src="../js/jquery.js" type="text/javascript"
13
+ charset="utf-8"></script>
14
+ <script src="../js/thickbox-compressed.js" type="text/javascript"
15
+ charset="utf-8"></script>
16
+ <script src="../js/quicksearch.js" type="text/javascript"
17
+ charset="utf-8"></script>
18
+ <script src="../js/darkfish.js" type="text/javascript"
19
+ charset="utf-8"></script>
20
+
21
+ </head>
22
+ <body class="class">
23
+
24
+ <div id="metadata">
25
+ <div id="home-metadata">
26
+ <div id="home-section" class="section">
27
+ <h3 class="section-header">
28
+ <a href="../index.html">Home</a>
29
+ <a href="../index.html#classes">Classes</a>
30
+ <a href="../index.html#methods">Methods</a>
31
+ </h3>
32
+ </div>
33
+ </div>
34
+
35
+ <div id="file-metadata">
36
+ <div id="file-list-section" class="section">
37
+ <h3 class="section-header">In Files</h3>
38
+ <div class="section-body">
39
+ <ul>
40
+
41
+ <li><a href="../lib/sprout/generators/generator/generator_generator_rb.html?TB_iframe=true&amp;height=550&amp;width=785"
42
+ class="thickbox" title="lib/sprout/generators/generator/generator_generator.rb">lib/sprout/generators/generator/generator_generator.rb</a></li>
43
+
44
+ </ul>
45
+ </div>
46
+ </div>
47
+
48
+
49
+ </div>
50
+
51
+ <div id="class-metadata">
52
+
53
+ <!-- Parent Class -->
54
+
55
+ <div id="parent-class-section" class="section">
56
+ <h3 class="section-header">Parent</h3>
57
+
58
+ <p class="link">Generator::Base</p>
59
+
60
+ </div>
61
+
62
+
63
+ <!-- Namespace Contents -->
64
+
65
+
66
+ <!-- Method Quickref -->
67
+
68
+ <div id="method-list-section" class="section">
69
+ <h3 class="section-header">Methods</h3>
70
+ <ul class="link-list">
71
+
72
+ <li><a href="#method-i-manifest">#manifest</a></li>
73
+
74
+ </ul>
75
+ </div>
76
+
77
+
78
+ <!-- Included Modules -->
79
+
80
+ </div>
81
+
82
+ <div id="project-metadata">
83
+
84
+
85
+
86
+ <div id="classindex-section" class="section project-section">
87
+ <h3 class="section-header">Class Index
88
+ <span class="search-toggle"><img src="../images/find.png"
89
+ height="16" width="16" alt="[+]"
90
+ title="show/hide quicksearch" /></span></h3>
91
+ <form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
92
+ <fieldset>
93
+ <legend>Quicksearch</legend>
94
+ <input type="text" name="quicksearch" value=""
95
+ class="quicksearch-field" />
96
+ </fieldset>
97
+ </form>
98
+
99
+ <ul class="link-list">
100
+
101
+ <li><a href="../Sprout/ArchiveUnpacker.html">Sprout::ArchiveUnpacker</a></li>
102
+
103
+ <li><a href="../Sprout/Base.html">Sprout::Base</a></li>
104
+
105
+ <li><a href="../Sprout/Base/ClassMethods.html">Sprout::Base::ClassMethods</a></li>
106
+
107
+ <li><a href="../Sprout/Concern.html">Sprout::Concern</a></li>
108
+
109
+ <li><a href="../Sprout/Errors.html">Sprout::Errors</a></li>
110
+
111
+ <li><a href="../Sprout/Errors/ArchiveUnpackerError.html">Sprout::Errors::ArchiveUnpackerError</a></li>
112
+
113
+ <li><a href="../Sprout/Errors/DestinationExistsError.html">Sprout::Errors::DestinationExistsError</a></li>
114
+
115
+ <li><a href="../Sprout/Errors/DuplicateMemberError.html">Sprout::Errors::DuplicateMemberError</a></li>
116
+
117
+ <li><a href="../Sprout/Errors/ExecutableError.html">Sprout::Errors::ExecutableError</a></li>
118
+
119
+ <li><a href="../Sprout/Errors/ExecutableRegistrationError.html">Sprout::Errors::ExecutableRegistrationError</a></li>
120
+
121
+ <li><a href="../Sprout/Errors/ExecutionError.html">Sprout::Errors::ExecutionError</a></li>
122
+
123
+ <li><a href="../Sprout/Errors/GeneratorError.html">Sprout::Errors::GeneratorError</a></li>
124
+
125
+ <li><a href="../Sprout/Errors/InvalidArgumentError.html">Sprout::Errors::InvalidArgumentError</a></li>
126
+
127
+ <li><a href="../Sprout/Errors/LoadError.html">Sprout::Errors::LoadError</a></li>
128
+
129
+ <li><a href="../Sprout/Errors/MissingArgumentError.html">Sprout::Errors::MissingArgumentError</a></li>
130
+
131
+ <li><a href="../Sprout/Errors/MissingExecutableError.html">Sprout::Errors::MissingExecutableError</a></li>
132
+
133
+ <li><a href="../Sprout/Errors/MissingGeneratorError.html">Sprout::Errors::MissingGeneratorError</a></li>
134
+
135
+ <li><a href="../Sprout/Errors/MissingTemplateError.html">Sprout::Errors::MissingTemplateError</a></li>
136
+
137
+ <li><a href="../Sprout/Errors/ProcessRunnerError.html">Sprout::Errors::ProcessRunnerError</a></li>
138
+
139
+ <li><a href="../Sprout/Errors/RemoteFileLoaderError.html">Sprout::Errors::RemoteFileLoaderError</a></li>
140
+
141
+ <li><a href="../Sprout/Errors/SproutError.html">Sprout::Errors::SproutError</a></li>
142
+
143
+ <li><a href="../Sprout/Errors/UnknownArchiveType.html">Sprout::Errors::UnknownArchiveType</a></li>
144
+
145
+ <li><a href="../Sprout/Errors/UsageError.html">Sprout::Errors::UsageError</a></li>
146
+
147
+ <li><a href="../Sprout/Errors/ValidationError.html">Sprout::Errors::ValidationError</a></li>
148
+
149
+ <li><a href="../Sprout/Errors/VersionRequirementNotMetError.html">Sprout::Errors::VersionRequirementNotMetError</a></li>
150
+
151
+ <li><a href="../Sprout/Executable.html">Sprout::Executable</a></li>
152
+
153
+ <li><a href="../Sprout/Executable/Boolean.html">Sprout::Executable::Boolean</a></li>
154
+
155
+ <li><a href="../Sprout/Executable/ClassMethods.html">Sprout::Executable::ClassMethods</a></li>
156
+
157
+ <li><a href="../Sprout/Executable/CollectionParam.html">Sprout::Executable::CollectionParam</a></li>
158
+
159
+ <li><a href="../Sprout/Executable/FileParam.html">Sprout::Executable::FileParam</a></li>
160
+
161
+ <li><a href="../Sprout/Executable/Files.html">Sprout::Executable::Files</a></li>
162
+
163
+ <li><a href="../Sprout/Executable/InstanceMethods.html">Sprout::Executable::InstanceMethods</a></li>
164
+
165
+ <li><a href="../Sprout/Executable/Number.html">Sprout::Executable::Number</a></li>
166
+
167
+ <li><a href="../Sprout/Executable/Param.html">Sprout::Executable::Param</a></li>
168
+
169
+ <li><a href="../Sprout/Executable/ParameterFactory.html">Sprout::Executable::ParameterFactory</a></li>
170
+
171
+ <li><a href="../Sprout/Executable/Path.html">Sprout::Executable::Path</a></li>
172
+
173
+ <li><a href="../Sprout/Executable/Paths.html">Sprout::Executable::Paths</a></li>
174
+
175
+ <li><a href="../Sprout/Executable/StringParam.html">Sprout::Executable::StringParam</a></li>
176
+
177
+ <li><a href="../Sprout/Executable/Strings.html">Sprout::Executable::Strings</a></li>
178
+
179
+ <li><a href="../Sprout/Executable/Url.html">Sprout::Executable::Url</a></li>
180
+
181
+ <li><a href="../Sprout/Executable/Urls.html">Sprout::Executable::Urls</a></li>
182
+
183
+ <li><a href="../Sprout/FileTarget.html">Sprout::FileTarget</a></li>
184
+
185
+ <li><a href="../Sprout/Generator.html">Sprout::Generator</a></li>
186
+
187
+ <li><a href="../Sprout/Generator/Base.html">Sprout::Generator::Base</a></li>
188
+
189
+ <li><a href="../Sprout/Generator/Command.html">Sprout::Generator::Command</a></li>
190
+
191
+ <li><a href="../Sprout/Generator/DirectoryManifest.html">Sprout::Generator::DirectoryManifest</a></li>
192
+
193
+ <li><a href="../Sprout/Generator/FileManifest.html">Sprout::Generator::FileManifest</a></li>
194
+
195
+ <li><a href="../Sprout/Generator/Manifest.html">Sprout::Generator::Manifest</a></li>
196
+
197
+ <li><a href="../Sprout/Generator/TemplateManifest.html">Sprout::Generator::TemplateManifest</a></li>
198
+
199
+ <li><a href="../Sprout/GeneratorGenerator.html">Sprout::GeneratorGenerator</a></li>
200
+
201
+ <li><a href="../Sprout/Library.html">Sprout::Library</a></li>
202
+
203
+ <li><a href="../Sprout/LibraryGenerator.html">Sprout::LibraryGenerator</a></li>
204
+
205
+ <li><a href="../Sprout/Platform.html">Sprout::Platform</a></li>
206
+
207
+ <li><a href="../Sprout/ProcessRunner.html">Sprout::ProcessRunner</a></li>
208
+
209
+ <li><a href="../Sprout/RDocParser.html">Sprout::RDocParser</a></li>
210
+
211
+ <li><a href="../Sprout/RemoteFileLoader.html">Sprout::RemoteFileLoader</a></li>
212
+
213
+ <li><a href="../Sprout/RemoteFileTarget.html">Sprout::RemoteFileTarget</a></li>
214
+
215
+ <li><a href="../Sprout/RubyFeature.html">Sprout::RubyFeature</a></li>
216
+
217
+ <li><a href="../Sprout/RubyFeature/ClassMethods.html">Sprout::RubyFeature::ClassMethods</a></li>
218
+
219
+ <li><a href="../Sprout/RubyGenerator.html">Sprout::RubyGenerator</a></li>
220
+
221
+ <li><a href="../Sprout/Specification.html">Sprout::Specification</a></li>
222
+
223
+ <li><a href="../Sprout/System.html">Sprout::System</a></li>
224
+
225
+ <li><a href="../Sprout/System/BaseSystem.html">Sprout::System::BaseSystem</a></li>
226
+
227
+ <li><a href="../Sprout/System/JavaSystem.html">Sprout::System::JavaSystem</a></li>
228
+
229
+ <li><a href="../Sprout/System/OSXSystem.html">Sprout::System::OSXSystem</a></li>
230
+
231
+ <li><a href="../Sprout/System/UnixSystem.html">Sprout::System::UnixSystem</a></li>
232
+
233
+ <li><a href="../Sprout/System/VistaSystem.html">Sprout::System::VistaSystem</a></li>
234
+
235
+ <li><a href="../Sprout/System/WinNixSystem.html">Sprout::System::WinNixSystem</a></li>
236
+
237
+ <li><a href="../Sprout/System/WinSystem.html">Sprout::System::WinSystem</a></li>
238
+
239
+ <li><a href="../Sprout/ToolGenerator.html">Sprout::ToolGenerator</a></li>
240
+
241
+ <li><a href="../<.html"><</a></li>
242
+
243
+ <li><a href="../Dir.html">Dir</a></li>
244
+
245
+ <li><a href="../Object.html">Object</a></li>
246
+
247
+ <li><a href="../String.html">String</a></li>
248
+
249
+ </ul>
250
+ <div id="no-class-search-results" style="display: none;">No matching classes.</div>
251
+ </div>
252
+
253
+
254
+ </div>
255
+ </div>
256
+
257
+ <div id="documentation">
258
+ <h1 class="class">Sprout::GeneratorGenerator</h1>
259
+
260
+ <div id="description">
261
+
262
+ </div>
263
+
264
+ <!-- Constants -->
265
+
266
+
267
+ <!-- Attributes -->
268
+
269
+
270
+ <!-- Methods -->
271
+
272
+ <div id="public-instance-method-details" class="method-section section">
273
+ <h3 class="section-header">Public Instance Methods</h3>
274
+
275
+
276
+ <div id="manifest-method" class="method-detail ">
277
+ <a name="method-i-manifest"></a>
278
+
279
+ <div class="method-heading">
280
+
281
+ <span class="method-name">manifest</span><span
282
+ class="method-args">()</span>
283
+ <span class="method-click-advice">click to toggle source</span>
284
+
285
+ </div>
286
+
287
+ <div class="method-description">
288
+
289
+
290
+
291
+
292
+
293
+ <div class="method-source-code"
294
+ id="manifest-source">
295
+ <pre>
296
+ <span class="ruby-comment cmt"># File lib/sprout/generators/generator/generator_generator.rb, line 15</span>
297
+ 15: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">manifest</span>
298
+ 16: <span class="ruby-identifier">directory</span> <span class="ruby-identifier">bin</span> <span class="ruby-keyword kw">do</span>
299
+ 17: <span class="ruby-identifier">template</span> <span class="ruby-node">&quot;#{input.snake_case}&quot;</span>, <span class="ruby-value str">&quot;generator_executable&quot;</span>
300
+ 18: <span class="ruby-keyword kw">end</span>
301
+ 19:
302
+ 20: <span class="ruby-identifier">directory</span> <span class="ruby-identifier">lib</span> <span class="ruby-keyword kw">do</span>
303
+ 21: <span class="ruby-comment cmt">#We need to add a folder with the same name as the module to be used in order to faux namespace our generators to avoid collisions from super classes</span>
304
+ 22: <span class="ruby-identifier">directory</span> <span class="ruby-identifier">namespace</span> <span class="ruby-keyword kw">do</span>
305
+ 23: <span class="ruby-identifier">directory</span> <span class="ruby-identifier">generators</span> <span class="ruby-keyword kw">do</span>
306
+ 24: <span class="ruby-identifier">template</span> <span class="ruby-node">&quot;#{input.snake_case}_generator.rb&quot;</span>, <span class="ruby-value str">&quot;generator_class.rb&quot;</span>
307
+ 25: <span class="ruby-identifier">directory</span> <span class="ruby-value str">&quot;templates&quot;</span> <span class="ruby-keyword kw">do</span>
308
+ 26: <span class="ruby-identifier">template</span> <span class="ruby-node">&quot;#{input.camel_case}#{extension}&quot;</span>, <span class="ruby-value str">&quot;generator_template&quot;</span>
309
+ 27: <span class="ruby-keyword kw">end</span>
310
+ 28: <span class="ruby-keyword kw">end</span>
311
+ 29: <span class="ruby-keyword kw">end</span>
312
+ 30: <span class="ruby-keyword kw">end</span>
313
+ 31:
314
+ 32: <span class="ruby-identifier">directory</span> <span class="ruby-identifier">test</span> <span class="ruby-keyword kw">do</span>
315
+ 33: <span class="ruby-identifier">directory</span> <span class="ruby-identifier">unit</span> <span class="ruby-keyword kw">do</span>
316
+ 34: <span class="ruby-identifier">template</span> <span class="ruby-node">&quot;#{input.snake_case}_generator_test.rb&quot;</span>, <span class="ruby-value str">&quot;generator_test.rb&quot;</span>
317
+ 35: <span class="ruby-identifier">template</span> <span class="ruby-value str">&quot;test_helper.rb&quot;</span>, <span class="ruby-value str">&quot;generator_test_helper.rb&quot;</span>
318
+ 36: <span class="ruby-keyword kw">end</span>
319
+ 37: <span class="ruby-identifier">directory</span> <span class="ruby-identifier">fixtures</span> <span class="ruby-keyword kw">do</span>
320
+ 38: <span class="ruby-identifier">directory</span> <span class="ruby-value str">&quot;generators&quot;</span>
321
+ 39: <span class="ruby-keyword kw">end</span>
322
+ 40: <span class="ruby-keyword kw">end</span>
323
+ 41:
324
+ 42: <span class="ruby-comment cmt">#This should actually be moved to the library generator</span>
325
+ 43: <span class="ruby-comment cmt">#directory vendor</span>
326
+ 44:
327
+ 45: <span class="ruby-keyword kw">end</span></pre>
328
+ </div>
329
+
330
+ </div>
331
+
332
+
333
+
334
+
335
+ </div>
336
+
337
+
338
+ </div>
339
+
340
+
341
+ </div>
342
+
343
+
344
+ <div id="rdoc-debugging-section-dump" class="debugging-section">
345
+
346
+ <p>Disabled; run with --debug to generate this.</p>
347
+
348
+ </div>
349
+
350
+ <div id="validator-badges">
351
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
352
+ <p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
353
+ Rdoc Generator</a> 1.1.6</small>.</p>
354
+ </div>
355
+
356
+ </body>
357
+ </html>
358
+
@@ -0,0 +1,646 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
3
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5
+ <head>
6
+ <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
7
+
8
+ <title>Module: Sprout::Library</title>
9
+
10
+ <link rel="stylesheet" href="../rdoc.css" type="text/css" media="screen" />
11
+
12
+ <script src="../js/jquery.js" type="text/javascript"
13
+ charset="utf-8"></script>
14
+ <script src="../js/thickbox-compressed.js" type="text/javascript"
15
+ charset="utf-8"></script>
16
+ <script src="../js/quicksearch.js" type="text/javascript"
17
+ charset="utf-8"></script>
18
+ <script src="../js/darkfish.js" type="text/javascript"
19
+ charset="utf-8"></script>
20
+
21
+ </head>
22
+ <body class="module">
23
+
24
+ <div id="metadata">
25
+ <div id="home-metadata">
26
+ <div id="home-section" class="section">
27
+ <h3 class="section-header">
28
+ <a href="../index.html">Home</a>
29
+ <a href="../index.html#classes">Classes</a>
30
+ <a href="../index.html#methods">Methods</a>
31
+ </h3>
32
+ </div>
33
+ </div>
34
+
35
+ <div id="file-metadata">
36
+ <div id="file-list-section" class="section">
37
+ <h3 class="section-header">In Files</h3>
38
+ <div class="section-body">
39
+ <ul>
40
+
41
+ <li><a href="../lib/sprout/library_rb.html?TB_iframe=true&amp;height=550&amp;width=785"
42
+ class="thickbox" title="lib/sprout/library.rb">lib/sprout/library.rb</a></li>
43
+
44
+ </ul>
45
+ </div>
46
+ </div>
47
+
48
+
49
+ </div>
50
+
51
+ <div id="class-metadata">
52
+
53
+ <!-- Parent Class -->
54
+
55
+
56
+ <!-- Namespace Contents -->
57
+
58
+
59
+ <!-- Method Quickref -->
60
+
61
+ <div id="method-list-section" class="section">
62
+ <h3 class="section-header">Methods</h3>
63
+ <ul class="link-list">
64
+
65
+ <li><a href="#method-c-define_directory_copy_task">::define_directory_copy_task</a></li>
66
+
67
+ <li><a href="#method-c-define_file_copy_task">::define_file_copy_task</a></li>
68
+
69
+ <li><a href="#method-c-define_file_task">::define_file_task</a></li>
70
+
71
+ <li><a href="#method-c-define_lib_dir_task_if_necessary">::define_lib_dir_task_if_necessary</a></li>
72
+
73
+ <li><a href="#method-c-define_path_task">::define_path_task</a></li>
74
+
75
+ <li><a href="#method-c-define_task">::define_task</a></li>
76
+
77
+ <li><a href="#method-c-project_path">::project_path</a></li>
78
+
79
+ <li><a href="#method-c-project_path%3D">::project_path=</a></li>
80
+
81
+ </ul>
82
+ </div>
83
+
84
+
85
+ <!-- Included Modules -->
86
+
87
+ <div id="includes-section" class="section">
88
+ <h3 class="section-header">Included Modules</h3>
89
+ <ul class="link-list">
90
+
91
+
92
+ <li><span class="include">RubyFeature</span></li>
93
+
94
+
95
+ </ul>
96
+ </div>
97
+
98
+ </div>
99
+
100
+ <div id="project-metadata">
101
+
102
+
103
+
104
+ <div id="classindex-section" class="section project-section">
105
+ <h3 class="section-header">Class Index
106
+ <span class="search-toggle"><img src="../images/find.png"
107
+ height="16" width="16" alt="[+]"
108
+ title="show/hide quicksearch" /></span></h3>
109
+ <form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
110
+ <fieldset>
111
+ <legend>Quicksearch</legend>
112
+ <input type="text" name="quicksearch" value=""
113
+ class="quicksearch-field" />
114
+ </fieldset>
115
+ </form>
116
+
117
+ <ul class="link-list">
118
+
119
+ <li><a href="../Sprout/ArchiveUnpacker.html">Sprout::ArchiveUnpacker</a></li>
120
+
121
+ <li><a href="../Sprout/Base.html">Sprout::Base</a></li>
122
+
123
+ <li><a href="../Sprout/Base/ClassMethods.html">Sprout::Base::ClassMethods</a></li>
124
+
125
+ <li><a href="../Sprout/Concern.html">Sprout::Concern</a></li>
126
+
127
+ <li><a href="../Sprout/Errors.html">Sprout::Errors</a></li>
128
+
129
+ <li><a href="../Sprout/Errors/ArchiveUnpackerError.html">Sprout::Errors::ArchiveUnpackerError</a></li>
130
+
131
+ <li><a href="../Sprout/Errors/DestinationExistsError.html">Sprout::Errors::DestinationExistsError</a></li>
132
+
133
+ <li><a href="../Sprout/Errors/DuplicateMemberError.html">Sprout::Errors::DuplicateMemberError</a></li>
134
+
135
+ <li><a href="../Sprout/Errors/ExecutableError.html">Sprout::Errors::ExecutableError</a></li>
136
+
137
+ <li><a href="../Sprout/Errors/ExecutableRegistrationError.html">Sprout::Errors::ExecutableRegistrationError</a></li>
138
+
139
+ <li><a href="../Sprout/Errors/ExecutionError.html">Sprout::Errors::ExecutionError</a></li>
140
+
141
+ <li><a href="../Sprout/Errors/GeneratorError.html">Sprout::Errors::GeneratorError</a></li>
142
+
143
+ <li><a href="../Sprout/Errors/InvalidArgumentError.html">Sprout::Errors::InvalidArgumentError</a></li>
144
+
145
+ <li><a href="../Sprout/Errors/LoadError.html">Sprout::Errors::LoadError</a></li>
146
+
147
+ <li><a href="../Sprout/Errors/MissingArgumentError.html">Sprout::Errors::MissingArgumentError</a></li>
148
+
149
+ <li><a href="../Sprout/Errors/MissingExecutableError.html">Sprout::Errors::MissingExecutableError</a></li>
150
+
151
+ <li><a href="../Sprout/Errors/MissingGeneratorError.html">Sprout::Errors::MissingGeneratorError</a></li>
152
+
153
+ <li><a href="../Sprout/Errors/MissingTemplateError.html">Sprout::Errors::MissingTemplateError</a></li>
154
+
155
+ <li><a href="../Sprout/Errors/ProcessRunnerError.html">Sprout::Errors::ProcessRunnerError</a></li>
156
+
157
+ <li><a href="../Sprout/Errors/RemoteFileLoaderError.html">Sprout::Errors::RemoteFileLoaderError</a></li>
158
+
159
+ <li><a href="../Sprout/Errors/SproutError.html">Sprout::Errors::SproutError</a></li>
160
+
161
+ <li><a href="../Sprout/Errors/UnknownArchiveType.html">Sprout::Errors::UnknownArchiveType</a></li>
162
+
163
+ <li><a href="../Sprout/Errors/UsageError.html">Sprout::Errors::UsageError</a></li>
164
+
165
+ <li><a href="../Sprout/Errors/ValidationError.html">Sprout::Errors::ValidationError</a></li>
166
+
167
+ <li><a href="../Sprout/Errors/VersionRequirementNotMetError.html">Sprout::Errors::VersionRequirementNotMetError</a></li>
168
+
169
+ <li><a href="../Sprout/Executable.html">Sprout::Executable</a></li>
170
+
171
+ <li><a href="../Sprout/Executable/Boolean.html">Sprout::Executable::Boolean</a></li>
172
+
173
+ <li><a href="../Sprout/Executable/ClassMethods.html">Sprout::Executable::ClassMethods</a></li>
174
+
175
+ <li><a href="../Sprout/Executable/CollectionParam.html">Sprout::Executable::CollectionParam</a></li>
176
+
177
+ <li><a href="../Sprout/Executable/FileParam.html">Sprout::Executable::FileParam</a></li>
178
+
179
+ <li><a href="../Sprout/Executable/Files.html">Sprout::Executable::Files</a></li>
180
+
181
+ <li><a href="../Sprout/Executable/InstanceMethods.html">Sprout::Executable::InstanceMethods</a></li>
182
+
183
+ <li><a href="../Sprout/Executable/Number.html">Sprout::Executable::Number</a></li>
184
+
185
+ <li><a href="../Sprout/Executable/Param.html">Sprout::Executable::Param</a></li>
186
+
187
+ <li><a href="../Sprout/Executable/ParameterFactory.html">Sprout::Executable::ParameterFactory</a></li>
188
+
189
+ <li><a href="../Sprout/Executable/Path.html">Sprout::Executable::Path</a></li>
190
+
191
+ <li><a href="../Sprout/Executable/Paths.html">Sprout::Executable::Paths</a></li>
192
+
193
+ <li><a href="../Sprout/Executable/StringParam.html">Sprout::Executable::StringParam</a></li>
194
+
195
+ <li><a href="../Sprout/Executable/Strings.html">Sprout::Executable::Strings</a></li>
196
+
197
+ <li><a href="../Sprout/Executable/Url.html">Sprout::Executable::Url</a></li>
198
+
199
+ <li><a href="../Sprout/Executable/Urls.html">Sprout::Executable::Urls</a></li>
200
+
201
+ <li><a href="../Sprout/FileTarget.html">Sprout::FileTarget</a></li>
202
+
203
+ <li><a href="../Sprout/Generator.html">Sprout::Generator</a></li>
204
+
205
+ <li><a href="../Sprout/Generator/Base.html">Sprout::Generator::Base</a></li>
206
+
207
+ <li><a href="../Sprout/Generator/Command.html">Sprout::Generator::Command</a></li>
208
+
209
+ <li><a href="../Sprout/Generator/DirectoryManifest.html">Sprout::Generator::DirectoryManifest</a></li>
210
+
211
+ <li><a href="../Sprout/Generator/FileManifest.html">Sprout::Generator::FileManifest</a></li>
212
+
213
+ <li><a href="../Sprout/Generator/Manifest.html">Sprout::Generator::Manifest</a></li>
214
+
215
+ <li><a href="../Sprout/Generator/TemplateManifest.html">Sprout::Generator::TemplateManifest</a></li>
216
+
217
+ <li><a href="../Sprout/GeneratorGenerator.html">Sprout::GeneratorGenerator</a></li>
218
+
219
+ <li><a href="../Sprout/Library.html">Sprout::Library</a></li>
220
+
221
+ <li><a href="../Sprout/LibraryGenerator.html">Sprout::LibraryGenerator</a></li>
222
+
223
+ <li><a href="../Sprout/Platform.html">Sprout::Platform</a></li>
224
+
225
+ <li><a href="../Sprout/ProcessRunner.html">Sprout::ProcessRunner</a></li>
226
+
227
+ <li><a href="../Sprout/RDocParser.html">Sprout::RDocParser</a></li>
228
+
229
+ <li><a href="../Sprout/RemoteFileLoader.html">Sprout::RemoteFileLoader</a></li>
230
+
231
+ <li><a href="../Sprout/RemoteFileTarget.html">Sprout::RemoteFileTarget</a></li>
232
+
233
+ <li><a href="../Sprout/RubyFeature.html">Sprout::RubyFeature</a></li>
234
+
235
+ <li><a href="../Sprout/RubyFeature/ClassMethods.html">Sprout::RubyFeature::ClassMethods</a></li>
236
+
237
+ <li><a href="../Sprout/RubyGenerator.html">Sprout::RubyGenerator</a></li>
238
+
239
+ <li><a href="../Sprout/Specification.html">Sprout::Specification</a></li>
240
+
241
+ <li><a href="../Sprout/System.html">Sprout::System</a></li>
242
+
243
+ <li><a href="../Sprout/System/BaseSystem.html">Sprout::System::BaseSystem</a></li>
244
+
245
+ <li><a href="../Sprout/System/JavaSystem.html">Sprout::System::JavaSystem</a></li>
246
+
247
+ <li><a href="../Sprout/System/OSXSystem.html">Sprout::System::OSXSystem</a></li>
248
+
249
+ <li><a href="../Sprout/System/UnixSystem.html">Sprout::System::UnixSystem</a></li>
250
+
251
+ <li><a href="../Sprout/System/VistaSystem.html">Sprout::System::VistaSystem</a></li>
252
+
253
+ <li><a href="../Sprout/System/WinNixSystem.html">Sprout::System::WinNixSystem</a></li>
254
+
255
+ <li><a href="../Sprout/System/WinSystem.html">Sprout::System::WinSystem</a></li>
256
+
257
+ <li><a href="../Sprout/ToolGenerator.html">Sprout::ToolGenerator</a></li>
258
+
259
+ <li><a href="../<.html"><</a></li>
260
+
261
+ <li><a href="../Dir.html">Dir</a></li>
262
+
263
+ <li><a href="../Object.html">Object</a></li>
264
+
265
+ <li><a href="../String.html">String</a></li>
266
+
267
+ </ul>
268
+ <div id="no-class-search-results" style="display: none;">No matching classes.</div>
269
+ </div>
270
+
271
+
272
+ </div>
273
+ </div>
274
+
275
+ <div id="documentation">
276
+ <h1 class="module">Sprout::Library</h1>
277
+
278
+ <div id="description">
279
+
280
+ </div>
281
+
282
+ <!-- Constants -->
283
+
284
+ <div id="constants-list" class="section">
285
+ <h3 class="section-header">Constants</h3>
286
+ <dl>
287
+
288
+ <dt><a name="TASK_NAME">TASK_NAME</a></dt>
289
+
290
+ <dd class="description"></dd>
291
+
292
+
293
+ </dl>
294
+ </div>
295
+
296
+
297
+ <!-- Attributes -->
298
+
299
+
300
+ <!-- Methods -->
301
+
302
+ <div id="public-class-method-details" class="method-section section">
303
+ <h3 class="section-header">Public Class Methods</h3>
304
+
305
+
306
+ <div id="define-task-method" class="method-detail ">
307
+ <a name="method-c-define_task"></a>
308
+
309
+ <div class="method-heading">
310
+
311
+ <span class="method-name">define_task</span><span
312
+ class="method-args">(pkg_name, type=nil, version=nil)</span>
313
+ <span class="method-click-advice">click to toggle source</span>
314
+
315
+ </div>
316
+
317
+ <div class="method-description">
318
+
319
+ <p>
320
+ Create Rake tasks that will load and install a particular library.
321
+ </p>
322
+
323
+
324
+
325
+ <div class="method-source-code"
326
+ id="define-task-source">
327
+ <pre>
328
+ <span class="ruby-comment cmt"># File lib/sprout/library.rb, line 29</span>
329
+ 29: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">define_task</span> <span class="ruby-identifier">pkg_name</span>, <span class="ruby-identifier">type</span>=<span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">version</span>=<span class="ruby-keyword kw">nil</span>
330
+ 30: <span class="ruby-identifier">library</span> = <span class="ruby-constant">Sprout</span><span class="ruby-operator">::</span><span class="ruby-constant">Library</span>.<span class="ruby-identifier">load</span> <span class="ruby-identifier">type</span>, <span class="ruby-identifier">pkg_name</span>.<span class="ruby-identifier">to_s</span>, <span class="ruby-identifier">version</span>
331
+ 31: <span class="ruby-identifier">library</span>.<span class="ruby-identifier">installation_task</span> = <span class="ruby-identifier">task</span> <span class="ruby-identifier">pkg_name</span>
332
+ 32:
333
+ 33: <span class="ruby-identifier">define_lib_dir_task_if_necessary</span>
334
+ 34: <span class="ruby-identifier">path_or_paths</span> = <span class="ruby-identifier">library</span>.<span class="ruby-identifier">path</span>
335
+ 35: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">path_or_paths</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">Array</span>)
336
+ 36: <span class="ruby-comment cmt"># TODO: Need to add support for merging these directories</span>
337
+ 37: <span class="ruby-comment cmt"># rather than simply clobbering...</span>
338
+ 38: <span class="ruby-identifier">path_or_paths</span>.<span class="ruby-identifier">each</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">p</span><span class="ruby-operator">|</span> <span class="ruby-identifier">define_path_task</span> <span class="ruby-identifier">pkg_name</span>, <span class="ruby-identifier">library</span>, <span class="ruby-identifier">p</span> }
339
+ 39: <span class="ruby-keyword kw">else</span>
340
+ 40: <span class="ruby-identifier">define_path_task</span> <span class="ruby-identifier">pkg_name</span>, <span class="ruby-identifier">library</span>, <span class="ruby-identifier">path_or_paths</span>
341
+ 41: <span class="ruby-keyword kw">end</span>
342
+ 42: <span class="ruby-identifier">library</span>
343
+ 43: <span class="ruby-keyword kw">end</span></pre>
344
+ </div>
345
+
346
+ </div>
347
+
348
+
349
+
350
+
351
+ </div>
352
+
353
+
354
+ <div id="project-path-method" class="method-detail ">
355
+ <a name="method-c-project_path"></a>
356
+
357
+ <div class="method-heading">
358
+
359
+ <span class="method-name">project_path</span><span
360
+ class="method-args">()</span>
361
+ <span class="method-click-advice">click to toggle source</span>
362
+
363
+ </div>
364
+
365
+ <div class="method-description">
366
+
367
+ <p>
368
+ The path within a project where libraries should be added.
369
+ </p>
370
+ <p>
371
+ Defaults to &#8216;lib&#8217;
372
+ </p>
373
+
374
+
375
+
376
+ <div class="method-source-code"
377
+ id="project-path-source">
378
+ <pre>
379
+ <span class="ruby-comment cmt"># File lib/sprout/library.rb, line 22</span>
380
+ 22: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">project_path</span>
381
+ 23: <span class="ruby-ivar">@project_path</span> <span class="ruby-operator">||=</span> <span class="ruby-value str">'lib'</span>
382
+ 24: <span class="ruby-keyword kw">end</span></pre>
383
+ </div>
384
+
385
+ </div>
386
+
387
+
388
+
389
+
390
+ </div>
391
+
392
+
393
+ <div id="project-path--method" class="method-detail ">
394
+ <a name="method-c-project_path%3D"></a>
395
+
396
+ <div class="method-heading">
397
+
398
+ <span class="method-name">project_path=</span><span
399
+ class="method-args">(path)</span>
400
+ <span class="method-click-advice">click to toggle source</span>
401
+
402
+ </div>
403
+
404
+ <div class="method-description">
405
+
406
+ <p>
407
+ Set the path within a project where libraries should be loaded.
408
+ </p>
409
+
410
+
411
+
412
+ <div class="method-source-code"
413
+ id="project-path--source">
414
+ <pre>
415
+ <span class="ruby-comment cmt"># File lib/sprout/library.rb, line 13</span>
416
+ 13: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">project_path=</span>(<span class="ruby-identifier">path</span>)
417
+ 14: <span class="ruby-ivar">@project_path</span> = <span class="ruby-identifier">path</span>
418
+ 15: <span class="ruby-keyword kw">end</span></pre>
419
+ </div>
420
+
421
+ </div>
422
+
423
+
424
+
425
+
426
+ </div>
427
+
428
+
429
+ </div>
430
+
431
+ <div id="protected-class-method-details" class="method-section section">
432
+ <h3 class="section-header">Protected Class Methods</h3>
433
+
434
+
435
+ <div id="define-directory-copy-task-method" class="method-detail ">
436
+ <a name="method-c-define_directory_copy_task"></a>
437
+
438
+ <div class="method-heading">
439
+
440
+ <span class="method-name">define_directory_copy_task</span><span
441
+ class="method-args">(path, installation_path)</span>
442
+ <span class="method-click-advice">click to toggle source</span>
443
+
444
+ </div>
445
+
446
+ <div class="method-description">
447
+
448
+
449
+
450
+
451
+
452
+ <div class="method-source-code"
453
+ id="define-directory-copy-task-source">
454
+ <pre>
455
+ <span class="ruby-comment cmt"># File lib/sprout/library.rb, line 65</span>
456
+ 65: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">define_directory_copy_task</span> <span class="ruby-identifier">path</span>, <span class="ruby-identifier">installation_path</span>
457
+ 66: <span class="ruby-identifier">define_file_task</span> <span class="ruby-identifier">installation_path</span> <span class="ruby-keyword kw">do</span>
458
+ 67: <span class="ruby-constant">FileUtils</span>.<span class="ruby-identifier">cp_r</span> <span class="ruby-identifier">path</span>, <span class="ruby-identifier">installation_path</span>
459
+ 68: <span class="ruby-constant">Sprout</span><span class="ruby-operator">::</span><span class="ruby-constant">Log</span>.<span class="ruby-identifier">puts</span> <span class="ruby-node">&quot;&gt;&gt; Copied files from: (#{path}) to: (#{installation_path})&quot;</span>
460
+ 69: <span class="ruby-keyword kw">end</span>
461
+ 70: <span class="ruby-keyword kw">end</span></pre>
462
+ </div>
463
+
464
+ </div>
465
+
466
+
467
+
468
+
469
+ </div>
470
+
471
+
472
+ <div id="define-file-copy-task-method" class="method-detail ">
473
+ <a name="method-c-define_file_copy_task"></a>
474
+
475
+ <div class="method-heading">
476
+
477
+ <span class="method-name">define_file_copy_task</span><span
478
+ class="method-args">(path, installation_path)</span>
479
+ <span class="method-click-advice">click to toggle source</span>
480
+
481
+ </div>
482
+
483
+ <div class="method-description">
484
+
485
+
486
+
487
+
488
+
489
+ <div class="method-source-code"
490
+ id="define-file-copy-task-source">
491
+ <pre>
492
+ <span class="ruby-comment cmt"># File lib/sprout/library.rb, line 72</span>
493
+ 72: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">define_file_copy_task</span> <span class="ruby-identifier">path</span>, <span class="ruby-identifier">installation_path</span>
494
+ 73: <span class="ruby-identifier">task_name</span> = <span class="ruby-node">&quot;#{installation_path}/#{File.basename(path)}&quot;</span>
495
+ 74: <span class="ruby-identifier">define_file_task</span> <span class="ruby-identifier">task_name</span> <span class="ruby-keyword kw">do</span>
496
+ 75: <span class="ruby-constant">FileUtils</span>.<span class="ruby-identifier">mkdir_p</span> <span class="ruby-identifier">installation_path</span>
497
+ 76: <span class="ruby-constant">FileUtils</span>.<span class="ruby-identifier">cp</span> <span class="ruby-identifier">path</span>, <span class="ruby-node">&quot;#{installation_path}/&quot;</span>
498
+ 77: <span class="ruby-constant">Sprout</span><span class="ruby-operator">::</span><span class="ruby-constant">Log</span>.<span class="ruby-identifier">puts</span> <span class="ruby-node">&quot;&gt;&gt; Copied file from: (#{path}) to: (#{task_name})&quot;</span>
499
+ 78: <span class="ruby-keyword kw">end</span>
500
+ 79: <span class="ruby-keyword kw">end</span></pre>
501
+ </div>
502
+
503
+ </div>
504
+
505
+
506
+
507
+
508
+ </div>
509
+
510
+
511
+ <div id="define-file-task-method" class="method-detail ">
512
+ <a name="method-c-define_file_task"></a>
513
+
514
+ <div class="method-heading">
515
+
516
+ <span class="method-name">define_file_task</span><span
517
+ class="method-args">(name)</span>
518
+ <span class="method-click-advice">click to toggle source</span>
519
+
520
+ </div>
521
+
522
+ <div class="method-description">
523
+
524
+
525
+
526
+
527
+
528
+ <div class="method-source-code"
529
+ id="define-file-task-source">
530
+ <pre>
531
+ <span class="ruby-comment cmt"># File lib/sprout/library.rb, line 81</span>
532
+ 81: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">define_file_task</span> <span class="ruby-identifier">name</span>
533
+ 82: <span class="ruby-identifier">file</span> <span class="ruby-identifier">name</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">t</span><span class="ruby-operator">|</span>
534
+ 83: <span class="ruby-keyword kw">yield</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">block_given?</span>
535
+ 84: <span class="ruby-keyword kw">end</span>
536
+ 85: <span class="ruby-identifier">task</span> <span class="ruby-constant">Sprout</span><span class="ruby-operator">::</span><span class="ruby-constant">Library</span><span class="ruby-operator">::</span><span class="ruby-constant">TASK_NAME</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">name</span>
537
+ 86: <span class="ruby-keyword kw">end</span></pre>
538
+ </div>
539
+
540
+ </div>
541
+
542
+
543
+
544
+
545
+ </div>
546
+
547
+
548
+ <div id="define-lib-dir-task-if-necessary-method" class="method-detail ">
549
+ <a name="method-c-define_lib_dir_task_if_necessary"></a>
550
+
551
+ <div class="method-heading">
552
+
553
+ <span class="method-name">define_lib_dir_task_if_necessary</span><span
554
+ class="method-args">()</span>
555
+ <span class="method-click-advice">click to toggle source</span>
556
+
557
+ </div>
558
+
559
+ <div class="method-description">
560
+
561
+
562
+
563
+
564
+
565
+ <div class="method-source-code"
566
+ id="define-lib-dir-task-if-necessary-source">
567
+ <pre>
568
+ <span class="ruby-comment cmt"># File lib/sprout/library.rb, line 47</span>
569
+ 47: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">define_lib_dir_task_if_necessary</span>
570
+ 48: <span class="ruby-keyword kw">if</span> <span class="ruby-operator">!</span><span class="ruby-constant">File</span>.<span class="ruby-identifier">exists?</span>(<span class="ruby-identifier">project_path</span>)
571
+ 49: <span class="ruby-identifier">define_file_task</span> <span class="ruby-identifier">project_path</span> <span class="ruby-keyword kw">do</span>
572
+ 50: <span class="ruby-constant">FileUtils</span>.<span class="ruby-identifier">mkdir_p</span> <span class="ruby-identifier">project_path</span>
573
+ 51: <span class="ruby-constant">Sprout</span><span class="ruby-operator">::</span><span class="ruby-constant">Log</span>.<span class="ruby-identifier">puts</span> <span class="ruby-node">&quot;&gt;&gt; Created directory at: #{project_path}&quot;</span>
574
+ 52: <span class="ruby-keyword kw">end</span>
575
+ 53: <span class="ruby-keyword kw">end</span>
576
+ 54: <span class="ruby-keyword kw">end</span></pre>
577
+ </div>
578
+
579
+ </div>
580
+
581
+
582
+
583
+
584
+ </div>
585
+
586
+
587
+ <div id="define-path-task-method" class="method-detail ">
588
+ <a name="method-c-define_path_task"></a>
589
+
590
+ <div class="method-heading">
591
+
592
+ <span class="method-name">define_path_task</span><span
593
+ class="method-args">(pkg_name, library, path)</span>
594
+ <span class="method-click-advice">click to toggle source</span>
595
+
596
+ </div>
597
+
598
+ <div class="method-description">
599
+
600
+
601
+
602
+
603
+
604
+ <div class="method-source-code"
605
+ id="define-path-task-source">
606
+ <pre>
607
+ <span class="ruby-comment cmt"># File lib/sprout/library.rb, line 56</span>
608
+ 56: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">define_path_task</span> <span class="ruby-identifier">pkg_name</span>, <span class="ruby-identifier">library</span>, <span class="ruby-identifier">path</span>
609
+ 57: <span class="ruby-identifier">installation_path</span> = <span class="ruby-node">&quot;#{project_path}/#{pkg_name}&quot;</span>
610
+ 58: <span class="ruby-keyword kw">if</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">directory?</span>(<span class="ruby-identifier">path</span>)
611
+ 59: <span class="ruby-identifier">define_directory_copy_task</span> <span class="ruby-identifier">path</span>, <span class="ruby-identifier">installation_path</span>
612
+ 60: <span class="ruby-keyword kw">else</span>
613
+ 61: <span class="ruby-identifier">define_file_copy_task</span> <span class="ruby-identifier">path</span>, <span class="ruby-identifier">installation_path</span>
614
+ 62: <span class="ruby-keyword kw">end</span>
615
+ 63: <span class="ruby-keyword kw">end</span></pre>
616
+ </div>
617
+
618
+ </div>
619
+
620
+
621
+
622
+
623
+ </div>
624
+
625
+
626
+ </div>
627
+
628
+
629
+ </div>
630
+
631
+
632
+ <div id="rdoc-debugging-section-dump" class="debugging-section">
633
+
634
+ <p>Disabled; run with --debug to generate this.</p>
635
+
636
+ </div>
637
+
638
+ <div id="validator-badges">
639
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
640
+ <p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
641
+ Rdoc Generator</a> 1.1.6</small>.</p>
642
+ </div>
643
+
644
+ </body>
645
+ </html>
646
+