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