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,383 @@
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::System</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/system/base_system_rb.html?TB_iframe=true&amp;height=550&amp;width=785"
42
+ class="thickbox" title="lib/sprout/system/base_system.rb">lib/sprout/system/base_system.rb</a></li>
43
+
44
+ <li><a href="../lib/sprout/system/java_system_rb.html?TB_iframe=true&amp;height=550&amp;width=785"
45
+ class="thickbox" title="lib/sprout/system/java_system.rb">lib/sprout/system/java_system.rb</a></li>
46
+
47
+ <li><a href="../lib/sprout/system/osx_system_rb.html?TB_iframe=true&amp;height=550&amp;width=785"
48
+ class="thickbox" title="lib/sprout/system/osx_system.rb">lib/sprout/system/osx_system.rb</a></li>
49
+
50
+ <li><a href="../lib/sprout/system/unix_system_rb.html?TB_iframe=true&amp;height=550&amp;width=785"
51
+ class="thickbox" title="lib/sprout/system/unix_system.rb">lib/sprout/system/unix_system.rb</a></li>
52
+
53
+ <li><a href="../lib/sprout/system/vista_system_rb.html?TB_iframe=true&amp;height=550&amp;width=785"
54
+ class="thickbox" title="lib/sprout/system/vista_system.rb">lib/sprout/system/vista_system.rb</a></li>
55
+
56
+ <li><a href="../lib/sprout/system/win_nix_system_rb.html?TB_iframe=true&amp;height=550&amp;width=785"
57
+ class="thickbox" title="lib/sprout/system/win_nix_system.rb">lib/sprout/system/win_nix_system.rb</a></li>
58
+
59
+ <li><a href="../lib/sprout/system/win_system_rb.html?TB_iframe=true&amp;height=550&amp;width=785"
60
+ class="thickbox" title="lib/sprout/system/win_system.rb">lib/sprout/system/win_system.rb</a></li>
61
+
62
+ <li><a href="../lib/sprout/system_rb.html?TB_iframe=true&amp;height=550&amp;width=785"
63
+ class="thickbox" title="lib/sprout/system.rb">lib/sprout/system.rb</a></li>
64
+
65
+ </ul>
66
+ </div>
67
+ </div>
68
+
69
+
70
+ </div>
71
+
72
+ <div id="class-metadata">
73
+
74
+ <!-- Parent Class -->
75
+
76
+
77
+ <!-- Namespace Contents -->
78
+
79
+ <div id="namespace-list-section" class="section">
80
+ <h3 class="section-header">Namespace</h3>
81
+ <ul class="link-list">
82
+
83
+ <li><span class="type">CLASS</span> <a href="System/BaseSystem.html">Sprout::System::BaseSystem</a></li>
84
+
85
+ <li><span class="type">CLASS</span> <a href="System/JavaSystem.html">Sprout::System::JavaSystem</a></li>
86
+
87
+ <li><span class="type">CLASS</span> <a href="System/OSXSystem.html">Sprout::System::OSXSystem</a></li>
88
+
89
+ <li><span class="type">CLASS</span> <a href="System/ThreadMock.html">Sprout::System::ThreadMock</a></li>
90
+
91
+ <li><span class="type">CLASS</span> <a href="System/UnixSystem.html">Sprout::System::UnixSystem</a></li>
92
+
93
+ <li><span class="type">CLASS</span> <a href="System/VistaSystem.html">Sprout::System::VistaSystem</a></li>
94
+
95
+ <li><span class="type">CLASS</span> <a href="System/WinNixSystem.html">Sprout::System::WinNixSystem</a></li>
96
+
97
+ <li><span class="type">CLASS</span> <a href="System/WinSystem.html">Sprout::System::WinSystem</a></li>
98
+
99
+ </ul>
100
+ </div>
101
+
102
+
103
+ <!-- Method Quickref -->
104
+
105
+ <div id="method-list-section" class="section">
106
+ <h3 class="section-header">Methods</h3>
107
+ <ul class="link-list">
108
+
109
+ <li><a href="#method-c-create">::create</a></li>
110
+
111
+ </ul>
112
+ </div>
113
+
114
+
115
+ <!-- Included Modules -->
116
+
117
+ </div>
118
+
119
+ <div id="project-metadata">
120
+
121
+
122
+
123
+ <div id="classindex-section" class="section project-section">
124
+ <h3 class="section-header">Class Index
125
+ <span class="search-toggle"><img src="../images/find.png"
126
+ height="16" width="16" alt="[+]"
127
+ title="show/hide quicksearch" /></span></h3>
128
+ <form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
129
+ <fieldset>
130
+ <legend>Quicksearch</legend>
131
+ <input type="text" name="quicksearch" value=""
132
+ class="quicksearch-field" />
133
+ </fieldset>
134
+ </form>
135
+
136
+ <ul class="link-list">
137
+
138
+ <li><a href="../Sprout/ArchiveUnpacker.html">Sprout::ArchiveUnpacker</a></li>
139
+
140
+ <li><a href="../Sprout/Base.html">Sprout::Base</a></li>
141
+
142
+ <li><a href="../Sprout/Base/ClassMethods.html">Sprout::Base::ClassMethods</a></li>
143
+
144
+ <li><a href="../Sprout/Concern.html">Sprout::Concern</a></li>
145
+
146
+ <li><a href="../Sprout/Errors.html">Sprout::Errors</a></li>
147
+
148
+ <li><a href="../Sprout/Errors/ArchiveUnpackerError.html">Sprout::Errors::ArchiveUnpackerError</a></li>
149
+
150
+ <li><a href="../Sprout/Errors/DestinationExistsError.html">Sprout::Errors::DestinationExistsError</a></li>
151
+
152
+ <li><a href="../Sprout/Errors/DuplicateMemberError.html">Sprout::Errors::DuplicateMemberError</a></li>
153
+
154
+ <li><a href="../Sprout/Errors/ExecutableError.html">Sprout::Errors::ExecutableError</a></li>
155
+
156
+ <li><a href="../Sprout/Errors/ExecutableRegistrationError.html">Sprout::Errors::ExecutableRegistrationError</a></li>
157
+
158
+ <li><a href="../Sprout/Errors/ExecutionError.html">Sprout::Errors::ExecutionError</a></li>
159
+
160
+ <li><a href="../Sprout/Errors/GeneratorError.html">Sprout::Errors::GeneratorError</a></li>
161
+
162
+ <li><a href="../Sprout/Errors/InvalidArgumentError.html">Sprout::Errors::InvalidArgumentError</a></li>
163
+
164
+ <li><a href="../Sprout/Errors/LoadError.html">Sprout::Errors::LoadError</a></li>
165
+
166
+ <li><a href="../Sprout/Errors/MissingArgumentError.html">Sprout::Errors::MissingArgumentError</a></li>
167
+
168
+ <li><a href="../Sprout/Errors/MissingExecutableError.html">Sprout::Errors::MissingExecutableError</a></li>
169
+
170
+ <li><a href="../Sprout/Errors/MissingGeneratorError.html">Sprout::Errors::MissingGeneratorError</a></li>
171
+
172
+ <li><a href="../Sprout/Errors/MissingTemplateError.html">Sprout::Errors::MissingTemplateError</a></li>
173
+
174
+ <li><a href="../Sprout/Errors/ProcessRunnerError.html">Sprout::Errors::ProcessRunnerError</a></li>
175
+
176
+ <li><a href="../Sprout/Errors/RemoteFileLoaderError.html">Sprout::Errors::RemoteFileLoaderError</a></li>
177
+
178
+ <li><a href="../Sprout/Errors/SproutError.html">Sprout::Errors::SproutError</a></li>
179
+
180
+ <li><a href="../Sprout/Errors/UnknownArchiveType.html">Sprout::Errors::UnknownArchiveType</a></li>
181
+
182
+ <li><a href="../Sprout/Errors/UsageError.html">Sprout::Errors::UsageError</a></li>
183
+
184
+ <li><a href="../Sprout/Errors/ValidationError.html">Sprout::Errors::ValidationError</a></li>
185
+
186
+ <li><a href="../Sprout/Errors/VersionRequirementNotMetError.html">Sprout::Errors::VersionRequirementNotMetError</a></li>
187
+
188
+ <li><a href="../Sprout/Executable.html">Sprout::Executable</a></li>
189
+
190
+ <li><a href="../Sprout/Executable/Boolean.html">Sprout::Executable::Boolean</a></li>
191
+
192
+ <li><a href="../Sprout/Executable/ClassMethods.html">Sprout::Executable::ClassMethods</a></li>
193
+
194
+ <li><a href="../Sprout/Executable/CollectionParam.html">Sprout::Executable::CollectionParam</a></li>
195
+
196
+ <li><a href="../Sprout/Executable/FileParam.html">Sprout::Executable::FileParam</a></li>
197
+
198
+ <li><a href="../Sprout/Executable/Files.html">Sprout::Executable::Files</a></li>
199
+
200
+ <li><a href="../Sprout/Executable/InstanceMethods.html">Sprout::Executable::InstanceMethods</a></li>
201
+
202
+ <li><a href="../Sprout/Executable/Number.html">Sprout::Executable::Number</a></li>
203
+
204
+ <li><a href="../Sprout/Executable/Param.html">Sprout::Executable::Param</a></li>
205
+
206
+ <li><a href="../Sprout/Executable/ParameterFactory.html">Sprout::Executable::ParameterFactory</a></li>
207
+
208
+ <li><a href="../Sprout/Executable/Path.html">Sprout::Executable::Path</a></li>
209
+
210
+ <li><a href="../Sprout/Executable/Paths.html">Sprout::Executable::Paths</a></li>
211
+
212
+ <li><a href="../Sprout/Executable/StringParam.html">Sprout::Executable::StringParam</a></li>
213
+
214
+ <li><a href="../Sprout/Executable/Strings.html">Sprout::Executable::Strings</a></li>
215
+
216
+ <li><a href="../Sprout/Executable/Url.html">Sprout::Executable::Url</a></li>
217
+
218
+ <li><a href="../Sprout/Executable/Urls.html">Sprout::Executable::Urls</a></li>
219
+
220
+ <li><a href="../Sprout/FileTarget.html">Sprout::FileTarget</a></li>
221
+
222
+ <li><a href="../Sprout/Generator.html">Sprout::Generator</a></li>
223
+
224
+ <li><a href="../Sprout/Generator/Base.html">Sprout::Generator::Base</a></li>
225
+
226
+ <li><a href="../Sprout/Generator/Command.html">Sprout::Generator::Command</a></li>
227
+
228
+ <li><a href="../Sprout/Generator/DirectoryManifest.html">Sprout::Generator::DirectoryManifest</a></li>
229
+
230
+ <li><a href="../Sprout/Generator/FileManifest.html">Sprout::Generator::FileManifest</a></li>
231
+
232
+ <li><a href="../Sprout/Generator/Manifest.html">Sprout::Generator::Manifest</a></li>
233
+
234
+ <li><a href="../Sprout/Generator/TemplateManifest.html">Sprout::Generator::TemplateManifest</a></li>
235
+
236
+ <li><a href="../Sprout/GeneratorGenerator.html">Sprout::GeneratorGenerator</a></li>
237
+
238
+ <li><a href="../Sprout/Library.html">Sprout::Library</a></li>
239
+
240
+ <li><a href="../Sprout/LibraryGenerator.html">Sprout::LibraryGenerator</a></li>
241
+
242
+ <li><a href="../Sprout/Platform.html">Sprout::Platform</a></li>
243
+
244
+ <li><a href="../Sprout/ProcessRunner.html">Sprout::ProcessRunner</a></li>
245
+
246
+ <li><a href="../Sprout/RDocParser.html">Sprout::RDocParser</a></li>
247
+
248
+ <li><a href="../Sprout/RemoteFileLoader.html">Sprout::RemoteFileLoader</a></li>
249
+
250
+ <li><a href="../Sprout/RemoteFileTarget.html">Sprout::RemoteFileTarget</a></li>
251
+
252
+ <li><a href="../Sprout/RubyFeature.html">Sprout::RubyFeature</a></li>
253
+
254
+ <li><a href="../Sprout/RubyFeature/ClassMethods.html">Sprout::RubyFeature::ClassMethods</a></li>
255
+
256
+ <li><a href="../Sprout/RubyGenerator.html">Sprout::RubyGenerator</a></li>
257
+
258
+ <li><a href="../Sprout/Specification.html">Sprout::Specification</a></li>
259
+
260
+ <li><a href="../Sprout/System.html">Sprout::System</a></li>
261
+
262
+ <li><a href="../Sprout/System/BaseSystem.html">Sprout::System::BaseSystem</a></li>
263
+
264
+ <li><a href="../Sprout/System/JavaSystem.html">Sprout::System::JavaSystem</a></li>
265
+
266
+ <li><a href="../Sprout/System/OSXSystem.html">Sprout::System::OSXSystem</a></li>
267
+
268
+ <li><a href="../Sprout/System/UnixSystem.html">Sprout::System::UnixSystem</a></li>
269
+
270
+ <li><a href="../Sprout/System/VistaSystem.html">Sprout::System::VistaSystem</a></li>
271
+
272
+ <li><a href="../Sprout/System/WinNixSystem.html">Sprout::System::WinNixSystem</a></li>
273
+
274
+ <li><a href="../Sprout/System/WinSystem.html">Sprout::System::WinSystem</a></li>
275
+
276
+ <li><a href="../Sprout/ToolGenerator.html">Sprout::ToolGenerator</a></li>
277
+
278
+ <li><a href="../<.html"><</a></li>
279
+
280
+ <li><a href="../Dir.html">Dir</a></li>
281
+
282
+ <li><a href="../Object.html">Object</a></li>
283
+
284
+ <li><a href="../String.html">String</a></li>
285
+
286
+ </ul>
287
+ <div id="no-class-search-results" style="display: none;">No matching classes.</div>
288
+ </div>
289
+
290
+
291
+ </div>
292
+ </div>
293
+
294
+ <div id="documentation">
295
+ <h1 class="module">Sprout::System</h1>
296
+
297
+ <div id="description">
298
+
299
+ </div>
300
+
301
+ <!-- Constants -->
302
+
303
+
304
+ <!-- Attributes -->
305
+
306
+
307
+ <!-- Methods -->
308
+
309
+ <div id="public-class-method-details" class="method-section section">
310
+ <h3 class="section-header">Public Class Methods</h3>
311
+
312
+
313
+ <div id="create-method" class="method-detail ">
314
+ <a name="method-c-create"></a>
315
+
316
+ <div class="method-heading">
317
+
318
+ <span class="method-name">create</span><span
319
+ class="method-args">()</span>
320
+ <span class="method-click-advice">click to toggle source</span>
321
+
322
+ </div>
323
+
324
+ <div class="method-description">
325
+
326
+ <p>
327
+ This is the factory that one should generally be used to create new,
328
+ concrete <a href="System.html">System</a> objects.
329
+ </p>
330
+ <p>
331
+ A typical example follows:
332
+ </p>
333
+ <pre>
334
+ system = System.create
335
+ Dir.chdir system.home
336
+ system.execute &quot;pwd&quot; # /home/yourusername</pre>
337
+
338
+
339
+
340
+ <div class="method-source-code"
341
+ id="create-source">
342
+ <pre>
343
+ <span class="ruby-comment cmt"># File lib/sprout/system.rb, line 23</span>
344
+ 23: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">create</span>
345
+ 24: <span class="ruby-identifier">p</span> = <span class="ruby-constant">Sprout</span><span class="ruby-operator">::</span><span class="ruby-constant">Platform</span>.<span class="ruby-identifier">new</span>
346
+ 25: <span class="ruby-keyword kw">return</span> <span class="ruby-constant">VistaSystem</span>.<span class="ruby-identifier">new</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">p</span>.<span class="ruby-identifier">vista?</span>
347
+ 26: <span class="ruby-keyword kw">return</span> <span class="ruby-constant">WinNixSystem</span>.<span class="ruby-identifier">new</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">p</span>.<span class="ruby-identifier">windows_nix?</span>
348
+ 27: <span class="ruby-keyword kw">return</span> <span class="ruby-constant">WinSystem</span>.<span class="ruby-identifier">new</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">p</span>.<span class="ruby-identifier">windows?</span>
349
+ 28: <span class="ruby-keyword kw">return</span> <span class="ruby-constant">JavaSystem</span>.<span class="ruby-identifier">new</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">p</span>.<span class="ruby-identifier">java?</span>
350
+ 29: <span class="ruby-keyword kw">return</span> <span class="ruby-constant">OSXSystem</span>.<span class="ruby-identifier">new</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">p</span>.<span class="ruby-identifier">mac?</span>
351
+ 30: <span class="ruby-keyword kw">return</span> <span class="ruby-constant">UnixSystem</span>.<span class="ruby-identifier">new</span>
352
+ 31: <span class="ruby-keyword kw">end</span></pre>
353
+ </div>
354
+
355
+ </div>
356
+
357
+
358
+
359
+
360
+ </div>
361
+
362
+
363
+ </div>
364
+
365
+
366
+ </div>
367
+
368
+
369
+ <div id="rdoc-debugging-section-dump" class="debugging-section">
370
+
371
+ <p>Disabled; run with --debug to generate this.</p>
372
+
373
+ </div>
374
+
375
+ <div id="validator-badges">
376
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
377
+ <p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
378
+ Rdoc Generator</a> 1.1.6</small>.</p>
379
+ </div>
380
+
381
+ </body>
382
+ </html>
383
+
@@ -0,0 +1,1173 @@
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::System::BaseSystem</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/system/base_system_rb.html?TB_iframe=true&amp;height=550&amp;width=785"
42
+ class="thickbox" title="lib/sprout/system/base_system.rb">lib/sprout/system/base_system.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"><a href="../../Object.html">Object</a></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-alt_separator%3F">#alt_separator?</a></li>
73
+
74
+ <li><a href="#method-i-application_home">#application_home</a></li>
75
+
76
+ <li><a href="#method-i-can_execute%3F">#can_execute?</a></li>
77
+
78
+ <li><a href="#method-i-clean_path">#clean_path</a></li>
79
+
80
+ <li><a href="#method-i-env_home">#env_home</a></li>
81
+
82
+ <li><a href="#method-i-env_homedrive">#env_homedrive</a></li>
83
+
84
+ <li><a href="#method-i-env_homedrive_and_homepath">#env_homedrive_and_homepath</a></li>
85
+
86
+ <li><a href="#method-i-env_homepath">#env_homepath</a></li>
87
+
88
+ <li><a href="#method-i-env_userprofile">#env_userprofile</a></li>
89
+
90
+ <li><a href="#method-i-execute">#execute</a></li>
91
+
92
+ <li><a href="#method-i-execute_silent">#execute_silent</a></li>
93
+
94
+ <li><a href="#method-i-execute_thread">#execute_thread</a></li>
95
+
96
+ <li><a href="#method-i-find_home">#find_home</a></li>
97
+
98
+ <li><a href="#method-i-format_application_name">#format_application_name</a></li>
99
+
100
+ <li><a href="#method-i-get_and_execute_process_runner">#get_and_execute_process_runner</a></li>
101
+
102
+ <li><a href="#method-i-get_process_runner">#get_process_runner</a></li>
103
+
104
+ <li><a href="#method-i-home">#home</a></li>
105
+
106
+ <li><a href="#method-i-home%3D">#home=</a></li>
107
+
108
+ <li><a href="#method-i-library">#library</a></li>
109
+
110
+ <li><a href="#method-i-tilde_home">#tilde_home</a></li>
111
+
112
+ <li><a href="#method-i-worst_case_home">#worst_case_home</a></li>
113
+
114
+ </ul>
115
+ </div>
116
+
117
+
118
+ <!-- Included Modules -->
119
+
120
+ </div>
121
+
122
+ <div id="project-metadata">
123
+
124
+
125
+
126
+ <div id="classindex-section" class="section project-section">
127
+ <h3 class="section-header">Class Index
128
+ <span class="search-toggle"><img src="../../images/find.png"
129
+ height="16" width="16" alt="[+]"
130
+ title="show/hide quicksearch" /></span></h3>
131
+ <form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
132
+ <fieldset>
133
+ <legend>Quicksearch</legend>
134
+ <input type="text" name="quicksearch" value=""
135
+ class="quicksearch-field" />
136
+ </fieldset>
137
+ </form>
138
+
139
+ <ul class="link-list">
140
+
141
+ <li><a href="../../Sprout/ArchiveUnpacker.html">Sprout::ArchiveUnpacker</a></li>
142
+
143
+ <li><a href="../../Sprout/Base.html">Sprout::Base</a></li>
144
+
145
+ <li><a href="../../Sprout/Base/ClassMethods.html">Sprout::Base::ClassMethods</a></li>
146
+
147
+ <li><a href="../../Sprout/Concern.html">Sprout::Concern</a></li>
148
+
149
+ <li><a href="../../Sprout/Errors.html">Sprout::Errors</a></li>
150
+
151
+ <li><a href="../../Sprout/Errors/ArchiveUnpackerError.html">Sprout::Errors::ArchiveUnpackerError</a></li>
152
+
153
+ <li><a href="../../Sprout/Errors/DestinationExistsError.html">Sprout::Errors::DestinationExistsError</a></li>
154
+
155
+ <li><a href="../../Sprout/Errors/DuplicateMemberError.html">Sprout::Errors::DuplicateMemberError</a></li>
156
+
157
+ <li><a href="../../Sprout/Errors/ExecutableError.html">Sprout::Errors::ExecutableError</a></li>
158
+
159
+ <li><a href="../../Sprout/Errors/ExecutableRegistrationError.html">Sprout::Errors::ExecutableRegistrationError</a></li>
160
+
161
+ <li><a href="../../Sprout/Errors/ExecutionError.html">Sprout::Errors::ExecutionError</a></li>
162
+
163
+ <li><a href="../../Sprout/Errors/GeneratorError.html">Sprout::Errors::GeneratorError</a></li>
164
+
165
+ <li><a href="../../Sprout/Errors/InvalidArgumentError.html">Sprout::Errors::InvalidArgumentError</a></li>
166
+
167
+ <li><a href="../../Sprout/Errors/LoadError.html">Sprout::Errors::LoadError</a></li>
168
+
169
+ <li><a href="../../Sprout/Errors/MissingArgumentError.html">Sprout::Errors::MissingArgumentError</a></li>
170
+
171
+ <li><a href="../../Sprout/Errors/MissingExecutableError.html">Sprout::Errors::MissingExecutableError</a></li>
172
+
173
+ <li><a href="../../Sprout/Errors/MissingGeneratorError.html">Sprout::Errors::MissingGeneratorError</a></li>
174
+
175
+ <li><a href="../../Sprout/Errors/MissingTemplateError.html">Sprout::Errors::MissingTemplateError</a></li>
176
+
177
+ <li><a href="../../Sprout/Errors/ProcessRunnerError.html">Sprout::Errors::ProcessRunnerError</a></li>
178
+
179
+ <li><a href="../../Sprout/Errors/RemoteFileLoaderError.html">Sprout::Errors::RemoteFileLoaderError</a></li>
180
+
181
+ <li><a href="../../Sprout/Errors/SproutError.html">Sprout::Errors::SproutError</a></li>
182
+
183
+ <li><a href="../../Sprout/Errors/UnknownArchiveType.html">Sprout::Errors::UnknownArchiveType</a></li>
184
+
185
+ <li><a href="../../Sprout/Errors/UsageError.html">Sprout::Errors::UsageError</a></li>
186
+
187
+ <li><a href="../../Sprout/Errors/ValidationError.html">Sprout::Errors::ValidationError</a></li>
188
+
189
+ <li><a href="../../Sprout/Errors/VersionRequirementNotMetError.html">Sprout::Errors::VersionRequirementNotMetError</a></li>
190
+
191
+ <li><a href="../../Sprout/Executable.html">Sprout::Executable</a></li>
192
+
193
+ <li><a href="../../Sprout/Executable/Boolean.html">Sprout::Executable::Boolean</a></li>
194
+
195
+ <li><a href="../../Sprout/Executable/ClassMethods.html">Sprout::Executable::ClassMethods</a></li>
196
+
197
+ <li><a href="../../Sprout/Executable/CollectionParam.html">Sprout::Executable::CollectionParam</a></li>
198
+
199
+ <li><a href="../../Sprout/Executable/FileParam.html">Sprout::Executable::FileParam</a></li>
200
+
201
+ <li><a href="../../Sprout/Executable/Files.html">Sprout::Executable::Files</a></li>
202
+
203
+ <li><a href="../../Sprout/Executable/InstanceMethods.html">Sprout::Executable::InstanceMethods</a></li>
204
+
205
+ <li><a href="../../Sprout/Executable/Number.html">Sprout::Executable::Number</a></li>
206
+
207
+ <li><a href="../../Sprout/Executable/Param.html">Sprout::Executable::Param</a></li>
208
+
209
+ <li><a href="../../Sprout/Executable/ParameterFactory.html">Sprout::Executable::ParameterFactory</a></li>
210
+
211
+ <li><a href="../../Sprout/Executable/Path.html">Sprout::Executable::Path</a></li>
212
+
213
+ <li><a href="../../Sprout/Executable/Paths.html">Sprout::Executable::Paths</a></li>
214
+
215
+ <li><a href="../../Sprout/Executable/StringParam.html">Sprout::Executable::StringParam</a></li>
216
+
217
+ <li><a href="../../Sprout/Executable/Strings.html">Sprout::Executable::Strings</a></li>
218
+
219
+ <li><a href="../../Sprout/Executable/Url.html">Sprout::Executable::Url</a></li>
220
+
221
+ <li><a href="../../Sprout/Executable/Urls.html">Sprout::Executable::Urls</a></li>
222
+
223
+ <li><a href="../../Sprout/FileTarget.html">Sprout::FileTarget</a></li>
224
+
225
+ <li><a href="../../Sprout/Generator.html">Sprout::Generator</a></li>
226
+
227
+ <li><a href="../../Sprout/Generator/Base.html">Sprout::Generator::Base</a></li>
228
+
229
+ <li><a href="../../Sprout/Generator/Command.html">Sprout::Generator::Command</a></li>
230
+
231
+ <li><a href="../../Sprout/Generator/DirectoryManifest.html">Sprout::Generator::DirectoryManifest</a></li>
232
+
233
+ <li><a href="../../Sprout/Generator/FileManifest.html">Sprout::Generator::FileManifest</a></li>
234
+
235
+ <li><a href="../../Sprout/Generator/Manifest.html">Sprout::Generator::Manifest</a></li>
236
+
237
+ <li><a href="../../Sprout/Generator/TemplateManifest.html">Sprout::Generator::TemplateManifest</a></li>
238
+
239
+ <li><a href="../../Sprout/GeneratorGenerator.html">Sprout::GeneratorGenerator</a></li>
240
+
241
+ <li><a href="../../Sprout/Library.html">Sprout::Library</a></li>
242
+
243
+ <li><a href="../../Sprout/LibraryGenerator.html">Sprout::LibraryGenerator</a></li>
244
+
245
+ <li><a href="../../Sprout/Platform.html">Sprout::Platform</a></li>
246
+
247
+ <li><a href="../../Sprout/ProcessRunner.html">Sprout::ProcessRunner</a></li>
248
+
249
+ <li><a href="../../Sprout/RDocParser.html">Sprout::RDocParser</a></li>
250
+
251
+ <li><a href="../../Sprout/RemoteFileLoader.html">Sprout::RemoteFileLoader</a></li>
252
+
253
+ <li><a href="../../Sprout/RemoteFileTarget.html">Sprout::RemoteFileTarget</a></li>
254
+
255
+ <li><a href="../../Sprout/RubyFeature.html">Sprout::RubyFeature</a></li>
256
+
257
+ <li><a href="../../Sprout/RubyFeature/ClassMethods.html">Sprout::RubyFeature::ClassMethods</a></li>
258
+
259
+ <li><a href="../../Sprout/RubyGenerator.html">Sprout::RubyGenerator</a></li>
260
+
261
+ <li><a href="../../Sprout/Specification.html">Sprout::Specification</a></li>
262
+
263
+ <li><a href="../../Sprout/System.html">Sprout::System</a></li>
264
+
265
+ <li><a href="../../Sprout/System/BaseSystem.html">Sprout::System::BaseSystem</a></li>
266
+
267
+ <li><a href="../../Sprout/System/JavaSystem.html">Sprout::System::JavaSystem</a></li>
268
+
269
+ <li><a href="../../Sprout/System/OSXSystem.html">Sprout::System::OSXSystem</a></li>
270
+
271
+ <li><a href="../../Sprout/System/UnixSystem.html">Sprout::System::UnixSystem</a></li>
272
+
273
+ <li><a href="../../Sprout/System/VistaSystem.html">Sprout::System::VistaSystem</a></li>
274
+
275
+ <li><a href="../../Sprout/System/WinNixSystem.html">Sprout::System::WinNixSystem</a></li>
276
+
277
+ <li><a href="../../Sprout/System/WinSystem.html">Sprout::System::WinSystem</a></li>
278
+
279
+ <li><a href="../../Sprout/ToolGenerator.html">Sprout::ToolGenerator</a></li>
280
+
281
+ <li><a href="../../<.html"><</a></li>
282
+
283
+ <li><a href="../../Dir.html">Dir</a></li>
284
+
285
+ <li><a href="../../Object.html">Object</a></li>
286
+
287
+ <li><a href="../../String.html">String</a></li>
288
+
289
+ </ul>
290
+ <div id="no-class-search-results" style="display: none;">No matching classes.</div>
291
+ </div>
292
+
293
+
294
+ </div>
295
+ </div>
296
+
297
+ <div id="documentation">
298
+ <h1 class="class">Sprout::System::BaseSystem</h1>
299
+
300
+ <div id="description">
301
+ <p>
302
+ The abstract base class for all supported system/platform types. In
303
+ general, users are created by calling the <tt>create</tt> factory method on
304
+ the <tt>System</tt> module.
305
+ </p>
306
+ <pre>
307
+
308
+ System.create
309
+ </pre>
310
+ <p>
311
+ Assuming you call the create method, you should wind up with a concrete
312
+ system that matches your system, and these concrete users will generally be
313
+ derived from this base class.
314
+ </p>
315
+
316
+ </div>
317
+
318
+ <!-- Constants -->
319
+
320
+
321
+ <!-- Attributes -->
322
+
323
+
324
+ <!-- Methods -->
325
+
326
+ <div id="public-instance-method-details" class="method-section section">
327
+ <h3 class="section-header">Public Instance Methods</h3>
328
+
329
+
330
+ <div id="application-home-method" class="method-detail ">
331
+ <a name="method-i-application_home"></a>
332
+
333
+ <div class="method-heading">
334
+
335
+ <span class="method-name">application_home</span><span
336
+ class="method-args">(name)</span>
337
+ <span class="method-click-advice">click to toggle source</span>
338
+
339
+ </div>
340
+
341
+ <div class="method-description">
342
+
343
+ <p>
344
+ Different operating systems will store Application data different default
345
+ locations.
346
+ </p>
347
+ <p>
348
+ Subclasses will generally override this method and return the appropriate
349
+ location for their operating system.
350
+ </p>
351
+ <p>
352
+ <tt>name</tt> <a href="../../String.html">String</a> value of the
353
+ Application name for which we&#8217;d like to store data.
354
+ </p>
355
+
356
+
357
+
358
+ <div class="method-source-code"
359
+ id="application-home-source">
360
+ <pre>
361
+ <span class="ruby-comment cmt"># File lib/sprout/system/base_system.rb, line 131</span>
362
+ 131: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">application_home</span>(<span class="ruby-identifier">name</span>)
363
+ 132: <span class="ruby-keyword kw">return</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-identifier">library</span>, <span class="ruby-identifier">format_application_name</span>(<span class="ruby-identifier">name</span>.<span class="ruby-identifier">to_s</span>));
364
+ 133: <span class="ruby-keyword kw">end</span></pre>
365
+ </div>
366
+
367
+ </div>
368
+
369
+
370
+
371
+
372
+ </div>
373
+
374
+
375
+ <div id="can-execute--method" class="method-detail ">
376
+ <a name="method-i-can_execute%3F"></a>
377
+
378
+ <div class="method-heading">
379
+
380
+ <span class="method-name">can_execute?</span><span
381
+ class="method-args">(platform)</span>
382
+ <span class="method-click-advice">click to toggle source</span>
383
+
384
+ </div>
385
+
386
+ <div class="method-description">
387
+
388
+
389
+
390
+
391
+
392
+ <div class="method-source-code"
393
+ id="can-execute--source">
394
+ <pre>
395
+ <span class="ruby-comment cmt"># File lib/sprout/system/base_system.rb, line 60</span>
396
+ 60: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">can_execute?</span> <span class="ruby-identifier">platform</span>
397
+ 61: <span class="ruby-identifier">platform</span> <span class="ruby-operator">==</span> <span class="ruby-value">:universal</span>
398
+ 62: <span class="ruby-keyword kw">end</span></pre>
399
+ </div>
400
+
401
+ </div>
402
+
403
+
404
+
405
+
406
+ </div>
407
+
408
+
409
+ <div id="clean-path-method" class="method-detail ">
410
+ <a name="method-i-clean_path"></a>
411
+
412
+ <div class="method-heading">
413
+
414
+ <span class="method-name">clean_path</span><span
415
+ class="method-args">(path)</span>
416
+ <span class="method-click-advice">click to toggle source</span>
417
+
418
+ </div>
419
+
420
+ <div class="method-description">
421
+
422
+ <p>
423
+ Clean the provided <tt>path</tt> <a href="../../String.html">String</a> for
424
+ the current operating system.
425
+ </p>
426
+ <p>
427
+ Each operating system behaves differently when we attempt to execute a file
428
+ with spaces in the <tt>path</tt> to the file.
429
+ </p>
430
+ <p>
431
+ Subclasses will generally override this method and clean the path
432
+ appropriately for their operating system.
433
+ </p>
434
+
435
+
436
+
437
+ <div class="method-source-code"
438
+ id="clean-path-source">
439
+ <pre>
440
+ <span class="ruby-comment cmt"># File lib/sprout/system/base_system.rb, line 118</span>
441
+ 118: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">clean_path</span>(<span class="ruby-identifier">path</span>)
442
+ 119: <span class="ruby-keyword kw">end</span></pre>
443
+ </div>
444
+
445
+ </div>
446
+
447
+
448
+
449
+
450
+ </div>
451
+
452
+
453
+ <div id="execute-method" class="method-detail ">
454
+ <a name="method-i-execute"></a>
455
+
456
+ <div class="method-heading">
457
+
458
+ <span class="method-name">execute</span><span
459
+ class="method-args">(tool, options='')</span>
460
+ <span class="method-click-advice">click to toggle source</span>
461
+
462
+ </div>
463
+
464
+ <div class="method-description">
465
+
466
+ <p>
467
+ Creates a new process, executes the command and returns whatever the
468
+ process wrote to stdout, or stderr.
469
+ </p>
470
+ <p>
471
+ Raises a +Sprout::Errors::ExecutionError+ if the process writes to stderr
472
+ </p>
473
+
474
+
475
+
476
+ <div class="method-source-code"
477
+ id="execute-source">
478
+ <pre>
479
+ <span class="ruby-comment cmt"># File lib/sprout/system/base_system.rb, line 70</span>
480
+ 70: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">execute</span>(<span class="ruby-identifier">tool</span>, <span class="ruby-identifier">options</span>=<span class="ruby-value str">''</span>)
481
+ 71: <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; Execute: #{tool} options: #{options}&quot;</span>)
482
+ 72: <span class="ruby-identifier">runner</span> = <span class="ruby-identifier">get_and_execute_process_runner</span>(<span class="ruby-identifier">tool</span>, <span class="ruby-identifier">options</span>)
483
+ 73: <span class="ruby-identifier">error</span> = <span class="ruby-identifier">runner</span>.<span class="ruby-identifier">read_err</span>
484
+ 74: <span class="ruby-identifier">result</span> = <span class="ruby-identifier">runner</span>.<span class="ruby-identifier">read</span>
485
+ 75:
486
+ 76: <span class="ruby-keyword kw">if</span>(<span class="ruby-identifier">result</span>.<span class="ruby-identifier">size</span> <span class="ruby-operator">&gt;</span> <span class="ruby-value">0</span>)
487
+ 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-identifier">result</span>
488
+ 78: <span class="ruby-keyword kw">end</span>
489
+ 79:
490
+ 80: <span class="ruby-keyword kw">if</span>(<span class="ruby-identifier">error</span>.<span class="ruby-identifier">size</span> <span class="ruby-operator">&gt;</span> <span class="ruby-value">0</span>)
491
+ 81: <span class="ruby-identifier">raise</span> <span class="ruby-constant">Sprout</span><span class="ruby-operator">::</span><span class="ruby-constant">Errors</span><span class="ruby-operator">::</span><span class="ruby-constant">ExecutionError</span>.<span class="ruby-identifier">new</span>(<span class="ruby-node">&quot;[ERROR] #{error}&quot;</span>)
492
+ 82: <span class="ruby-keyword kw">end</span>
493
+ 83:
494
+ 84: <span class="ruby-identifier">result</span> <span class="ruby-operator">||</span> <span class="ruby-identifier">error</span>
495
+ 85: <span class="ruby-keyword kw">end</span></pre>
496
+ </div>
497
+
498
+ </div>
499
+
500
+
501
+
502
+
503
+ </div>
504
+
505
+
506
+ <div id="execute-silent-method" class="method-detail ">
507
+ <a name="method-i-execute_silent"></a>
508
+
509
+ <div class="method-heading">
510
+
511
+ <span class="method-name">execute_silent</span><span
512
+ class="method-args">(tool, options='')</span>
513
+ <span class="method-click-advice">click to toggle source</span>
514
+
515
+ </div>
516
+
517
+ <div class="method-description">
518
+
519
+ <p>
520
+ Creates and returns the process without attempting to read or write to the
521
+ stream. This is useful for interacting with long-lived CLI processes like
522
+ FCSH or FDB.
523
+ </p>
524
+
525
+
526
+
527
+ <div class="method-source-code"
528
+ id="execute-silent-source">
529
+ <pre>
530
+ <span class="ruby-comment cmt"># File lib/sprout/system/base_system.rb, line 93</span>
531
+ 93: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">execute_silent</span>(<span class="ruby-identifier">tool</span>, <span class="ruby-identifier">options</span>=<span class="ruby-value str">''</span>)
532
+ 94: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">get_and_execute_process_runner</span>(<span class="ruby-identifier">tool</span>, <span class="ruby-identifier">options</span>)
533
+ 95: <span class="ruby-keyword kw">end</span></pre>
534
+ </div>
535
+
536
+ </div>
537
+
538
+
539
+
540
+
541
+ </div>
542
+
543
+
544
+ <div id="execute-thread-method" class="method-detail ">
545
+ <a name="method-i-execute_thread"></a>
546
+
547
+ <div class="method-heading">
548
+
549
+ <span class="method-name">execute_thread</span><span
550
+ class="method-args">(tool, options='')</span>
551
+ <span class="method-click-advice">click to toggle source</span>
552
+
553
+ </div>
554
+
555
+ <div class="method-description">
556
+
557
+ <p>
558
+ Execute a new process in a separate thread.
559
+ </p>
560
+
561
+
562
+
563
+ <div class="method-source-code"
564
+ id="execute-thread-source">
565
+ <pre>
566
+ <span class="ruby-comment cmt"># File lib/sprout/system/base_system.rb, line 100</span>
567
+ 100: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">execute_thread</span>(<span class="ruby-identifier">tool</span>, <span class="ruby-identifier">options</span>=<span class="ruby-value str">''</span>)
568
+ 101: <span class="ruby-keyword kw">return</span> <span class="ruby-constant">Thread</span>.<span class="ruby-identifier">new</span> <span class="ruby-keyword kw">do</span>
569
+ 102: <span class="ruby-identifier">execute</span>(<span class="ruby-identifier">tool</span>, <span class="ruby-identifier">options</span>)
570
+ 103: <span class="ruby-keyword kw">end</span>
571
+ 104: <span class="ruby-keyword kw">end</span></pre>
572
+ </div>
573
+
574
+ </div>
575
+
576
+
577
+
578
+
579
+ </div>
580
+
581
+
582
+ <div id="format-application-name-method" class="method-detail ">
583
+ <a name="method-i-format_application_name"></a>
584
+
585
+ <div class="method-heading">
586
+
587
+ <span class="method-name">format_application_name</span><span
588
+ class="method-args">(name)</span>
589
+ <span class="method-click-advice">click to toggle source</span>
590
+
591
+ </div>
592
+
593
+ <div class="method-description">
594
+
595
+ <p>
596
+ Template method that should be overridden by subclasses.
597
+ </p>
598
+
599
+
600
+
601
+ <div class="method-source-code"
602
+ id="format-application-name-source">
603
+ <pre>
604
+ <span class="ruby-comment cmt"># File lib/sprout/system/base_system.rb, line 139</span>
605
+ 139: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">format_application_name</span>(<span class="ruby-identifier">name</span>)
606
+ 140: <span class="ruby-identifier">name</span>
607
+ 141: <span class="ruby-keyword kw">end</span></pre>
608
+ </div>
609
+
610
+ </div>
611
+
612
+
613
+
614
+
615
+ </div>
616
+
617
+
618
+ <div id="get-process-runner-method" class="method-detail ">
619
+ <a name="method-i-get_process_runner"></a>
620
+
621
+ <div class="method-heading">
622
+
623
+ <span class="method-name">get_process_runner</span><span
624
+ class="method-args">()</span>
625
+ <span class="method-click-advice">click to toggle source</span>
626
+
627
+ </div>
628
+
629
+ <div class="method-description">
630
+
631
+ <p>
632
+ Instantiate and return a new <a
633
+ href="../ProcessRunner.html">Sprout::ProcessRunner</a> so that we can
634
+ execute it.
635
+ </p>
636
+
637
+
638
+
639
+ <div class="method-source-code"
640
+ id="get-process-runner-source">
641
+ <pre>
642
+ <span class="ruby-comment cmt"># File lib/sprout/system/base_system.rb, line 56</span>
643
+ 56: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">get_process_runner</span>
644
+ 57: <span class="ruby-constant">Sprout</span><span class="ruby-operator">::</span><span class="ruby-constant">ProcessRunner</span>.<span class="ruby-identifier">new</span>
645
+ 58: <span class="ruby-keyword kw">end</span></pre>
646
+ </div>
647
+
648
+ </div>
649
+
650
+
651
+
652
+
653
+ </div>
654
+
655
+
656
+ <div id="home-method" class="method-detail ">
657
+ <a name="method-i-home"></a>
658
+
659
+ <div class="method-heading">
660
+
661
+ <span class="method-name">home</span><span
662
+ class="method-args">()</span>
663
+ <span class="method-click-advice">click to toggle source</span>
664
+
665
+ </div>
666
+
667
+ <div class="method-description">
668
+
669
+ <p>
670
+ Get the home path for a system on a particular operating system.
671
+ </p>
672
+ <p>
673
+ This path will be different, depending on which system owns the curren
674
+ process, and which operating system they are on.
675
+ </p>
676
+
677
+
678
+
679
+ <div class="method-source-code"
680
+ id="home-source">
681
+ <pre>
682
+ <span class="ruby-comment cmt"># File lib/sprout/system/base_system.rb, line 22</span>
683
+ 22: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">home</span>
684
+ 23: <span class="ruby-ivar">@home</span> <span class="ruby-operator">||=</span> <span class="ruby-identifier">find_home</span>
685
+ 24: <span class="ruby-keyword kw">end</span></pre>
686
+ </div>
687
+
688
+ </div>
689
+
690
+
691
+
692
+
693
+ </div>
694
+
695
+
696
+ <div id="home--method" class="method-detail ">
697
+ <a name="method-i-home%3D"></a>
698
+
699
+ <div class="method-heading">
700
+
701
+ <span class="method-name">home=</span><span
702
+ class="method-args">(home)</span>
703
+ <span class="method-click-advice">click to toggle source</span>
704
+
705
+ </div>
706
+
707
+ <div class="method-description">
708
+
709
+ <p>
710
+ Set the home path for a system on a particular operating system.
711
+ </p>
712
+ <p>
713
+ If you request the home path before setting it, we will attempt to
714
+ determine the home path of the current system for the current operating
715
+ system.
716
+ </p>
717
+ <p>
718
+ This is just a simple way to override the default behavior.
719
+ </p>
720
+
721
+
722
+
723
+ <div class="method-source-code"
724
+ id="home--source">
725
+ <pre>
726
+ <span class="ruby-comment cmt"># File lib/sprout/system/base_system.rb, line 35</span>
727
+ 35: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">home=</span>(<span class="ruby-identifier">home</span>)
728
+ 36: <span class="ruby-ivar">@home</span> = <span class="ruby-identifier">home</span>
729
+ 37: <span class="ruby-keyword kw">end</span></pre>
730
+ </div>
731
+
732
+ </div>
733
+
734
+
735
+
736
+
737
+ </div>
738
+
739
+
740
+ <div id="library-method" class="method-detail ">
741
+ <a name="method-i-library"></a>
742
+
743
+ <div class="method-heading">
744
+
745
+ <span class="method-name">library</span><span
746
+ class="method-args">()</span>
747
+ <span class="method-click-advice">click to toggle source</span>
748
+
749
+ </div>
750
+
751
+ <div class="method-description">
752
+
753
+ <p>
754
+ Some operating systems (like OS X and Windows) have a specific location
755
+ where applications are expected to store files for a particular system.
756
+ This location is generally a subdirectory of <tt>home</tt>.
757
+ </p>
758
+ <p>
759
+ The value of this location will usually be overridden in concrete <a
760
+ href="../System.html">System</a> classes.
761
+ </p>
762
+
763
+
764
+
765
+ <div class="method-source-code"
766
+ id="library-source">
767
+ <pre>
768
+ <span class="ruby-comment cmt"># File lib/sprout/system/base_system.rb, line 48</span>
769
+ 48: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">library</span>
770
+ 49: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">home</span>
771
+ 50: <span class="ruby-keyword kw">end</span></pre>
772
+ </div>
773
+
774
+ </div>
775
+
776
+
777
+
778
+
779
+ </div>
780
+
781
+
782
+ </div>
783
+
784
+ <div id="protected-instance-method-details" class="method-section section">
785
+ <h3 class="section-header">Protected Instance Methods</h3>
786
+
787
+
788
+ <div id="alt-separator--method" class="method-detail ">
789
+ <a name="method-i-alt_separator%3F"></a>
790
+
791
+ <div class="method-heading">
792
+
793
+ <span class="method-name">alt_separator?</span><span
794
+ class="method-args">()</span>
795
+ <span class="method-click-advice">click to toggle source</span>
796
+
797
+ </div>
798
+
799
+ <div class="method-description">
800
+
801
+
802
+
803
+
804
+
805
+ <div class="method-source-code"
806
+ id="alt-separator--source">
807
+ <pre>
808
+ <span class="ruby-comment cmt"># File lib/sprout/system/base_system.rb, line 171</span>
809
+ 171: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">alt_separator?</span>
810
+ 172: <span class="ruby-constant">File</span><span class="ruby-operator">::</span><span class="ruby-constant">ALT_SEPARATOR</span>
811
+ 173: <span class="ruby-keyword kw">end</span></pre>
812
+ </div>
813
+
814
+ </div>
815
+
816
+
817
+
818
+
819
+ </div>
820
+
821
+
822
+ <div id="env-home-method" class="method-detail ">
823
+ <a name="method-i-env_home"></a>
824
+
825
+ <div class="method-heading">
826
+
827
+ <span class="method-name">env_home</span><span
828
+ class="method-args">()</span>
829
+ <span class="method-click-advice">click to toggle source</span>
830
+
831
+ </div>
832
+
833
+ <div class="method-description">
834
+
835
+
836
+
837
+
838
+
839
+ <div class="method-source-code"
840
+ id="env-home-source">
841
+ <pre>
842
+ <span class="ruby-comment cmt"># File lib/sprout/system/base_system.rb, line 163</span>
843
+ 163: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">env_home</span>
844
+ 164: <span class="ruby-constant">ENV</span>[<span class="ruby-value str">'HOME'</span>]
845
+ 165: <span class="ruby-keyword kw">end</span></pre>
846
+ </div>
847
+
848
+ </div>
849
+
850
+
851
+
852
+
853
+ </div>
854
+
855
+
856
+ <div id="env-homedrive-method" class="method-detail ">
857
+ <a name="method-i-env_homedrive"></a>
858
+
859
+ <div class="method-heading">
860
+
861
+ <span class="method-name">env_homedrive</span><span
862
+ class="method-args">()</span>
863
+ <span class="method-click-advice">click to toggle source</span>
864
+
865
+ </div>
866
+
867
+ <div class="method-description">
868
+
869
+
870
+
871
+
872
+
873
+ <div class="method-source-code"
874
+ id="env-homedrive-source">
875
+ <pre>
876
+ <span class="ruby-comment cmt"># File lib/sprout/system/base_system.rb, line 145</span>
877
+ 145: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">env_homedrive</span>
878
+ 146: <span class="ruby-constant">ENV</span>[<span class="ruby-value str">'HOMEDRIVE'</span>]
879
+ 147: <span class="ruby-keyword kw">end</span></pre>
880
+ </div>
881
+
882
+ </div>
883
+
884
+
885
+
886
+
887
+ </div>
888
+
889
+
890
+ <div id="env-homedrive-and-homepath-method" class="method-detail ">
891
+ <a name="method-i-env_homedrive_and_homepath"></a>
892
+
893
+ <div class="method-heading">
894
+
895
+ <span class="method-name">env_homedrive_and_homepath</span><span
896
+ class="method-args">()</span>
897
+ <span class="method-click-advice">click to toggle source</span>
898
+
899
+ </div>
900
+
901
+ <div class="method-description">
902
+
903
+
904
+
905
+
906
+
907
+ <div class="method-source-code"
908
+ id="env-homedrive-and-homepath-source">
909
+ <pre>
910
+ <span class="ruby-comment cmt"># File lib/sprout/system/base_system.rb, line 153</span>
911
+ 153: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">env_homedrive_and_homepath</span>
912
+ 154: <span class="ruby-identifier">drive</span> = <span class="ruby-identifier">env_homedrive</span>
913
+ 155: <span class="ruby-identifier">path</span> = <span class="ruby-identifier">env_homepath</span>
914
+ 156: <span class="ruby-node">&quot;#{drive}:#{path}&quot;</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">drive</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">path</span>
915
+ 157: <span class="ruby-keyword kw">end</span></pre>
916
+ </div>
917
+
918
+ </div>
919
+
920
+
921
+
922
+
923
+ </div>
924
+
925
+
926
+ <div id="env-homepath-method" class="method-detail ">
927
+ <a name="method-i-env_homepath"></a>
928
+
929
+ <div class="method-heading">
930
+
931
+ <span class="method-name">env_homepath</span><span
932
+ class="method-args">()</span>
933
+ <span class="method-click-advice">click to toggle source</span>
934
+
935
+ </div>
936
+
937
+ <div class="method-description">
938
+
939
+
940
+
941
+
942
+
943
+ <div class="method-source-code"
944
+ id="env-homepath-source">
945
+ <pre>
946
+ <span class="ruby-comment cmt"># File lib/sprout/system/base_system.rb, line 149</span>
947
+ 149: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">env_homepath</span>
948
+ 150: <span class="ruby-constant">ENV</span>[<span class="ruby-value str">'HOMEPATH'</span>]
949
+ 151: <span class="ruby-keyword kw">end</span></pre>
950
+ </div>
951
+
952
+ </div>
953
+
954
+
955
+
956
+
957
+ </div>
958
+
959
+
960
+ <div id="env-userprofile-method" class="method-detail ">
961
+ <a name="method-i-env_userprofile"></a>
962
+
963
+ <div class="method-heading">
964
+
965
+ <span class="method-name">env_userprofile</span><span
966
+ class="method-args">()</span>
967
+ <span class="method-click-advice">click to toggle source</span>
968
+
969
+ </div>
970
+
971
+ <div class="method-description">
972
+
973
+
974
+
975
+
976
+
977
+ <div class="method-source-code"
978
+ id="env-userprofile-source">
979
+ <pre>
980
+ <span class="ruby-comment cmt"># File lib/sprout/system/base_system.rb, line 159</span>
981
+ 159: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">env_userprofile</span>
982
+ 160: <span class="ruby-constant">ENV</span>[<span class="ruby-value str">'USERPROFILE'</span>]
983
+ 161: <span class="ruby-keyword kw">end</span></pre>
984
+ </div>
985
+
986
+ </div>
987
+
988
+
989
+
990
+
991
+ </div>
992
+
993
+
994
+ <div id="find-home-method" class="method-detail ">
995
+ <a name="method-i-find_home"></a>
996
+
997
+ <div class="method-heading">
998
+
999
+ <span class="method-name">find_home</span><span
1000
+ class="method-args">()</span>
1001
+ <span class="method-click-advice">click to toggle source</span>
1002
+
1003
+ </div>
1004
+
1005
+ <div class="method-description">
1006
+
1007
+
1008
+
1009
+
1010
+
1011
+ <div class="method-source-code"
1012
+ id="find-home-source">
1013
+ <pre>
1014
+ <span class="ruby-comment cmt"># File lib/sprout/system/base_system.rb, line 180</span>
1015
+ 180: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">find_home</span>
1016
+ 181: [<span class="ruby-value">:env_userprofile</span>, <span class="ruby-value">:env_home</span>, <span class="ruby-value">:env_homedrive_and_homepath</span>].<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">key</span><span class="ruby-operator">|</span>
1017
+ 182: <span class="ruby-identifier">value</span> = <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">send</span>(<span class="ruby-identifier">key</span>)
1018
+ 183: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">value</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">value</span>.<span class="ruby-identifier">nil?</span>
1019
+ 184: <span class="ruby-keyword kw">end</span>
1020
+ 185:
1021
+ 186: <span class="ruby-keyword kw">begin</span>
1022
+ 187: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">tilde_home</span>
1023
+ 188: <span class="ruby-keyword kw">rescue</span> <span class="ruby-constant">StandardError</span>
1024
+ 189: <span class="ruby-identifier">worst_case_home</span>
1025
+ 190: <span class="ruby-keyword kw">end</span>
1026
+ 191: <span class="ruby-keyword kw">end</span></pre>
1027
+ </div>
1028
+
1029
+ </div>
1030
+
1031
+
1032
+
1033
+
1034
+ </div>
1035
+
1036
+
1037
+ <div id="get-and-execute-process-runner-method" class="method-detail ">
1038
+ <a name="method-i-get_and_execute_process_runner"></a>
1039
+
1040
+ <div class="method-heading">
1041
+
1042
+ <span class="method-name">get_and_execute_process_runner</span><span
1043
+ class="method-args">(tool, options=nil)</span>
1044
+ <span class="method-click-advice">click to toggle source</span>
1045
+
1046
+ </div>
1047
+
1048
+ <div class="method-description">
1049
+
1050
+ <p>
1051
+ Get a process runner and execute the provided <tt>executable</tt>, with the
1052
+ provided <tt>options</tt>.
1053
+ </p>
1054
+ <p>
1055
+ <tt>executable</tt> <a href="../../String.html">String</a> path to the
1056
+ external executable file.
1057
+ </p>
1058
+ <p>
1059
+ <tt>options</tt> <a href="../../String.html">String</a> commandline options
1060
+ to send to the <tt>executable</tt>.
1061
+ </p>
1062
+
1063
+
1064
+
1065
+ <div class="method-source-code"
1066
+ id="get-and-execute-process-runner-source">
1067
+ <pre>
1068
+ <span class="ruby-comment cmt"># File lib/sprout/system/base_system.rb, line 203</span>
1069
+ 203: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">get_and_execute_process_runner</span> <span class="ruby-identifier">tool</span>, <span class="ruby-identifier">options</span>=<span class="ruby-keyword kw">nil</span>
1070
+ 204: <span class="ruby-identifier">runner</span> = <span class="ruby-identifier">get_process_runner</span>
1071
+ 205: <span class="ruby-identifier">runner</span>.<span class="ruby-identifier">execute_open4</span> <span class="ruby-identifier">clean_path</span>(<span class="ruby-identifier">tool</span>), <span class="ruby-identifier">options</span>
1072
+ 206: <span class="ruby-identifier">runner</span>
1073
+ 207: <span class="ruby-keyword kw">end</span></pre>
1074
+ </div>
1075
+
1076
+ </div>
1077
+
1078
+
1079
+
1080
+
1081
+ </div>
1082
+
1083
+
1084
+ <div id="tilde-home-method" class="method-detail ">
1085
+ <a name="method-i-tilde_home"></a>
1086
+
1087
+ <div class="method-heading">
1088
+
1089
+ <span class="method-name">tilde_home</span><span
1090
+ class="method-args">()</span>
1091
+ <span class="method-click-advice">click to toggle source</span>
1092
+
1093
+ </div>
1094
+
1095
+ <div class="method-description">
1096
+
1097
+
1098
+
1099
+
1100
+
1101
+ <div class="method-source-code"
1102
+ id="tilde-home-source">
1103
+ <pre>
1104
+ <span class="ruby-comment cmt"># File lib/sprout/system/base_system.rb, line 167</span>
1105
+ 167: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">tilde_home</span>
1106
+ 168: <span class="ruby-constant">File</span>.<span class="ruby-identifier">expand_path</span>(<span class="ruby-value str">&quot;~&quot;</span>)
1107
+ 169: <span class="ruby-keyword kw">end</span></pre>
1108
+ </div>
1109
+
1110
+ </div>
1111
+
1112
+
1113
+
1114
+
1115
+ </div>
1116
+
1117
+
1118
+ <div id="worst-case-home-method" class="method-detail ">
1119
+ <a name="method-i-worst_case_home"></a>
1120
+
1121
+ <div class="method-heading">
1122
+
1123
+ <span class="method-name">worst_case_home</span><span
1124
+ class="method-args">()</span>
1125
+ <span class="method-click-advice">click to toggle source</span>
1126
+
1127
+ </div>
1128
+
1129
+ <div class="method-description">
1130
+
1131
+
1132
+
1133
+
1134
+
1135
+ <div class="method-source-code"
1136
+ id="worst-case-home-source">
1137
+ <pre>
1138
+ <span class="ruby-comment cmt"># File lib/sprout/system/base_system.rb, line 175</span>
1139
+ 175: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">worst_case_home</span>
1140
+ 176: <span class="ruby-keyword kw">return</span> <span class="ruby-value str">&quot;C:\\&quot;</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">alt_separator?</span>
1141
+ 177: <span class="ruby-keyword kw">return</span> <span class="ruby-value str">&quot;/&quot;</span>
1142
+ 178: <span class="ruby-keyword kw">end</span></pre>
1143
+ </div>
1144
+
1145
+ </div>
1146
+
1147
+
1148
+
1149
+
1150
+ </div>
1151
+
1152
+
1153
+ </div>
1154
+
1155
+
1156
+ </div>
1157
+
1158
+
1159
+ <div id="rdoc-debugging-section-dump" class="debugging-section">
1160
+
1161
+ <p>Disabled; run with --debug to generate this.</p>
1162
+
1163
+ </div>
1164
+
1165
+ <div id="validator-badges">
1166
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
1167
+ <p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
1168
+ Rdoc Generator</a> 1.1.6</small>.</p>
1169
+ </div>
1170
+
1171
+ </body>
1172
+ </html>
1173
+