sprout 1.1.17.pre → 1.1.18.pre

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of sprout might be problematic. Click here for more details.

Files changed (111) hide show
  1. data/VERSION +1 -1
  2. data/doc/Dir.html +313 -0
  3. data/doc/Rake/Task.html +206 -0
  4. data/doc/Sprout.html +778 -0
  5. data/doc/Sprout/ArchiveUnpacker.html +1313 -0
  6. data/doc/Sprout/CommandLine.html +521 -0
  7. data/doc/Sprout/Concern.html +382 -0
  8. data/doc/Sprout/Errors.html +120 -0
  9. data/doc/Sprout/Errors/ArchiveUnpackerError.html +139 -0
  10. data/doc/Sprout/Errors/DestinationExistsError.html +143 -0
  11. data/doc/Sprout/Errors/DuplicateMemberError.html +142 -0
  12. data/doc/Sprout/Errors/ExecutableError.html +139 -0
  13. data/doc/Sprout/Errors/ExecutableRegistrationError.html +142 -0
  14. data/doc/Sprout/Errors/ExecutionError.html +135 -0
  15. data/doc/Sprout/Errors/GeneratorError.html +139 -0
  16. data/doc/Sprout/Errors/InvalidArgumentError.html +142 -0
  17. data/doc/Sprout/Errors/LoadError.html +135 -0
  18. data/doc/Sprout/Errors/MissingArgumentError.html +142 -0
  19. data/doc/Sprout/Errors/MissingExecutableError.html +142 -0
  20. data/doc/Sprout/Errors/MissingGeneratorError.html +142 -0
  21. data/doc/Sprout/Errors/MissingTemplateError.html +142 -0
  22. data/doc/Sprout/Errors/ProcessRunnerError.html +135 -0
  23. data/doc/Sprout/Errors/RemoteFileLoaderError.html +128 -0
  24. data/doc/Sprout/Errors/SproutError.html +132 -0
  25. data/doc/Sprout/Errors/UnknownArchiveType.html +136 -0
  26. data/doc/Sprout/Errors/UsageError.html +135 -0
  27. data/doc/Sprout/Errors/ValidationError.html +135 -0
  28. data/doc/Sprout/Errors/VersionRequirementNotMetError.html +135 -0
  29. data/doc/Sprout/Executable.html +183 -0
  30. data/doc/Sprout/Executable/Base.html +2986 -0
  31. data/doc/Sprout/Executable/Boolean.html +577 -0
  32. data/doc/Sprout/Executable/CollectionParam.html +521 -0
  33. data/doc/Sprout/Executable/FileParam.html +517 -0
  34. data/doc/Sprout/Executable/Files.html +311 -0
  35. data/doc/Sprout/Executable/Number.html +164 -0
  36. data/doc/Sprout/Executable/Param.html +3011 -0
  37. data/doc/Sprout/Executable/ParameterFactory.html +262 -0
  38. data/doc/Sprout/Executable/Path.html +247 -0
  39. data/doc/Sprout/Executable/Paths.html +268 -0
  40. data/doc/Sprout/Executable/Session.html +1587 -0
  41. data/doc/Sprout/Executable/StringParam.html +237 -0
  42. data/doc/Sprout/Executable/Strings.html +186 -0
  43. data/doc/Sprout/Executable/Url.html +180 -0
  44. data/doc/Sprout/Executable/Urls.html +185 -0
  45. data/doc/Sprout/FileTarget.html +1170 -0
  46. data/doc/Sprout/Generator.html +800 -0
  47. data/doc/Sprout/Generator/Base.html +1834 -0
  48. data/doc/Sprout/Generator/Command.html +716 -0
  49. data/doc/Sprout/Generator/DirectoryManifest.html +503 -0
  50. data/doc/Sprout/Generator/FileManifest.html +667 -0
  51. data/doc/Sprout/Generator/Manifest.html +403 -0
  52. data/doc/Sprout/Generator/TemplateManifest.html +213 -0
  53. data/doc/Sprout/GeneratorGenerator.html +990 -0
  54. data/doc/Sprout/Library.html +1259 -0
  55. data/doc/Sprout/LibraryGenerator.html +326 -0
  56. data/doc/Sprout/OutputBuffer.html +461 -0
  57. data/doc/Sprout/Platform.html +758 -0
  58. data/doc/Sprout/ProcessRunner.html +1801 -0
  59. data/doc/Sprout/ProgressBar.html +384 -0
  60. data/doc/Sprout/ProgressBarImpl.html +2151 -0
  61. data/doc/Sprout/ProgressBarManager.html +443 -0
  62. data/doc/Sprout/ProgressBarOutputStream.html +429 -0
  63. data/doc/Sprout/RDocParser.html +228 -0
  64. data/doc/Sprout/RemoteFileLoader.html +191 -0
  65. data/doc/Sprout/RemoteFileTarget.html +710 -0
  66. data/doc/Sprout/ReversedProgressBar.html +200 -0
  67. data/doc/Sprout/RubyFeature.html +176 -0
  68. data/doc/Sprout/RubyFeature/ClassMethods.html +1099 -0
  69. data/doc/Sprout/RubyGenerator.html +712 -0
  70. data/doc/Sprout/Specification.html +838 -0
  71. data/doc/Sprout/System.html +212 -0
  72. data/doc/Sprout/System/BaseSystem.html +1732 -0
  73. data/doc/Sprout/System/JavaSystem.html +137 -0
  74. data/doc/Sprout/System/OSXSystem.html +345 -0
  75. data/doc/Sprout/System/ThreadMock.html +201 -0
  76. data/doc/Sprout/System/UnixSystem.html +610 -0
  77. data/doc/Sprout/System/VistaSystem.html +263 -0
  78. data/doc/Sprout/System/WinNixSystem.html +340 -0
  79. data/doc/Sprout/System/WinSystem.html +590 -0
  80. data/doc/Sprout/TestHelper.html +2280 -0
  81. data/doc/Sprout/ToolGenerator.html +995 -0
  82. data/doc/Sprout/VERSION.html +135 -0
  83. data/doc/String.html +313 -0
  84. data/doc/_index.html +829 -0
  85. data/doc/class_list.html +47 -0
  86. data/doc/css/common.css +1 -0
  87. data/doc/css/full_list.css +55 -0
  88. data/doc/css/style.css +322 -0
  89. data/doc/file.README.html +109 -0
  90. data/doc/file_list.html +49 -0
  91. data/doc/frames.html +13 -0
  92. data/doc/index.html +109 -0
  93. data/doc/js/app.js +205 -0
  94. data/doc/js/full_list.js +173 -0
  95. data/doc/js/jquery.js +16 -0
  96. data/doc/method_list.html +3622 -0
  97. data/doc/top-level-namespace.html +220 -0
  98. data/lib/sprout/generators/generator/generator_generator.rb +3 -3
  99. data/lib/sprout/generators/generator/templates/{generator_class.rb → generator_class.erb} +0 -0
  100. data/lib/sprout/generators/generator/templates/{generator_test.rb → generator_test.erb} +0 -0
  101. data/lib/sprout/generators/generator/templates/{generator_test_helper.rb → generator_test_helper.erb} +0 -0
  102. data/lib/sprout/generators/library/library_generator.rb +1 -1
  103. data/lib/sprout/generators/library/templates/{library.rb → library.erb} +0 -0
  104. data/lib/sprout/generators/ruby/ruby_generator.rb +4 -5
  105. data/lib/sprout/generators/ruby/templates/{ruby_base.rb → ruby_base.erb} +0 -0
  106. data/lib/sprout/generators/ruby/templates/{ruby_input.rb → ruby_input.erb} +0 -0
  107. data/lib/sprout/generators/ruby/templates/{ruby_test_case.rb → ruby_test_case.erb} +0 -0
  108. data/lib/sprout/generators/ruby/templates/{ruby_test_helper.rb → ruby_test_helper.erb} +0 -0
  109. data/lib/sprout/generators/tool/templates/{tool.rb → tool.erb} +0 -2
  110. data/lib/sprout/generators/tool/tool_generator.rb +1 -1
  111. metadata +128 -32
