reap 0.6.1 → 3.01
Sign up to get free protection for your applications and to get access to all the features.
- data/{ANN-0.6.1 → ANN} +0 -0
- data/ChangeLog +19 -8
- data/ProjectInfo +25 -0
- data/README +76 -11
- data/Rakefile +139 -17
- data/bin/reap +159 -0
- data/lib/reap/{announce-task.rb → announce_task.rb} +43 -41
- data/lib/reap/{chmod-task.rb → filemod_task.rb} +24 -20
- data/lib/reap/info_task.rb +29 -0
- data/lib/reap/noop_task.rb +35 -0
- data/lib/reap/{package-task.rb → package_task.rb} +63 -43
- data/lib/reap/projectinfo.rb +40 -0
- data/lib/reap/{publish-task.rb → publish_task.rb} +21 -17
- data/lib/reap/{rdoc-task.rb → rdoc_task.rb} +24 -19
- data/lib/reap/ready_made.rb +12 -0
- data/lib/reap/task.rb +89 -162
- data/lib/reap/tasks.rb +9 -0
- data/lib/reap/{test-task.rb → test_task.rb} +35 -15
- data/lib/reap/web_publish_task.rb +49 -0
- data/pub/grape.jpg +0 -0
- data/pub/www/index.html +61 -21
- data/pub/www/rdoc/classes/ProjectInfo.html +207 -0
- data/pub/www/rdoc/classes/ProjectInfo.src/M000055.html +18 -0
- data/pub/www/rdoc/classes/ProjectInfo.src/M000056.html +23 -0
- data/pub/www/rdoc/classes/ProjectInfo.src/M000057.html +18 -0
- data/pub/www/rdoc/classes/ProjectInfo.src/M000058.html +21 -0
- data/pub/www/rdoc/classes/ProjectInfo.src/M000059.html +18 -0
- data/pub/www/rdoc/classes/RakeTask.html +182 -0
- data/pub/www/rdoc/classes/RakeTask.src/M000051.html +18 -0
- data/pub/www/rdoc/classes/RakeTask.src/M000052.html +18 -0
- data/pub/www/rdoc/classes/RakeTask.src/M000053.html +18 -0
- data/pub/www/rdoc/classes/RakeTask.src/M000054.html +18 -0
- data/pub/www/rdoc/classes/Reap.html +57 -4
- data/pub/www/rdoc/classes/Reap/AnnounceTask.html +140 -14
- data/pub/www/rdoc/classes/Reap/AnnounceTask.src/M000039.html +16 -0
- data/pub/www/rdoc/classes/Reap/{TemplateTask.src/M000021.html → AnnounceTask.src/M000040.html} +4 -4
- data/pub/www/rdoc/classes/Reap/AnnounceTask.src/{M000031.html → M000041.html} +34 -34
- data/pub/www/rdoc/classes/Reap/AnnounceTask.src/{M000032.html → M000042.html} +1 -1
- data/pub/www/rdoc/classes/Reap/FilemodTask.html +254 -0
- data/pub/www/rdoc/classes/Reap/FilemodTask.src/M000027.html +16 -0
- data/pub/www/rdoc/classes/Reap/FilemodTask.src/M000028.html +18 -0
- data/pub/www/rdoc/classes/Reap/FilemodTask.src/M000029.html +21 -0
- data/pub/www/rdoc/classes/Reap/{ChmodTask.src/M000017.html → FilemodTask.src/M000030.html} +3 -3
- data/pub/www/rdoc/classes/Reap/{ChmodTask.src/M000018.html → FilemodTask.src/M000031.html} +2 -2
- data/pub/www/rdoc/classes/Reap/FilemodTask.src/M000032.html +18 -0
- data/pub/www/rdoc/classes/Reap/{TemplateTask.html → InfoTask.html} +46 -34
- data/pub/www/rdoc/classes/Reap/InfoTask.src/M000047.html +16 -0
- data/pub/www/rdoc/classes/Reap/{Task.src/M000026.html → InfoTask.src/M000048.html} +4 -4
- data/pub/www/rdoc/classes/Reap/{Task.src/M000025.html → InfoTask.src/M000049.html} +2 -3
- data/pub/www/rdoc/classes/Reap/InfoTask.src/M000050.html +18 -0
- data/pub/www/rdoc/classes/Reap/NoopTask.html +210 -0
- data/pub/www/rdoc/classes/Reap/NoopTask.src/M000043.html +16 -0
- data/pub/www/rdoc/classes/Reap/NoopTask.src/M000044.html +18 -0
- data/pub/www/rdoc/classes/Reap/{Task.src/M000028.html → NoopTask.src/M000045.html} +4 -3
- data/pub/www/rdoc/classes/Reap/NoopTask.src/M000046.html +18 -0
- data/pub/www/rdoc/classes/Reap/PackageTask.html +179 -22
- data/pub/www/rdoc/classes/Reap/PackageTask.src/M000005.html +16 -0
- data/pub/www/rdoc/classes/Reap/PackageTask.src/M000006.html +24 -0
- data/pub/www/rdoc/classes/Reap/PackageTask.src/M000007.html +53 -0
- data/pub/www/rdoc/classes/Reap/PackageTask.src/{M000002.html → M000008.html} +3 -4
- data/pub/www/rdoc/classes/Reap/PackageTask.src/{M000003.html → M000009.html} +1 -1
- data/pub/www/rdoc/classes/Reap/PublishTask.html +85 -14
- data/pub/www/rdoc/classes/Reap/PublishTask.src/M000023.html +16 -0
- data/pub/www/rdoc/classes/Reap/PublishTask.src/M000024.html +18 -0
- data/pub/www/rdoc/classes/Reap/PublishTask.src/M000025.html +22 -0
- data/pub/www/rdoc/classes/Reap/PublishTask.src/{M000020.html → M000026.html} +2 -2
- data/pub/www/rdoc/classes/Reap/RDocTask.html +37 -21
- data/pub/www/rdoc/classes/Reap/RDocTask.src/M000001.html +16 -0
- data/pub/www/rdoc/classes/Reap/RDocTask.src/M000002.html +18 -0
- data/pub/www/rdoc/classes/Reap/RDocTask.src/M000003.html +25 -0
- data/pub/www/rdoc/classes/Reap/RDocTask.src/M000004.html +39 -10
- data/pub/www/rdoc/classes/Reap/Task.html +44 -124
- data/pub/www/rdoc/classes/Reap/Task.src/M000033.html +21 -0
- data/pub/www/rdoc/classes/Reap/Task.src/{M000030.html → M000034.html} +4 -5
- data/pub/www/rdoc/classes/Reap/Task.src/M000035.html +41 -0
- data/pub/www/rdoc/classes/Reap/Task.src/M000036.html +16 -0
- data/pub/www/rdoc/classes/Reap/Task.src/M000037.html +18 -0
- data/pub/www/rdoc/classes/Reap/Task.src/M000038.html +19 -0
- data/pub/www/rdoc/classes/Reap/TestTask.html +66 -32
- data/pub/www/rdoc/classes/Reap/TestTask.src/M000014.html +16 -0
- data/pub/www/rdoc/classes/Reap/TestTask.src/M000015.html +18 -0
- data/pub/www/rdoc/classes/Reap/TestTask.src/M000016.html +25 -0
- data/pub/www/rdoc/classes/Reap/TestTask.src/{M000009.html → M000017.html} +5 -5
- data/pub/www/rdoc/classes/Reap/TestTask.src/{M000010.html → M000018.html} +3 -3
- data/pub/www/rdoc/classes/Reap/TestTask.src/{M000011.html → M000019.html} +1 -1
- data/pub/www/rdoc/classes/Reap/TestTask/TestResults.html +17 -17
- data/pub/www/rdoc/classes/Reap/TestTask/TestResults.src/{M000012.html → M000020.html} +1 -1
- data/pub/www/rdoc/classes/Reap/TestTask/TestResults.src/{M000013.html → M000021.html} +1 -1
- data/pub/www/rdoc/classes/Reap/TestTask/TestResults.src/{M000014.html → M000022.html} +1 -1
- data/pub/www/rdoc/classes/Reap/{ChmodTask.html → WebPublishTask.html} +46 -35
- data/pub/www/rdoc/classes/Reap/WebPublishTask.src/M000010.html +16 -0
- data/pub/www/rdoc/classes/Reap/WebPublishTask.src/M000011.html +18 -0
- data/pub/www/rdoc/classes/Reap/WebPublishTask.src/M000012.html +21 -0
- data/pub/www/rdoc/classes/Reap/WebPublishTask.src/M000013.html +32 -0
- data/pub/www/rdoc/classes/ReapTask.html +287 -0
- data/pub/www/rdoc/classes/ReapTask.src/M000060.html +18 -0
- data/pub/www/rdoc/classes/ReapTask.src/M000061.html +18 -0
- data/pub/www/rdoc/classes/ReapTask.src/M000062.html +18 -0
- data/pub/www/rdoc/classes/ReapTask.src/M000063.html +18 -0
- data/pub/www/rdoc/classes/ReapTask.src/M000064.html +18 -0
- data/pub/www/rdoc/classes/ReapTask.src/M000065.html +18 -0
- data/pub/www/rdoc/classes/ReapTask.src/M000066.html +18 -0
- data/pub/www/rdoc/classes/ReapTask.src/M000067.html +18 -0
- data/pub/www/rdoc/classes/ReapTask.src/M000068.html +18 -0
- data/pub/www/rdoc/created.rid +1 -1
- data/pub/www/rdoc/files/{lib/reap2/publish-task_rb.html → LICENSE.html} +19 -7
- data/pub/www/rdoc/files/README.html +271 -0
- data/pub/www/rdoc/files/lib/{reap2/announce-task_rb.html → reap/announce_task_rb.html} +5 -4
- data/pub/www/rdoc/files/lib/{reap2/template-task_rb.html → reap/filemod_task_rb.html} +5 -5
- data/pub/www/rdoc/files/lib/{reap2/rdoc-task_rb.html → reap/info_task_rb.html} +5 -5
- data/pub/www/rdoc/files/lib/{reap2/chmod-task_rb.html → reap/noop_task_rb.html} +5 -5
- data/pub/www/rdoc/files/lib/{reap2/package-task_rb.html → reap/package_task_rb.html} +5 -4
- data/pub/www/rdoc/files/lib/reap/projectinfo_rb.html +111 -0
- data/pub/www/rdoc/files/lib/reap/publish_task_rb.html +108 -0
- data/pub/www/rdoc/files/lib/reap/rdoc_task_rb.html +108 -0
- data/pub/www/rdoc/files/lib/reap/ready_made_rb.html +115 -0
- data/pub/www/rdoc/files/lib/{reap2 → reap}/task_rb.html +5 -6
- data/pub/www/rdoc/files/lib/reap/tasks_rb.html +115 -0
- data/pub/www/rdoc/files/lib/{reap2/test-task_rb.html → reap/test_task_rb.html} +5 -10
- data/pub/www/rdoc/files/lib/reap/web_publish_task_rb.html +108 -0
- data/pub/www/rdoc/fr_class_index.html +7 -2
- data/pub/www/rdoc/fr_file_index.html +15 -9
- data/pub/www/rdoc/fr_method_index.html +68 -32
- data/pub/www/rdoc/index.html +1 -1
- data/test/tc_reap.rb +1 -1
- metadata +126 -58
- data/Reapfile +0 -99
- data/lib/reap/reap-all.rb +0 -15
- data/lib/reap/template-task.rb +0 -40
- data/pub/www/rdoc/classes/Reap/ChmodTask.src/M000015.html +0 -21
- data/pub/www/rdoc/classes/Reap/ChmodTask.src/M000016.html +0 -21
- data/pub/www/rdoc/classes/Reap/PackageTask.src/M000001.html +0 -49
- data/pub/www/rdoc/classes/Reap/PublishTask.src/M000019.html +0 -24
- data/pub/www/rdoc/classes/Reap/RDocTask.src/M000005.html +0 -21
- data/pub/www/rdoc/classes/Reap/RDocTask.src/M000006.html +0 -53
- data/pub/www/rdoc/classes/Reap/Task.src/M000024.html +0 -21
- data/pub/www/rdoc/classes/Reap/Task.src/M000027.html +0 -28
- data/pub/www/rdoc/classes/Reap/Task.src/M000029.html +0 -18
- data/pub/www/rdoc/classes/Reap/TemplateTask.src/M000022.html +0 -21
- data/pub/www/rdoc/classes/Reap/TemplateTask.src/M000023.html +0 -34
- data/pub/www/rdoc/classes/Reap/TestTask.src/M000007.html +0 -25
- data/pub/www/rdoc/classes/Reap/TestTask.src/M000008.html +0 -21
- data/pub/www/rdoc/files/lib/reap2/reap-all_rb.html +0 -110
@@ -55,8 +55,8 @@
|
|
55
55
|
<tr class="top-aligned-row">
|
56
56
|
<td><strong>In:</strong></td>
|
57
57
|
<td>
|
58
|
-
<a href="../../files/lib/
|
59
|
-
lib/
|
58
|
+
<a href="../../files/lib/reap/task_rb.html">
|
59
|
+
lib/reap/task.rb
|
60
60
|
</a>
|
61
61
|
<br />
|
62
62
|
</td>
|
@@ -65,7 +65,7 @@
|
|
65
65
|
<tr class="top-aligned-row">
|
66
66
|
<td><strong>Parent:</strong></td>
|
67
67
|
<td>
|
68
|
-
Rake::TaskLib
|
68
|
+
::Rake::TaskLib
|
69
69
|
</td>
|
70
70
|
</tr>
|
71
71
|
</table>
|
@@ -80,56 +80,8 @@
|
|
80
80
|
|
81
81
|
<div id="description">
|
82
82
|
<p>
|
83
|
-
|
83
|
+
def self.registry ; @registry ; end
|
84
84
|
</p>
|
85
|
-
<p>
|
86
|
-
When creating a specifc task, subclass this one and create two class-level
|
87
|
-
methods task and desc. task will return the name of the task and desc a
|
88
|
-
description of the task. Then create an instance method called setup to do
|
89
|
-
any initial preping. Usually that means assigning some instance vars from
|
90
|
-
the Reapfile configutration. You can use section[<name>] for settings
|
91
|
-
from the task’s particular section (as determined by self.task method
|
92
|
-
above) and/or use master[<name>] for top-level settings. Finally
|
93
|
-
write a run method that preforms the actual task.
|
94
|
-
</p>
|
95
|
-
<p>
|
96
|
-
Here’s an oh so simple example:
|
97
|
-
</p>
|
98
|
-
<pre>
|
99
|
-
class MyTask < Task
|
100
|
-
def self.task ; 'mytask' ; end
|
101
|
-
def self.desc ; 'This is my first custom task.' ; end
|
102
|
-
|
103
|
-
def setup
|
104
|
-
@message = section['message'] || master['default'] || 'None Found!'
|
105
|
-
end
|
106
|
-
|
107
|
-
def run
|
108
|
-
puts @message
|
109
|
-
end
|
110
|
-
end
|
111
|
-
</pre>
|
112
|
-
<p>
|
113
|
-
This corresponding settings in the Reapfile will then be:
|
114
|
-
</p>
|
115
|
-
<pre>
|
116
|
-
default: Default text, if any.
|
117
|
-
|
118
|
-
mytask:
|
119
|
-
message: Message text, if any.
|
120
|
-
</pre>
|
121
|
-
<p>
|
122
|
-
<a href="../Reap.html">Reap</a> automatically handles multiple task runs if
|
123
|
-
an array is provided under the task section instead of a single mapping.
|
124
|
-
For example:
|
125
|
-
</p>
|
126
|
-
<pre>
|
127
|
-
mytask:
|
128
|
-
-
|
129
|
-
message: First Run.
|
130
|
-
-
|
131
|
-
message: Second Run.
|
132
|
-
</pre>
|
133
85
|
|
134
86
|
</div>
|
135
87
|
|
@@ -140,13 +92,12 @@ For example:
|
|
140
92
|
<h3 class="section-bar">Methods</h3>
|
141
93
|
|
142
94
|
<div class="name-list">
|
143
|
-
<a href="#
|
144
|
-
<a href="#
|
145
|
-
<a href="#
|
146
|
-
<a href="#
|
147
|
-
<a href="#
|
148
|
-
<a href="#
|
149
|
-
<a href="#M000030">section_name</a>
|
95
|
+
<a href="#M000036">default_desc</a>
|
96
|
+
<a href="#M000037">init</a>
|
97
|
+
<a href="#M000034">master</a>
|
98
|
+
<a href="#M000035">new</a>
|
99
|
+
<a href="#M000033">register</a>
|
100
|
+
<a href="#M000038">section</a>
|
150
101
|
</div>
|
151
102
|
</div>
|
152
103
|
|
@@ -168,35 +119,12 @@ For example:
|
|
168
119
|
<td>=</td>
|
169
120
|
<td class="context-item-value">Config::CONFIG['ruby_install_name']</td>
|
170
121
|
</tr>
|
171
|
-
<tr class="top-aligned-row context-row">
|
172
|
-
<td class="context-item-name">DEFAULT_INCLUDE</td>
|
173
|
-
<td>=</td>
|
174
|
-
<td class="context-item-value">[ '[A-Z]*', 'setup.rb', 'lib/**/*', 'bin/**/*', 'data/**/*', 'doc/**/*', 'rdoc/**/*', 'test/**/*', 'bench/**/*', 'demo/**/*', 'samples/**/*', 'examples/**/*' ]</td>
|
175
|
-
</tr>
|
176
|
-
<tr class="top-aligned-row context-row">
|
177
|
-
<td class="context-item-name">MUST_EXCLUDE</td>
|
178
|
-
<td>=</td>
|
179
|
-
<td class="context-item-value">[ 'InstalledFiles', '**/CVS/**/*', '**/*~' ]</td>
|
180
|
-
</tr>
|
181
122
|
</table>
|
182
123
|
</div>
|
183
124
|
</div>
|
184
125
|
|
185
126
|
|
186
127
|
|
187
|
-
<div id="attribute-list">
|
188
|
-
<h3 class="section-bar">Attributes</h3>
|
189
|
-
|
190
|
-
<div class="name-list">
|
191
|
-
<table>
|
192
|
-
<tr class="top-aligned-row context-row">
|
193
|
-
<td class="context-item-name">config</td>
|
194
|
-
<td class="context-item-value"> [R] </td>
|
195
|
-
<td class="context-item-desc"></td>
|
196
|
-
</tr>
|
197
|
-
</table>
|
198
|
-
</div>
|
199
|
-
</div>
|
200
128
|
|
201
129
|
|
202
130
|
|
@@ -204,27 +132,30 @@ For example:
|
|
204
132
|
<div id="methods">
|
205
133
|
<h3 class="section-bar">Public Class methods</h3>
|
206
134
|
|
207
|
-
<div id="method-
|
208
|
-
<a name="
|
135
|
+
<div id="method-M000035" class="method-detail">
|
136
|
+
<a name="M000035"></a>
|
209
137
|
|
210
138
|
<div class="method-heading">
|
211
|
-
<a href="Task.src/
|
212
|
-
onclick="popupCode('Task.src/
|
213
|
-
<span class="method-name">new</span><span class="method-args">( {|| ...}</span>
|
139
|
+
<a href="Task.src/M000035.html" target="Code" class="method-signature"
|
140
|
+
onclick="popupCode('Task.src/M000035.html');return false;">
|
141
|
+
<span class="method-name">new</span><span class="method-args">( task_name=nil, subtask=nil ) {|| ...}</span>
|
214
142
|
</a>
|
215
143
|
</div>
|
216
144
|
|
217
145
|
<div class="method-description">
|
146
|
+
<p>
|
147
|
+
attr_reader :name, :description, :subtask
|
148
|
+
</p>
|
218
149
|
</div>
|
219
150
|
</div>
|
220
151
|
|
221
|
-
<div id="method-
|
222
|
-
<a name="
|
152
|
+
<div id="method-M000033" class="method-detail">
|
153
|
+
<a name="M000033"></a>
|
223
154
|
|
224
155
|
<div class="method-heading">
|
225
|
-
<a href="Task.src/
|
226
|
-
onclick="popupCode('Task.src/
|
227
|
-
<span class="method-name">
|
156
|
+
<a href="Task.src/M000033.html" target="Code" class="method-signature"
|
157
|
+
onclick="popupCode('Task.src/M000033.html');return false;">
|
158
|
+
<span class="method-name">register</span><span class="method-args">( name )</span>
|
228
159
|
</a>
|
229
160
|
</div>
|
230
161
|
|
@@ -234,13 +165,13 @@ For example:
|
|
234
165
|
|
235
166
|
<h3 class="section-bar">Public Instance methods</h3>
|
236
167
|
|
237
|
-
<div id="method-
|
238
|
-
<a name="
|
168
|
+
<div id="method-M000036" class="method-detail">
|
169
|
+
<a name="M000036"></a>
|
239
170
|
|
240
171
|
<div class="method-heading">
|
241
|
-
<a href="Task.src/
|
242
|
-
onclick="popupCode('Task.src/
|
243
|
-
<span class="method-name">
|
172
|
+
<a href="Task.src/M000036.html" target="Code" class="method-signature"
|
173
|
+
onclick="popupCode('Task.src/M000036.html');return false;">
|
174
|
+
<span class="method-name">default_desc</span><span class="method-args">()</span>
|
244
175
|
</a>
|
245
176
|
</div>
|
246
177
|
|
@@ -248,40 +179,29 @@ For example:
|
|
248
179
|
</div>
|
249
180
|
</div>
|
250
181
|
|
251
|
-
<div id="method-
|
252
|
-
<a name="
|
182
|
+
<div id="method-M000037" class="method-detail">
|
183
|
+
<a name="M000037"></a>
|
253
184
|
|
254
185
|
<div class="method-heading">
|
255
|
-
<a href="Task.src/
|
256
|
-
onclick="popupCode('Task.src/
|
186
|
+
<a href="Task.src/M000037.html" target="Code" class="method-signature"
|
187
|
+
onclick="popupCode('Task.src/M000037.html');return false;">
|
257
188
|
<span class="method-name">init</span><span class="method-args">()</span>
|
258
189
|
</a>
|
259
190
|
</div>
|
260
191
|
|
261
192
|
<div class="method-description">
|
193
|
+
<p>
|
194
|
+
def default_name ; self.class.basename.downcase ; end
|
195
|
+
</p>
|
262
196
|
</div>
|
263
197
|
</div>
|
264
198
|
|
265
|
-
<div id="method-
|
266
|
-
<a name="
|
267
|
-
|
268
|
-
<div class="method-heading">
|
269
|
-
<a href="Task.src/M000027.html" target="Code" class="method-signature"
|
270
|
-
onclick="popupCode('Task.src/M000027.html');return false;">
|
271
|
-
<span class="method-name">load_config</span><span class="method-args">( config_file=nil )</span>
|
272
|
-
</a>
|
273
|
-
</div>
|
274
|
-
|
275
|
-
<div class="method-description">
|
276
|
-
</div>
|
277
|
-
</div>
|
278
|
-
|
279
|
-
<div id="method-M000028" class="method-detail">
|
280
|
-
<a name="M000028"></a>
|
199
|
+
<div id="method-M000034" class="method-detail">
|
200
|
+
<a name="M000034"></a>
|
281
201
|
|
282
202
|
<div class="method-heading">
|
283
|
-
<a href="Task.src/
|
284
|
-
onclick="popupCode('Task.src/
|
203
|
+
<a href="Task.src/M000034.html" target="Code" class="method-signature"
|
204
|
+
onclick="popupCode('Task.src/M000034.html');return false;">
|
285
205
|
<span class="method-name">master</span><span class="method-args">()</span>
|
286
206
|
</a>
|
287
207
|
</div>
|
@@ -290,13 +210,13 @@ For example:
|
|
290
210
|
</div>
|
291
211
|
</div>
|
292
212
|
|
293
|
-
<div id="method-
|
294
|
-
<a name="
|
213
|
+
<div id="method-M000038" class="method-detail">
|
214
|
+
<a name="M000038"></a>
|
295
215
|
|
296
216
|
<div class="method-heading">
|
297
|
-
<a href="Task.src/
|
298
|
-
onclick="popupCode('Task.src/
|
299
|
-
<span class="method-name">section</span><span class="method-args">()</span>
|
217
|
+
<a href="Task.src/M000038.html" target="Code" class="method-signature"
|
218
|
+
onclick="popupCode('Task.src/M000038.html');return false;">
|
219
|
+
<span class="method-name">section</span><span class="method-args">( ymlstr )</span>
|
300
220
|
</a>
|
301
221
|
</div>
|
302
222
|
|
@@ -0,0 +1,21 @@
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
+
<!DOCTYPE html
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
+
|
6
|
+
<html>
|
7
|
+
<head>
|
8
|
+
<title>register (Reap::Task)</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
+
</head>
|
12
|
+
<body class="standalone-code">
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/reap/task.rb, line 59</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">register</span>( <span class="ruby-identifier">name</span> )
|
15
|
+
<span class="ruby-identifier">klass</span> = <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">class</span>
|
16
|
+
<span class="ruby-constant">ReapTask</span>.<span class="ruby-identifier">class_eval</span> {
|
17
|
+
<span class="ruby-identifier">define_method</span>( <span class="ruby-node">"#{name}_task"</span> ) { <span class="ruby-operator">|</span><span class="ruby-operator">*</span><span class="ruby-identifier">args</span><span class="ruby-operator">|</span> <span class="ruby-identifier">klass</span>.<span class="ruby-identifier">new</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>) }
|
18
|
+
}
|
19
|
+
<span class="ruby-keyword kw">end</span></pre>
|
20
|
+
</body>
|
21
|
+
</html>
|
@@ -5,15 +5,14 @@
|
|
5
5
|
|
6
6
|
<html>
|
7
7
|
<head>
|
8
|
-
<title>
|
8
|
+
<title>master (Reap::Task)</title>
|
9
9
|
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
10
|
<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
|
11
11
|
</head>
|
12
12
|
<body class="standalone-code">
|
13
|
-
<pre><span class="ruby-comment cmt"># File lib/
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">
|
15
|
-
<span class="ruby-
|
16
|
-
<span class="ruby-ivar">@sname</span>
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/reap/task.rb, line 66</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">master</span>
|
15
|
+
<span class="ruby-operator">::</span><span class="ruby-constant">ProjectInfo</span>.<span class="ruby-identifier">info</span>
|
17
16
|
<span class="ruby-keyword kw">end</span></pre>
|
18
17
|
</body>
|
19
18
|
</html>
|
@@ -0,0 +1,41 @@
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
+
<!DOCTYPE html
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
+
|
6
|
+
<html>
|
7
|
+
<head>
|
8
|
+
<title>new (Reap::Task)</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
+
</head>
|
12
|
+
<body class="standalone-code">
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/reap/task.rb, line 72</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>( <span class="ruby-identifier">task_name</span>=<span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">subtask</span>=<span class="ruby-keyword kw">nil</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">yld</span> ) <span class="ruby-comment cmt">#:yield:</span>
|
15
|
+
<span class="ruby-identifier">o</span> = <span class="ruby-keyword kw">nil</span>
|
16
|
+
<span class="ruby-identifier">o</span> = <span class="ruby-identifier">yld</span>.<span class="ruby-identifier">call</span>(<span class="ruby-keyword kw">self</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">yld</span>
|
17
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-constant">String</span> <span class="ruby-operator">===</span> <span class="ruby-identifier">o</span>
|
18
|
+
<span class="ruby-keyword kw">begin</span>
|
19
|
+
<span class="ruby-identifier">section</span>( <span class="ruby-identifier">o</span> ).<span class="ruby-identifier">each</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">k</span>,<span class="ruby-identifier">v</span><span class="ruby-operator">|</span> <span class="ruby-identifier">send</span>(<span class="ruby-node">"#{k}="</span>, <span class="ruby-identifier">v</span> ) }
|
20
|
+
<span class="ruby-keyword kw">end</span>
|
21
|
+
<span class="ruby-keyword kw">end</span>
|
22
|
+
|
23
|
+
<span class="ruby-identifier">init</span>
|
24
|
+
|
25
|
+
<span class="ruby-identifier">task_name</span> <span class="ruby-operator">||=</span> <span class="ruby-identifier">default_name</span>
|
26
|
+
<span class="ruby-identifier">task_desc</span> = <span class="ruby-ivar">@desc</span> <span class="ruby-operator">||</span> <span class="ruby-identifier">default_desc</span>
|
27
|
+
|
28
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">subtask</span>
|
29
|
+
<span class="ruby-identifier">desc</span> <span class="ruby-identifier">task_desc</span>
|
30
|
+
<span class="ruby-identifier">task</span> <span class="ruby-identifier">task_name</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">subtask</span> <span class="ruby-keyword kw">do</span>
|
31
|
+
<span class="ruby-identifier">run</span>
|
32
|
+
<span class="ruby-keyword kw">end</span>
|
33
|
+
<span class="ruby-keyword kw">else</span>
|
34
|
+
<span class="ruby-identifier">desc</span> <span class="ruby-identifier">task_desc</span>
|
35
|
+
<span class="ruby-identifier">task</span> <span class="ruby-identifier">task_name</span> <span class="ruby-keyword kw">do</span>
|
36
|
+
<span class="ruby-identifier">run</span>
|
37
|
+
<span class="ruby-keyword kw">end</span>
|
38
|
+
<span class="ruby-keyword kw">end</span>
|
39
|
+
<span class="ruby-keyword kw">end</span></pre>
|
40
|
+
</body>
|
41
|
+
</html>
|
@@ -0,0 +1,16 @@
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
+
<!DOCTYPE html
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
+
|
6
|
+
<html>
|
7
|
+
<head>
|
8
|
+
<title>default_desc (Reap::Task)</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
+
</head>
|
12
|
+
<body class="standalone-code">
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/reap/task.rb, line 99</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">default_desc</span> ; <span class="ruby-value str">'(no desciption given)'</span> ; <span class="ruby-keyword kw">end</span></pre>
|
15
|
+
</body>
|
16
|
+
</html>
|
@@ -0,0 +1,18 @@
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
+
<!DOCTYPE html
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
+
|
6
|
+
<html>
|
7
|
+
<head>
|
8
|
+
<title>init (Reap::Task)</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
+
</head>
|
12
|
+
<body class="standalone-code">
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/reap/task.rb, line 102</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">init</span>
|
15
|
+
<span class="ruby-identifier">raise</span> <span class="ruby-value str">"not implemented"</span>
|
16
|
+
<span class="ruby-keyword kw">end</span></pre>
|
17
|
+
</body>
|
18
|
+
</html>
|
@@ -0,0 +1,19 @@
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
+
<!DOCTYPE html
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
+
|
6
|
+
<html>
|
7
|
+
<head>
|
8
|
+
<title>section (Reap::Task)</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
+
</head>
|
12
|
+
<body class="standalone-code">
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/reap/task.rb, line 106</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">section</span>( <span class="ruby-identifier">ymlstr</span> )
|
15
|
+
<span class="ruby-identifier">iy</span> = <span class="ruby-constant">YAML</span><span class="ruby-operator">::</span><span class="ruby-identifier">load</span>(<span class="ruby-constant">ProjectInfo</span>.<span class="ruby-identifier">info_stream</span> <span class="ruby-operator">+</span> <span class="ruby-value str">"\ntask:\n"</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">ymlstr</span>.<span class="ruby-identifier">tabto</span>(<span class="ruby-value">2</span>))
|
16
|
+
<span class="ruby-identifier">iy</span>[<span class="ruby-value str">'task'</span>] <span class="ruby-operator">||</span> {}
|
17
|
+
<span class="ruby-keyword kw">end</span></pre>
|
18
|
+
</body>
|
19
|
+
</html>
|
@@ -55,8 +55,8 @@
|
|
55
55
|
<tr class="top-aligned-row">
|
56
56
|
<td><strong>In:</strong></td>
|
57
57
|
<td>
|
58
|
-
<a href="../../files/lib/
|
59
|
-
lib/
|
58
|
+
<a href="../../files/lib/reap/test_task_rb.html">
|
59
|
+
lib/reap/test_task.rb
|
60
60
|
</a>
|
61
61
|
<br />
|
62
62
|
</td>
|
@@ -80,6 +80,22 @@
|
|
80
80
|
|
81
81
|
<div id="contextContent">
|
82
82
|
|
83
|
+
<div id="description">
|
84
|
+
<p>
|
85
|
+
Test <a href="Task.html">Task</a>
|
86
|
+
</p>
|
87
|
+
<p>
|
88
|
+
The <a href="../Reap.html">Reap</a> test task runs each test in it’s
|
89
|
+
own process, making for purer test facility.
|
90
|
+
</p>
|
91
|
+
<p>
|
92
|
+
NOTE: This works well enough but it is a bit of hack. It actually marshals
|
93
|
+
test results across a stdout->stdin shell pipe. One consequence of this
|
94
|
+
is that you can’t send debug info to stdout (including p and puts)
|
95
|
+
within the tests themselves. This, hopefully can be remedied.
|
96
|
+
</p>
|
97
|
+
|
98
|
+
</div>
|
83
99
|
|
84
100
|
|
85
101
|
</div>
|
@@ -88,11 +104,12 @@
|
|
88
104
|
<h3 class="section-bar">Methods</h3>
|
89
105
|
|
90
106
|
<div class="name-list">
|
91
|
-
<a href="#
|
92
|
-
<a href="#
|
93
|
-
<a href="#
|
94
|
-
<a href="#
|
95
|
-
<a href="#
|
107
|
+
<a href="#M000015">default_desc</a>
|
108
|
+
<a href="#M000014">default_name</a>
|
109
|
+
<a href="#M000018">dotest</a>
|
110
|
+
<a href="#M000019">fork_test</a>
|
111
|
+
<a href="#M000016">init</a>
|
112
|
+
<a href="#M000017">run</a>
|
96
113
|
</div>
|
97
114
|
</div>
|
98
115
|
|
@@ -143,13 +160,13 @@
|
|
143
160
|
<div id="methods">
|
144
161
|
<h3 class="section-bar">Public Instance methods</h3>
|
145
162
|
|
146
|
-
<div id="method-
|
147
|
-
<a name="
|
163
|
+
<div id="method-M000015" class="method-detail">
|
164
|
+
<a name="M000015"></a>
|
148
165
|
|
149
166
|
<div class="method-heading">
|
150
|
-
<a href="TestTask.src/
|
151
|
-
onclick="popupCode('TestTask.src/
|
152
|
-
<span class="method-name">
|
167
|
+
<a href="TestTask.src/M000015.html" target="Code" class="method-signature"
|
168
|
+
onclick="popupCode('TestTask.src/M000015.html');return false;">
|
169
|
+
<span class="method-name">default_desc</span><span class="method-args">()</span>
|
153
170
|
</a>
|
154
171
|
</div>
|
155
172
|
|
@@ -157,27 +174,30 @@
|
|
157
174
|
</div>
|
158
175
|
</div>
|
159
176
|
|
160
|
-
<div id="method-
|
161
|
-
<a name="
|
177
|
+
<div id="method-M000014" class="method-detail">
|
178
|
+
<a name="M000014"></a>
|
162
179
|
|
163
180
|
<div class="method-heading">
|
164
|
-
<a href="TestTask.src/
|
165
|
-
onclick="popupCode('TestTask.src/
|
166
|
-
<span class="method-name">
|
181
|
+
<a href="TestTask.src/M000014.html" target="Code" class="method-signature"
|
182
|
+
onclick="popupCode('TestTask.src/M000014.html');return false;">
|
183
|
+
<span class="method-name">default_name</span><span class="method-args">()</span>
|
167
184
|
</a>
|
168
185
|
</div>
|
169
186
|
|
170
187
|
<div class="method-description">
|
188
|
+
<p>
|
189
|
+
register ‘test’
|
190
|
+
</p>
|
171
191
|
</div>
|
172
192
|
</div>
|
173
193
|
|
174
|
-
<div id="method-
|
175
|
-
<a name="
|
194
|
+
<div id="method-M000018" class="method-detail">
|
195
|
+
<a name="M000018"></a>
|
176
196
|
|
177
197
|
<div class="method-heading">
|
178
|
-
<a href="TestTask.src/
|
179
|
-
onclick="popupCode('TestTask.src/
|
180
|
-
<span class="method-name">
|
198
|
+
<a href="TestTask.src/M000018.html" target="Code" class="method-signature"
|
199
|
+
onclick="popupCode('TestTask.src/M000018.html');return false;">
|
200
|
+
<span class="method-name">dotest</span><span class="method-args">( test_file )</span>
|
181
201
|
</a>
|
182
202
|
</div>
|
183
203
|
|
@@ -185,13 +205,27 @@
|
|
185
205
|
</div>
|
186
206
|
</div>
|
187
207
|
|
188
|
-
<div id="method-
|
189
|
-
<a name="
|
208
|
+
<div id="method-M000019" class="method-detail">
|
209
|
+
<a name="M000019"></a>
|
190
210
|
|
191
211
|
<div class="method-heading">
|
192
|
-
<a href="TestTask.src/
|
193
|
-
onclick="popupCode('TestTask.src/
|
194
|
-
<span class="method-name">
|
212
|
+
<a href="TestTask.src/M000019.html" target="Code" class="method-signature"
|
213
|
+
onclick="popupCode('TestTask.src/M000019.html');return false;">
|
214
|
+
<span class="method-name">fork_test</span><span class="method-args">( testfile )</span>
|
215
|
+
</a>
|
216
|
+
</div>
|
217
|
+
|
218
|
+
<div class="method-description">
|
219
|
+
</div>
|
220
|
+
</div>
|
221
|
+
|
222
|
+
<div id="method-M000016" class="method-detail">
|
223
|
+
<a name="M000016"></a>
|
224
|
+
|
225
|
+
<div class="method-heading">
|
226
|
+
<a href="TestTask.src/M000016.html" target="Code" class="method-signature"
|
227
|
+
onclick="popupCode('TestTask.src/M000016.html');return false;">
|
228
|
+
<span class="method-name">init</span><span class="method-args">()</span>
|
195
229
|
</a>
|
196
230
|
</div>
|
197
231
|
|
@@ -199,13 +233,13 @@
|
|
199
233
|
</div>
|
200
234
|
</div>
|
201
235
|
|
202
|
-
<div id="method-
|
203
|
-
<a name="
|
236
|
+
<div id="method-M000017" class="method-detail">
|
237
|
+
<a name="M000017"></a>
|
204
238
|
|
205
239
|
<div class="method-heading">
|
206
|
-
<a href="TestTask.src/
|
207
|
-
onclick="popupCode('TestTask.src/
|
208
|
-
<span class="method-name">
|
240
|
+
<a href="TestTask.src/M000017.html" target="Code" class="method-signature"
|
241
|
+
onclick="popupCode('TestTask.src/M000017.html');return false;">
|
242
|
+
<span class="method-name">run</span><span class="method-args">()</span>
|
209
243
|
</a>
|
210
244
|
</div>
|
211
245
|
|