@@ -0,0 +1,185 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
+ <head>
5
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6
+ <title>
7
+ Class: Sprout::Executable::Urls
8
+
9
+ &mdash; Sprouts v.1.0.34.pre
10
+
11
+ </title>
12
+
13
+ <link rel="stylesheet" href="../../css/style.css" type="text/css" media="screen" charset="utf-8" />
14
+
15
+ <link rel="stylesheet" href="../../css/common.css" type="text/css" media="screen" charset="utf-8" />
16
+
17
+ <script type="text/javascript" charset="utf-8">
18
+ relpath = '../..';
19
+ if (relpath != '') relpath += '/';
20
+ </script>
21
+
22
+ <script type="text/javascript" charset="utf-8" src="../../js/jquery.js"></script>
23
+
24
+ <script type="text/javascript" charset="utf-8" src="../../js/app.js"></script>
25
+
26
+
27
+ </head>
28
+ <body>
29
+ <script type="text/javascript" charset="utf-8">
30
+ if (window.top.frames.main) document.body.className = 'frames';
31
+ </script>
32
+
33
+ <div id="header">
34
+ <div id="menu">
35
+
36
+ <a href="../../_index.html">Index (U)</a> &raquo;
37
+ <span class='title'><span class='object_link'><a href="../../Sprout.html" title="Sprout (module)">Sprout</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../Executable.html" title="Sprout::Executable (module)">Executable</a></span></span>
38
+ &raquo;
39
+ <span class="title">Urls</span>
40
+
41
+
42
+ <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
43
+ </div>
44
+
45
+ <div id="search">
46
+
47
+ <a id="class_list_link" href="#">Class List</a>
48
+
49
+ <a id="method_list_link" href="#">Method List</a>
50
+
51
+ <a id="file_list_link" href="#">File List</a>
52
+
53
+ </div>
54
+ <div class="clear"></div>
55
+ </div>
56
+
57
+ <iframe id="search_frame"></iframe>
58
+
59
+ <div id="content"><h1>Class: Sprout::Executable::Urls
60
+
61
+
62
+
63
+ </h1>
64
+
65
+ <dl class="box">
66
+
67
+ <dt class="r1">Inherits:</dt>
68
+ <dd class="r1">
69
+ <span class="inheritName"><span class='object_link'><a href="Strings.html" title="Sprout::Executable::Strings (class)">Strings</a></span></span>
70
+
71
+ <ul class="fullTree">
72
+ <li>Object</li>
73
+
74
+ <li class="next"><span class='object_link'><a href="Param.html" title="Sprout::Executable::Param (class)">Param</a></span></li>
75
+
76
+ <li class="next"><span class='object_link'><a href="Strings.html" title="Sprout::Executable::Strings (class)">Strings</a></span></li>
77
+
78
+ <li class="next">Sprout::Executable::Urls</li>
79
+
80
+ </ul>
81
+ <a href="#" class="inheritanceTree">show all</a>
82
+
83
+ </dd>
84
+
85
+
86
+
87
+
88
+
89
+
90
+
91
+
92
+
93
+ <dt class="r2 last">Defined in:</dt>
94
+ <dd class="r2 last">lib/sprout/executable/urls.rb</dd>
95
+
96
+ </dl>
97
+ <div class="clear"></div>
98
+
99
+ <h2>Overview</h2><div class="docstring">
100
+ <div class="discussion">
101
+ <p>
102
+ Collection of URL values.
103
+ </p>
104
+
105
+
106
+ </div>
107
+ </div>
108
+ <div class="tags">
109
+
110
+
111
+ <h3>See Also:</h3>
112
+ <ul class="see">
113
+
114
+ <li><span class='object_link'><a href="Url.html" title="Sprout::Executable::Url (class)">Url</a></span></li>
115
+
116
+ <li><span class='object_link'><a href="Param.html" title="Sprout::Executable::Param (class)">Param</a></span></li>
117
+
118
+ <li><span class='object_link'><a href="CollectionParam.html" title="Sprout::Executable::CollectionParam (module)">CollectionParam</a></span></li>
119
+
120
+ </ul>
121
+
122
+ </div>
123
+ <h2>Constant Summary</h2>
124
+
125
+
126
+
127
+
128
+ <h2>Constant Summary</h2>
129
+
130
+ <h3 class="inherited">Constants inherited
131
+ from <span class='object_link'><a href="Param.html" title="Sprout::Executable::Param (class)">Param</a></span></h3>
132
+ <p class="inherited"><span class='object_link'><a href="Param.html#DEFAULT_DELIMITER-constant" title="Sprout::Executable::Param::DEFAULT_DELIMITER (constant)">Param::DEFAULT_DELIMITER</a></span>, <span class='object_link'><a href="Param.html#DEFAULT_OPTION_PARSER_TYPE_NAME-constant" title="Sprout::Executable::Param::DEFAULT_OPTION_PARSER_TYPE_NAME (constant)">Param::DEFAULT_OPTION_PARSER_TYPE_NAME</a></span>, <span class='object_link'><a href="Param.html#DEFAULT_PREFIX-constant" title="Sprout::Executable::Param::DEFAULT_PREFIX (constant)">Param::DEFAULT_PREFIX</a></span>, <span class='object_link'><a href="Param.html#DEFAULT_SHORT_PREFIX-constant" title="Sprout::Executable::Param::DEFAULT_SHORT_PREFIX (constant)">Param::DEFAULT_SHORT_PREFIX</a></span></p>
133
+
134
+
135
+
136
+
137
+ <h2>Instance Attribute Summary</h2>
138
+
139
+ <h3 class="inherited">Attributes inherited from <span class='object_link'><a href="Param.html" title="Sprout::Executable::Param (class)">Param</a></span></h3>
140
+ <p class="inherited"><span class='object_link'><a href="Param.html#belongs_to-instance_method" title="Sprout::Executable::Param#belongs_to (method)">#belongs_to</a></span>, <span class='object_link'><a href="Param.html#delimiter-instance_method" title="Sprout::Executable::Param#delimiter (method)">#delimiter</a></span>, <span class='object_link'><a href="Param.html#description-instance_method" title="Sprout::Executable::Param#description (method)">#description</a></span>, <span class='object_link'><a href="Param.html#file_expression-instance_method" title="Sprout::Executable::Param#file_expression (method)">#file_expression</a></span>, <span class='object_link'><a href="Param.html#hidden_name-instance_method" title="Sprout::Executable::Param#hidden_name (method)">#hidden_name</a></span>, <span class='object_link'><a href="Param.html#hidden_value-instance_method" title="Sprout::Executable::Param#hidden_value (method)">#hidden_value</a></span>, <span class='object_link'><a href="Param.html#name-instance_method" title="Sprout::Executable::Param#name (method)">#name</a></span>, <span class='object_link'><a href="Param.html#prefix-instance_method" title="Sprout::Executable::Param#prefix (method)">#prefix</a></span>, <span class='object_link'><a href="Param.html#reader-instance_method" title="Sprout::Executable::Param#reader (method)">#reader</a></span>, <span class='object_link'><a href="Param.html#required-instance_method" title="Sprout::Executable::Param#required (method)">#required</a></span>, <span class='object_link'><a href="Param.html#shell_name-instance_method" title="Sprout::Executable::Param#shell_name (method)">#shell_name</a></span>, <span class='object_link'><a href="Param.html#short_name-instance_method" title="Sprout::Executable::Param#short_name (method)">#short_name</a></span>, <span class='object_link'><a href="Param.html#to_shell_proc-instance_method" title="Sprout::Executable::Param#to_shell_proc (method)">#to_shell_proc</a></span>, <span class='object_link'><a href="Param.html#type-instance_method" title="Sprout::Executable::Param#type (method)">#type</a></span>, <span class='object_link'><a href="Param.html#value-instance_method" title="Sprout::Executable::Param#value (method)">#value</a></span>, <span class='object_link'><a href="Param.html#writer-instance_method" title="Sprout::Executable::Param#writer (method)">#writer</a></span></p>
141
+
142
+
143
+
144
+
145
+
146
+
147
+
148
+
149
+
150
+
151
+
152
+
153
+
154
+ <h2>Method Summary</h2>
155
+
156
+ <h3 class="inherited">Methods included from <span class='object_link'><a href="CollectionParam.html" title="Sprout::Executable::CollectionParam (module)">CollectionParam</a></span></h3>
157
+ <p class="inherited"><span class='object_link'><a href="CollectionParam.html#initialize-instance_method" title="Sprout::Executable::CollectionParam#initialize (method)">#initialize</a></span>, <span class='object_link'><a href="CollectionParam.html#to_shell-instance_method" title="Sprout::Executable::CollectionParam#to_shell (method)">#to_shell</a></span>, <span class='object_link'><a href="CollectionParam.html#to_shell_value-instance_method" title="Sprout::Executable::CollectionParam#to_shell_value (method)">#to_shell_value</a></span>, <span class='object_link'><a href="CollectionParam.html#value%3D-instance_method" title="Sprout::Executable::CollectionParam#value= (method)">#value=</a></span>, <span class='object_link'><a href="CollectionParam.html#visible%3F-instance_method" title="Sprout::Executable::CollectionParam#visible? (method)">#visible?</a></span></p>
158
+
159
+
160
+
161
+
162
+
163
+
164
+
165
+
166
+ <h3 class="inherited">Methods inherited from <span class='object_link'><a href="Param.html" title="Sprout::Executable::Param (class)">Param</a></span></h3>
167
+ <p class="inherited"><span class='object_link'><a href="Param.html#clean_path-instance_method" title="Sprout::Executable::Param#clean_path (method)">#clean_path</a></span>, <span class='object_link'><a href="Param.html#default-instance_method" title="Sprout::Executable::Param#default (method)">#default</a></span>, <span class='object_link'><a href="Param.html#default%3D-instance_method" title="Sprout::Executable::Param#default= (method)">#default=</a></span>, <span class='object_link'><a href="Param.html#default_option_parser_declaration-instance_method" title="Sprout::Executable::Param#default_option_parser_declaration (method)">#default_option_parser_declaration</a></span>, <span class='object_link'><a href="Param.html#file_is_output%3F-instance_method" title="Sprout::Executable::Param#file_is_output? (method)">#file_is_output?</a></span>, <span class='object_link'><a href="Param.html#hidden_name%3F-instance_method" title="Sprout::Executable::Param#hidden_name? (method)">#hidden_name?</a></span>, <span class='object_link'><a href="Param.html#hidden_value%3F-instance_method" title="Sprout::Executable::Param#hidden_value? (method)">#hidden_value?</a></span>, <span class='object_link'><a href="Param.html#initialize-instance_method" title="Sprout::Executable::Param#initialize (method)">#initialize</a></span>, <span class='object_link'><a href="Param.html#option_parser_declaration-instance_method" title="Sprout::Executable::Param#option_parser_declaration (method)">#option_parser_declaration</a></span>, <span class='object_link'><a href="Param.html#option_parser_name-instance_method" title="Sprout::Executable::Param#option_parser_name (method)">#option_parser_name</a></span>, <span class='object_link'><a href="Param.html#option_parser_short_name-instance_method" title="Sprout::Executable::Param#option_parser_short_name (method)">#option_parser_short_name</a></span>, <span class='object_link'><a href="Param.html#option_parser_type_name-instance_method" title="Sprout::Executable::Param#option_parser_type_name (method)">#option_parser_type_name</a></span>, <span class='object_link'><a href="Param.html#option_parser_type_output-instance_method" title="Sprout::Executable::Param#option_parser_type_output (method)">#option_parser_type_output</a></span>, <span class='object_link'><a href="Param.html#prepare-instance_method" title="Sprout::Executable::Param#prepare (method)">#prepare</a></span>, <span class='object_link'><a href="Param.html#prepare_prerequisites-instance_method" title="Sprout::Executable::Param#prepare_prerequisites (method)">#prepare_prerequisites</a></span>, <span class='object_link'><a href="Param.html#prepared%3F-instance_method" title="Sprout::Executable::Param#prepared? (method)">#prepared?</a></span>, <span class='object_link'><a href="Param.html#required%3F-instance_method" title="Sprout::Executable::Param#required? (method)">#required?</a></span>, <span class='object_link'><a href="Param.html#shell_value-instance_method" title="Sprout::Executable::Param#shell_value (method)">#shell_value</a></span>, <span class='object_link'><a href="Param.html#short_prefix-instance_method" title="Sprout::Executable::Param#short_prefix (method)">#short_prefix</a></span>, <span class='object_link'><a href="Param.html#to_rdoc-instance_method" title="Sprout::Executable::Param#to_rdoc (method)">#to_rdoc</a></span>, <span class='object_link'><a href="Param.html#to_shell-instance_method" title="Sprout::Executable::Param#to_shell (method)">#to_shell</a></span>, <span class='object_link'><a href="Param.html#validate-instance_method" title="Sprout::Executable::Param#validate (method)">#validate</a></span>, <span class='object_link'><a href="Param.html#visible%3F-instance_method" title="Sprout::Executable::Param#visible? (method)">#visible?</a></span></p>
168
+ <div id="constructor_details" class="method_details_list">
169
+ <h2>Constructor Details</h2>
170
+
171
+ <p class="notice">This class inherits a constructor from <span class='object_link'><a href="CollectionParam.html#initialize-instance_method" title="Sprout::Executable::CollectionParam#initialize (method)">Sprout::Executable::CollectionParam</a></span></p>
172
+
173
+ </div>
174
+
175
+
176
+ </div>
177
+
178
+ <div id="footer">
179
+ Generated on Sun Mar 11 14:30:33 2012 by
180
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
181
+ 0.7.5 (ruby-1.9.2).
182
+ </div>
183
+
184
+ </body>
185
+ </html>
@@ -0,0 +1,1170 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
+ <head>
5
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6
+ <title>
7
+ Class: Sprout::FileTarget
8
+
9
+ &mdash; Sprouts v.1.0.34.pre
10
+
11
+ </title>
12
+
13
+ <link rel="stylesheet" href="../css/style.css" type="text/css" media="screen" charset="utf-8" />
14
+
15
+ <link rel="stylesheet" href="../css/common.css" type="text/css" media="screen" charset="utf-8" />
16
+
17
+ <script type="text/javascript" charset="utf-8">
18
+ relpath = '..';
19
+ if (relpath != '') relpath += '/';
20
+ </script>
21
+
22
+ <script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
23
+
24
+ <script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
25
+
26
+
27
+ </head>
28
+ <body>
29
+ <script type="text/javascript" charset="utf-8">
30
+ if (window.top.frames.main) document.body.className = 'frames';
31
+ </script>
32
+
33
+ <div id="header">
34
+ <div id="menu">
35
+
36
+ <a href="../_index.html">Index (F)</a> &raquo;
37
+ <span class='title'><span class='object_link'><a href="../Sprout.html" title="Sprout (module)">Sprout</a></span></span>
38
+ &raquo;
39
+ <span class="title">FileTarget</span>
40
+
41
+
42
+ <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
43
+ </div>
44
+
45
+ <div id="search">
46
+
47
+ <a id="class_list_link" href="#">Class List</a>
48
+
49
+ <a id="method_list_link" href="#">Method List</a>
50
+
51
+ <a id="file_list_link" href="#">File List</a>
52
+
53
+ </div>
54
+ <div class="clear"></div>
55
+ </div>
56
+
57
+ <iframe id="search_frame"></iframe>
58
+
59
+ <div id="content"><h1>Class: Sprout::FileTarget
60
+
61
+
62
+
63
+ </h1>
64
+
65
+ <dl class="box">
66
+
67
+ <dt class="r1">Inherits:</dt>
68
+ <dd class="r1">
69
+ <span class="inheritName">Object</span>
70
+
71
+ <ul class="fullTree">
72
+ <li>Object</li>
73
+
74
+ <li class="next">Sprout::FileTarget</li>
75
+
76
+ </ul>
77
+ <a href="#" class="inheritanceTree">show all</a>
78
+
79
+ </dd>
80
+
81
+
82
+
83
+
84
+
85
+
86
+
87
+
88
+
89
+ <dt class="r2 last">Defined in:</dt>
90
+ <dd class="r2 last">lib/sprout/file_target.rb</dd>
91
+
92
+ </dl>
93
+ <div class="clear"></div>
94
+
95
+ <h2>Overview</h2><div class="docstring">
96
+ <div class="discussion">
97
+ <p>
98
+ This is a class that is generally used by the
99
+ Sprout::Specification::add_file_target method.
100
+ </p>
101
+ <p>
102
+ File targets are files that are embedded into (or referred to by) a RubyGem
103
+ in such a way that Sprouts can use them as a library or executable.
104
+ </p>
105
+ <p>
106
+ A given FileTarget may be configured to work on a specific platform, or it
107
+ may be universal.
108
+ </p>
109
+
110
+
111
+ </div>
112
+ </div>
113
+ <div class="tags">
114
+
115
+
116
+ </div><div id="subclasses">
117
+ <h2>Direct Known Subclasses</h2>
118
+ <p class="children"><span class='object_link'><a href="RemoteFileTarget.html" title="Sprout::RemoteFileTarget (class)">RemoteFileTarget</a></span></p>
119
+ </div>
120
+
121
+
122
+
123
+
124
+ <h2>Instance Attribute Summary <small>(<a href="#" class="summary_toggle">collapse</a>)</small></h2>
125
+ <ul class="summary">
126
+
127
+ <li class="public ">
128
+ <span class="summary_signature">
129
+
130
+ <a href="#executables-instance_method" title="#executables (instance method)">- (Object) <strong>executables</strong> </a>
131
+
132
+
133
+
134
+ </span>
135
+
136
+
137
+ <span class="note title readonly">readonly</span>
138
+
139
+
140
+
141
+
142
+
143
+
144
+
145
+
146
+ <span class="summary_desc"><div class='inline'><p>
147
+ Returns the value of attribute executables.
148
+ </p>
149
+ </div></span>
150
+
151
+ </li>
152
+
153
+
154
+ <li class="public ">
155
+ <span class="summary_signature">
156
+
157
+ <a href="#libraries-instance_method" title="#libraries (instance method)">- (Object) <strong>libraries</strong> </a>
158
+
159
+
160
+
161
+ </span>
162
+
163
+
164
+ <span class="note title readonly">readonly</span>
165
+
166
+
167
+
168
+
169
+
170
+
171
+
172
+
173
+ <span class="summary_desc"><div class='inline'><p>
174
+ Returns the value of attribute libraries.
175
+ </p>
176
+ </div></span>
177
+
178
+ </li>
179
+
180
+
181
+ <li class="public ">
182
+ <span class="summary_signature">
183
+
184
+ <a href="#load_path-instance_method" title="#load_path (instance method)">- (Object) <strong>load_path</strong> </a>
185
+
186
+
187
+
188
+ </span>
189
+
190
+
191
+
192
+
193
+
194
+
195
+
196
+
197
+
198
+
199
+
200
+ <span class="summary_desc"><div class='inline'><p>
201
+ Returns the value of attribute load_path.
202
+ </p>
203
+ </div></span>
204
+
205
+ </li>
206
+
207
+
208
+ <li class="public ">
209
+ <span class="summary_signature">
210
+
211
+ <a href="#pkg_name-instance_method" title="#pkg_name (instance method)">- (Object) <strong>pkg_name</strong> </a>
212
+
213
+
214
+
215
+ </span>
216
+
217
+
218
+
219
+
220
+
221
+
222
+
223
+
224
+
225
+
226
+
227
+ <span class="summary_desc"><div class='inline'><p>
228
+ Returns the value of attribute pkg_name.
229
+ </p>
230
+ </div></span>
231
+
232
+ </li>
233
+
234
+
235
+ <li class="public ">
236
+ <span class="summary_signature">
237
+
238
+ <a href="#pkg_version-instance_method" title="#pkg_version (instance method)">- (Object) <strong>pkg_version</strong> </a>
239
+
240
+
241
+
242
+ </span>
243
+
244
+
245
+
246
+
247
+
248
+
249
+
250
+
251
+
252
+
253
+
254
+ <span class="summary_desc"><div class='inline'><p>
255
+ Returns the value of attribute pkg_version.
256
+ </p>
257
+ </div></span>
258
+
259
+ </li>
260
+
261
+
262
+ <li class="public ">
263
+ <span class="summary_signature">
264
+
265
+ <a href="#platform-instance_method" title="#platform (instance method)">- (Object) <strong>platform</strong> </a>
266
+
267
+
268
+
269
+ </span>
270
+
271
+
272
+
273
+
274
+
275
+
276
+
277
+
278
+
279
+
280
+
281
+ <span class="summary_desc"><div class='inline'><p>
282
+ Returns the value of attribute platform.
283
+ </p>
284
+ </div></span>
285
+
286
+ </li>
287
+
288
+
289
+ </ul>
290
+
291
+
292
+
293
+
294
+
295
+ <h2>
296
+ Instance Method Summary
297
+ <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
298
+ </h2>
299
+
300
+ <ul class="summary">
301
+
302
+ <li class="public ">
303
+ <span class="summary_signature">
304
+
305
+ <a href="#add_executable-instance_method" title="#add_executable (instance method)">- (Object) <strong>add_executable</strong>(name, path) </a>
306
+
307
+
308
+
309
+ </span>
310
+
311
+
312
+
313
+
314
+
315
+
316
+
317
+
318
+ <span class="summary_desc"><div class='inline'><p>
319
+ Add an executable to the RubyGem package.
320
+ </p>
321
+ </div></span>
322
+
323
+ </li>
324
+
325
+
326
+ <li class="public ">
327
+ <span class="summary_signature">
328
+
329
+ <a href="#add_library-instance_method" title="#add_library (instance method)">- (Sprout::Library) <strong>add_library</strong>(name, path) </a>
330
+
331
+
332
+
333
+ </span>
334
+
335
+
336
+
337
+
338
+
339
+
340
+
341
+
342
+ <span class="summary_desc"><div class='inline'><p>
343
+ Add a library to the package.
344
+ </p>
345
+ </div></span>
346
+
347
+ </li>
348
+
349
+
350
+ <li class="public ">
351
+ <span class="summary_signature">
352
+
353
+ <a href="#expand_local_path-instance_method" title="#expand_local_path (instance method)">- (Object) <strong>expand_local_path</strong>(path) </a>
354
+
355
+
356
+
357
+ </span>
358
+
359
+
360
+
361
+
362
+
363
+
364
+
365
+
366
+ <span class="summary_desc"><div class='inline'><p>
367
+ This is a template method that is overridden by RemoteFileTarget.
368
+ </p>
369
+ </div></span>
370
+
371
+ </li>
372
+
373
+
374
+ <li class="public ">
375
+ <span class="summary_signature">
376
+
377
+ <a href="#initialize-instance_method" title="#initialize (instance method)">- (FileTarget) <strong>initialize</strong> {|_self| ... }</a>
378
+
379
+
380
+
381
+ </span>
382
+
383
+ <span class="note title constructor">constructor</span>
384
+
385
+
386
+
387
+
388
+
389
+
390
+
391
+
392
+ <span class="summary_desc"><div class='inline'><p>
393
+ A new instance of FileTarget.
394
+ </p>
395
+ </div></span>
396
+
397
+ </li>
398
+
399
+
400
+ <li class="public ">
401
+ <span class="summary_signature">
402
+
403
+ <a href="#resolve-instance_method" title="#resolve (instance method)">- (Object) <strong>resolve</strong> </a>
404
+
405
+
406
+
407
+ </span>
408
+
409
+
410
+
411
+
412
+
413
+
414
+
415
+
416
+ <span class="summary_desc"><div class='inline'><p>
417
+ This is a template method that will be called so that RemoteFileTarget
418
+ subclasses and load the appropriate files at the appropriate time.
419
+ </p>
420
+ </div></span>
421
+
422
+ </li>
423
+
424
+
425
+ <li class="public ">
426
+ <span class="summary_signature">
427
+
428
+ <a href="#to_s-instance_method" title="#to_s (instance method)">- (Object) <strong>to_s</strong> </a>
429
+
430
+
431
+
432
+ </span>
433
+
434
+
435
+
436
+
437
+
438
+
439
+
440
+
441
+ <span class="summary_desc"><div class='inline'></div></span>
442
+
443
+ </li>
444
+
445
+
446
+ <li class="public ">
447
+ <span class="summary_signature">
448
+
449
+ <a href="#validate-instance_method" title="#validate (instance method)">- (Object) <strong>validate</strong> </a>
450
+
451
+
452
+
453
+ </span>
454
+
455
+
456
+
457
+
458
+
459
+
460
+
461
+
462
+ <span class="summary_desc"><div class='inline'></div></span>
463
+
464
+ </li>
465
+
466
+
467
+ </ul>
468
+
469
+
470
+ <div id="constructor_details" class="method_details_list">
471
+ <h2>Constructor Details</h2>
472
+
473
+ <div class="method_details first">
474
+ <p class="signature first" id="initialize-instance_method">
475
+
476
+ - (<tt><span class='object_link'><a href="" title="Sprout::FileTarget (class)">FileTarget</a></span></tt>) <strong>initialize</strong> {|_self| ... }
477
+
478
+
479
+
480
+ </p><div class="docstring">
481
+ <div class="discussion">
482
+ <p>
483
+ A new instance of FileTarget
484
+ </p>
485
+
486
+
487
+ </div>
488
+ </div>
489
+ <div class="tags">
490
+
491
+ <h3>Yields:</h3>
492
+ <ul class="yield">
493
+
494
+ <li>
495
+
496
+
497
+ <span class='type'>(<tt>_self</tt>)</span>
498
+
499
+
500
+
501
+ </li>
502
+
503
+ </ul>
504
+ <h3>Yield Parameters:</h3>
505
+ <ul class="yieldparam">
506
+
507
+ <li>
508
+
509
+ <span class='name'>_self</span>
510
+
511
+
512
+ <span class='type'>(<tt><span class='object_link'><a href="" title="Sprout::FileTarget (class)">Sprout::FileTarget</a></span></tt>)</span>
513
+
514
+
515
+
516
+ &mdash;
517
+ <div class='inline'><p>
518
+ the object that the method was called on
519
+ </p>
520
+ </div>
521
+
522
+ </li>
523
+
524
+ </ul>
525
+
526
+ </div><table class="source_code">
527
+ <tr>
528
+ <td>
529
+ <pre class="lines">
530
+
531
+
532
+ 22
533
+ 23
534
+ 24
535
+ 25
536
+ 26
537
+ 27
538
+ 28</pre>
539
+ </td>
540
+ <td>
541
+ <pre class="code"><span class="info file"># File 'lib/sprout/file_target.rb', line 22</span>
542
+
543
+ <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span>
544
+ <span class='ivar'>@executables</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
545
+ <span class='ivar'>@libraries</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
546
+ <span class='ivar'>@load_path</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>.</span><span class='tstring_end'>'</span></span>
547
+ <span class='ivar'>@platform</span> <span class='op'>=</span> <span class='symbol'>:universal</span>
548
+ <span class='kw'>yield</span> <span class='kw'>self</span> <span class='kw'>if</span> <span class='id identifier rubyid_block_given?'>block_given?</span>
549
+ <span class='kw'>end</span></pre>
550
+ </td>
551
+ </tr>
552
+ </table>
553
+ </div>
554
+
555
+ </div>
556
+
557
+ <div id="instance_attr_details" class="attr_details">
558
+ <h2>Instance Attribute Details</h2>
559
+
560
+
561
+ <span id=""></span>
562
+ <span id="executables-instance_method"></span>
563
+ <div class="method_details first">
564
+ <p class="signature first" id="executables-instance_method">
565
+
566
+ - (<tt>Object</tt>) <strong>executables</strong> <span class="extras">(readonly)</span>
567
+
568
+
569
+
570
+ </p><div class="docstring">
571
+ <div class="discussion">
572
+ <p>
573
+ Returns the value of attribute executables
574
+ </p>
575
+
576
+
577
+ </div>
578
+ </div>
579
+ <div class="tags">
580
+
581
+
582
+ </div><table class="source_code">
583
+ <tr>
584
+ <td>
585
+ <pre class="lines">
586
+
587
+
588
+ 19
589
+ 20
590
+ 21</pre>
591
+ </td>
592
+ <td>
593
+ <pre class="code"><span class="info file"># File 'lib/sprout/file_target.rb', line 19</span>
594
+
595
+ <span class='kw'>def</span> <span class='id identifier rubyid_executables'>executables</span>
596
+ <span class='ivar'>@executables</span>
597
+ <span class='kw'>end</span></pre>
598
+ </td>
599
+ </tr>
600
+ </table>
601
+ </div>
602
+
603
+
604
+ <span id=""></span>
605
+ <span id="libraries-instance_method"></span>
606
+ <div class="method_details ">
607
+ <p class="signature " id="libraries-instance_method">
608
+
609
+ - (<tt>Object</tt>) <strong>libraries</strong> <span class="extras">(readonly)</span>
610
+
611
+
612
+
613
+ </p><div class="docstring">
614
+ <div class="discussion">
615
+ <p>
616
+ Returns the value of attribute libraries
617
+ </p>
618
+
619
+
620
+ </div>
621
+ </div>
622
+ <div class="tags">
623
+
624
+
625
+ </div><table class="source_code">
626
+ <tr>
627
+ <td>
628
+ <pre class="lines">
629
+
630
+
631
+ 20
632
+ 21
633
+ 22</pre>
634
+ </td>
635
+ <td>
636
+ <pre class="code"><span class="info file"># File 'lib/sprout/file_target.rb', line 20</span>
637
+
638
+ <span class='kw'>def</span> <span class='id identifier rubyid_libraries'>libraries</span>
639
+ <span class='ivar'>@libraries</span>
640
+ <span class='kw'>end</span></pre>
641
+ </td>
642
+ </tr>
643
+ </table>
644
+ </div>
645
+
646
+
647
+ <span id="load_path=-instance_method"></span>
648
+ <span id="load_path-instance_method"></span>
649
+ <div class="method_details ">
650
+ <p class="signature " id="load_path-instance_method">
651
+
652
+ - (<tt>Object</tt>) <strong>load_path</strong>
653
+
654
+
655
+
656
+ </p><div class="docstring">
657
+ <div class="discussion">
658
+ <p>
659
+ Returns the value of attribute load_path
660
+ </p>
661
+
662
+
663
+ </div>
664
+ </div>
665
+ <div class="tags">
666
+
667
+
668
+ </div><table class="source_code">
669
+ <tr>
670
+ <td>
671
+ <pre class="lines">
672
+
673
+
674
+ 14
675
+ 15
676
+ 16</pre>
677
+ </td>
678
+ <td>
679
+ <pre class="code"><span class="info file"># File 'lib/sprout/file_target.rb', line 14</span>
680
+
681
+ <span class='kw'>def</span> <span class='id identifier rubyid_load_path'>load_path</span>
682
+ <span class='ivar'>@load_path</span>
683
+ <span class='kw'>end</span></pre>
684
+ </td>
685
+ </tr>
686
+ </table>
687
+ </div>
688
+
689
+
690
+ <span id="pkg_name=-instance_method"></span>
691
+ <span id="pkg_name-instance_method"></span>
692
+ <div class="method_details ">
693
+ <p class="signature " id="pkg_name-instance_method">
694
+
695
+ - (<tt>Object</tt>) <strong>pkg_name</strong>
696
+
697
+
698
+
699
+ </p><div class="docstring">
700
+ <div class="discussion">
701
+ <p>
702
+ Returns the value of attribute pkg_name
703
+ </p>
704
+
705
+
706
+ </div>
707
+ </div>
708
+ <div class="tags">
709
+
710
+
711
+ </div><table class="source_code">
712
+ <tr>
713
+ <td>
714
+ <pre class="lines">
715
+
716
+
717
+ 15
718
+ 16
719
+ 17</pre>
720
+ </td>
721
+ <td>
722
+ <pre class="code"><span class="info file"># File 'lib/sprout/file_target.rb', line 15</span>
723
+
724
+ <span class='kw'>def</span> <span class='id identifier rubyid_pkg_name'>pkg_name</span>
725
+ <span class='ivar'>@pkg_name</span>
726
+ <span class='kw'>end</span></pre>
727
+ </td>
728
+ </tr>
729
+ </table>
730
+ </div>
731
+
732
+
733
+ <span id="pkg_version=-instance_method"></span>
734
+ <span id="pkg_version-instance_method"></span>
735
+ <div class="method_details ">
736
+ <p class="signature " id="pkg_version-instance_method">
737
+
738
+ - (<tt>Object</tt>) <strong>pkg_version</strong>
739
+
740
+
741
+
742
+ </p><div class="docstring">
743
+ <div class="discussion">
744
+ <p>
745
+ Returns the value of attribute pkg_version
746
+ </p>
747
+
748
+
749
+ </div>
750
+ </div>
751
+ <div class="tags">
752
+
753
+
754
+ </div><table class="source_code">
755
+ <tr>
756
+ <td>
757
+ <pre class="lines">
758
+
759
+
760
+ 16
761
+ 17
762
+ 18</pre>
763
+ </td>
764
+ <td>
765
+ <pre class="code"><span class="info file"># File 'lib/sprout/file_target.rb', line 16</span>
766
+
767
+ <span class='kw'>def</span> <span class='id identifier rubyid_pkg_version'>pkg_version</span>
768
+ <span class='ivar'>@pkg_version</span>
769
+ <span class='kw'>end</span></pre>
770
+ </td>
771
+ </tr>
772
+ </table>
773
+ </div>
774
+
775
+
776
+ <span id="platform=-instance_method"></span>
777
+ <span id="platform-instance_method"></span>
778
+ <div class="method_details ">
779
+ <p class="signature " id="platform-instance_method">
780
+
781
+ - (<tt>Object</tt>) <strong>platform</strong>
782
+
783
+
784
+
785
+ </p><div class="docstring">
786
+ <div class="discussion">
787
+ <p>
788
+ Returns the value of attribute platform
789
+ </p>
790
+
791
+
792
+ </div>
793
+ </div>
794
+ <div class="tags">
795
+
796
+
797
+ </div><table class="source_code">
798
+ <tr>
799
+ <td>
800
+ <pre class="lines">
801
+
802
+
803
+ 17
804
+ 18
805
+ 19</pre>
806
+ </td>
807
+ <td>
808
+ <pre class="code"><span class="info file"># File 'lib/sprout/file_target.rb', line 17</span>
809
+
810
+ <span class='kw'>def</span> <span class='id identifier rubyid_platform'>platform</span>
811
+ <span class='ivar'>@platform</span>
812
+ <span class='kw'>end</span></pre>
813
+ </td>
814
+ </tr>
815
+ </table>
816
+ </div>
817
+
818
+ </div>
819
+
820
+
821
+ <div id="instance_method_details" class="method_details_list">
822
+ <h2>Instance Method Details</h2>
823
+
824
+
825
+ <div class="method_details first">
826
+ <p class="signature first" id="add_executable-instance_method">
827
+
828
+ - (<tt>Object</tt>) <strong>add_executable</strong>(name, path)
829
+
830
+
831
+
832
+ </p><div class="docstring">
833
+ <div class="discussion">
834
+ <p>
835
+ Add an executable to the RubyGem package.
836
+ </p>
837
+ <p>
838
+ with this name.
839
+ </p>
840
+
841
+
842
+ </div>
843
+ </div>
844
+ <div class="tags">
845
+ <h3>Parameters:</h3>
846
+ <ul class="param">
847
+
848
+ <li>
849
+
850
+ <span class='name'>name</span>
851
+
852
+
853
+ <span class='type'>(<tt>Symbol</tt>)</span>
854
+
855
+
856
+
857
+ &mdash;
858
+ <div class='inline'><p>
859
+ that will be used to retrieve this executable later.
860
+ </p>
861
+ </div>
862
+
863
+ </li>
864
+
865
+ <li>
866
+
867
+ <span class='name'>path</span>
868
+
869
+
870
+ <span class='type'>(<tt>File</tt>)</span>
871
+
872
+
873
+
874
+ &mdash;
875
+ <div class='inline'><p>
876
+ relative path to the executable that will be associated
877
+ </p>
878
+ </div>
879
+
880
+ </li>
881
+
882
+ </ul>
883
+
884
+
885
+ </div><table class="source_code">
886
+ <tr>
887
+ <td>
888
+ <pre class="lines">
889
+
890
+
891
+ 64
892
+ 65
893
+ 66
894
+ 67</pre>
895
+ </td>
896
+ <td>
897
+ <pre class="code"><span class="info file"># File 'lib/sprout/file_target.rb', line 64</span>
898
+
899
+ <span class='kw'>def</span> <span class='id identifier rubyid_add_executable'>add_executable</span> <span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='id identifier rubyid_path'>path</span>
900
+ <span class='id identifier rubyid_path'>path</span> <span class='op'>=</span> <span class='id identifier rubyid_expand_local_path'>expand_local_path</span> <span class='id identifier rubyid_path'>path</span>
901
+ <span class='id identifier rubyid_executables'>executables</span> <span class='op'>&lt;&lt;</span> <span class='const'>OpenStruct</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span> <span class='symbol'>:name</span> <span class='op'>=&gt;</span> <span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='symbol'>:path</span> <span class='op'>=&gt;</span> <span class='id identifier rubyid_path'>path</span><span class='comma'>,</span> <span class='symbol'>:file_target</span> <span class='op'>=&gt;</span> <span class='kw'>self</span> <span class='rparen'>)</span>
902
+ <span class='kw'>end</span></pre>
903
+ </td>
904
+ </tr>
905
+ </table>
906
+ </div>
907
+
908
+ <div class="method_details ">
909
+ <p class="signature " id="add_library-instance_method">
910
+
911
+ - (<tt><span class='object_link'><a href="Library.html" title="Sprout::Library (class)">Sprout::Library</a></span></tt>) <strong>add_library</strong>(name, path)
912
+
913
+
914
+
915
+ </p><div class="docstring">
916
+ <div class="discussion">
917
+ <p>
918
+ Add a library to the package.
919
+ </p>
920
+
921
+
922
+ </div>
923
+ </div>
924
+ <div class="tags">
925
+ <h3>Parameters:</h3>
926
+ <ul class="param">
927
+
928
+ <li>
929
+
930
+ <span class='name'>name</span>
931
+
932
+
933
+ <span class='type'>(<tt>Symbol</tt>)</span>
934
+
935
+
936
+
937
+ &mdash;
938
+ <div class='inline'><p>
939
+ Name that will be used to retrieve this library on <tt>load</tt>.
940
+ </p>
941
+ </div>
942
+
943
+ </li>
944
+
945
+ <li>
946
+
947
+ <span class='name'>path</span>
948
+
949
+
950
+ <span class='type'>(<tt>File</tt>, <tt>Path</tt>, <tt>Array</tt>)</span>
951
+
952
+
953
+
954
+ &mdash;
955
+ <div class='inline'><p>
956
+ File or files that will be associated with this library and copied into
957
+ the target project library folder when loaded. (If the path is a
958
+ directory, all files forward of that directory will be included.)
959
+ </p>
960
+ </div>
961
+
962
+ </li>
963
+
964
+ </ul>
965
+
966
+ <h3>Returns:</h3>
967
+ <ul class="return">
968
+
969
+ <li>
970
+
971
+
972
+ <span class='type'>(<tt><span class='object_link'><a href="Library.html" title="Sprout::Library (class)">Sprout::Library</a></span></tt>)</span>
973
+
974
+
975
+
976
+ &mdash;
977
+ <div class='inline'><p>
978
+ The newly created library that was added.
979
+ </p>
980
+ </div>
981
+
982
+ </li>
983
+
984
+ </ul>
985
+
986
+ </div><table class="source_code">
987
+ <tr>
988
+ <td>
989
+ <pre class="lines">
990
+
991
+
992
+ 46
993
+ 47
994
+ 48
995
+ 49
996
+ 50
997
+ 51
998
+ 52
999
+ 53
1000
+ 54
1001
+ 55</pre>
1002
+ </td>
1003
+ <td>
1004
+ <pre class="code"><span class="info file"># File 'lib/sprout/file_target.rb', line 46</span>
1005
+
1006
+ <span class='kw'>def</span> <span class='id identifier rubyid_add_library'>add_library</span> <span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='id identifier rubyid_path'>path</span>
1007
+ <span class='kw'>if</span> <span class='id identifier rubyid_path'>path</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span><span class='lparen'>(</span><span class='const'>Array</span><span class='rparen'>)</span>
1008
+ <span class='id identifier rubyid_path'>path</span> <span class='op'>=</span> <span class='id identifier rubyid_path'>path</span><span class='period'>.</span><span class='id identifier rubyid_collect'>collect</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_p'>p</span><span class='op'>|</span> <span class='id identifier rubyid_expand_local_path'>expand_local_path</span><span class='lparen'>(</span><span class='id identifier rubyid_p'>p</span><span class='rparen'>)</span> <span class='rbrace'>}</span>
1009
+ <span class='kw'>else</span>
1010
+ <span class='id identifier rubyid_path'>path</span> <span class='op'>=</span> <span class='id identifier rubyid_expand_local_path'>expand_local_path</span> <span class='id identifier rubyid_path'>path</span>
1011
+ <span class='kw'>end</span>
1012
+ <span class='id identifier rubyid_library'>library</span> <span class='op'>=</span> <span class='const'>Sprout</span><span class='op'>::</span><span class='const'>Library</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span> <span class='symbol'>:name</span> <span class='op'>=&gt;</span> <span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='symbol'>:path</span> <span class='op'>=&gt;</span> <span class='id identifier rubyid_path'>path</span><span class='comma'>,</span> <span class='symbol'>:file_target</span> <span class='op'>=&gt;</span> <span class='kw'>self</span> <span class='rparen'>)</span>
1013
+ <span class='id identifier rubyid_libraries'>libraries</span> <span class='op'>&lt;&lt;</span> <span class='id identifier rubyid_library'>library</span>
1014
+ <span class='id identifier rubyid_library'>library</span>
1015
+ <span class='kw'>end</span></pre>
1016
+ </td>
1017
+ </tr>
1018
+ </table>
1019
+ </div>
1020
+
1021
+ <div class="method_details ">
1022
+ <p class="signature " id="expand_local_path-instance_method">
1023
+
1024
+ - (<tt>Object</tt>) <strong>expand_local_path</strong>(path)
1025
+
1026
+
1027
+
1028
+ </p><div class="docstring">
1029
+ <div class="discussion">
1030
+ <p>
1031
+ This is a template method that is overridden by RemoteFileTarget.
1032
+ </p>
1033
+
1034
+
1035
+ </div>
1036
+ </div>
1037
+ <div class="tags">
1038
+
1039
+
1040
+ </div><table class="source_code">
1041
+ <tr>
1042
+ <td>
1043
+ <pre class="lines">
1044
+
1045
+
1046
+ 81
1047
+ 82
1048
+ 83</pre>
1049
+ </td>
1050
+ <td>
1051
+ <pre class="code"><span class="info file"># File 'lib/sprout/file_target.rb', line 81</span>
1052
+
1053
+ <span class='kw'>def</span> <span class='id identifier rubyid_expand_local_path'>expand_local_path</span> <span class='id identifier rubyid_path'>path</span>
1054
+ <span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_join'>join</span> <span class='id identifier rubyid_load_path'>load_path</span><span class='comma'>,</span> <span class='id identifier rubyid_path'>path</span>
1055
+ <span class='kw'>end</span></pre>
1056
+ </td>
1057
+ </tr>
1058
+ </table>
1059
+ </div>
1060
+
1061
+ <div class="method_details ">
1062
+ <p class="signature " id="resolve-instance_method">
1063
+
1064
+ - (<tt>Object</tt>) <strong>resolve</strong>
1065
+
1066
+
1067
+
1068
+ </p><div class="docstring">
1069
+ <div class="discussion">
1070
+ <p>
1071
+ This is a template method that will be called so that RemoteFileTarget
1072
+ subclasses and load the appropriate files at the appropriate time.
1073
+ Admittedly kind of smelly, other ideas welcome&#8230;
1074
+ </p>
1075
+
1076
+
1077
+ </div>
1078
+ </div>
1079
+ <div class="tags">
1080
+
1081
+
1082
+ </div><table class="source_code">
1083
+ <tr>
1084
+ <td>
1085
+ <pre class="lines">
1086
+
1087
+
1088
+ 35
1089
+ 36</pre>
1090
+ </td>
1091
+ <td>
1092
+ <pre class="code"><span class="info file"># File 'lib/sprout/file_target.rb', line 35</span>
1093
+
1094
+ <span class='kw'>def</span> <span class='id identifier rubyid_resolve'>resolve</span>
1095
+ <span class='kw'>end</span></pre>
1096
+ </td>
1097
+ </tr>
1098
+ </table>
1099
+ </div>
1100
+
1101
+ <div class="method_details ">
1102
+ <p class="signature " id="to_s-instance_method">
1103
+
1104
+ - (<tt>Object</tt>) <strong>to_s</strong>
1105
+
1106
+
1107
+
1108
+ </p><table class="source_code">
1109
+ <tr>
1110
+ <td>
1111
+ <pre class="lines">
1112
+
1113
+
1114
+ 69
1115
+ 70
1116
+ 71</pre>
1117
+ </td>
1118
+ <td>
1119
+ <pre class="code"><span class="info file"># File 'lib/sprout/file_target.rb', line 69</span>
1120
+
1121
+ <span class='kw'>def</span> <span class='id identifier rubyid_to_s'>to_s</span>
1122
+ <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>[FileTarget pkg_name=</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_pkg_name'>pkg_name</span><span class='rbrace'>}</span><span class='tstring_content'> pkg_version=</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_pkg_version'>pkg_version</span><span class='rbrace'>}</span><span class='tstring_content'> platform=</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_platform'>platform</span><span class='rbrace'>}</span><span class='tstring_content'>]</span><span class='tstring_end'>&quot;</span></span>
1123
+ <span class='kw'>end</span></pre>
1124
+ </td>
1125
+ </tr>
1126
+ </table>
1127
+ </div>
1128
+
1129
+ <div class="method_details ">
1130
+ <p class="signature " id="validate-instance_method">
1131
+
1132
+ - (<tt>Object</tt>) <strong>validate</strong>
1133
+
1134
+
1135
+
1136
+ </p><table class="source_code">
1137
+ <tr>
1138
+ <td>
1139
+ <pre class="lines">
1140
+
1141
+
1142
+ 73
1143
+ 74
1144
+ 75
1145
+ 76</pre>
1146
+ </td>
1147
+ <td>
1148
+ <pre class="code"><span class="info file"># File 'lib/sprout/file_target.rb', line 73</span>
1149
+
1150
+ <span class='kw'>def</span> <span class='id identifier rubyid_validate'>validate</span>
1151
+ <span class='id identifier rubyid_raise'>raise</span> <span class='const'>Sprout</span><span class='op'>::</span><span class='const'>Errors</span><span class='op'>::</span><span class='const'>UsageError</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>FileTarget.pkg_name is required</span><span class='tstring_end'>&quot;</span></span> <span class='kw'>if</span> <span class='id identifier rubyid_pkg_name'>pkg_name</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
1152
+ <span class='id identifier rubyid_raise'>raise</span> <span class='const'>Sprout</span><span class='op'>::</span><span class='const'>Errors</span><span class='op'>::</span><span class='const'>UsageError</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>FileTarget.pkg_version is required</span><span class='tstring_end'>&quot;</span></span> <span class='kw'>if</span> <span class='id identifier rubyid_pkg_version'>pkg_version</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
1153
+ <span class='kw'>end</span></pre>
1154
+ </td>
1155
+ </tr>
1156
+ </table>
1157
+ </div>
1158
+
1159
+ </div>
1160
+
1161
+ </div>
1162
+
1163
+ <div id="footer">
1164
+ Generated on Sun Mar 11 14:30:32 2012 by
1165
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1166
+ 0.7.5 (ruby-1.9.2).
1167
+ </div>
1168
+
1169
+ </body>
1170
+ </html>