henry-container 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +2 -0
- data/.rvmrc +1 -0
- data/.yardoc/checksums +6 -0
- data/.yardoc/object_types +0 -0
- data/.yardoc/objects/root.dat +0 -0
- data/.yardoc/proxy_types +0 -0
- data/Gemfile +4 -0
- data/Rakefile +2 -0
- data/bin/henry-ruby-container +23 -0
- data/doc/Henry.html +128 -0
- data/doc/Henry/Container.html +325 -0
- data/doc/Henry/Task.html +551 -0
- data/doc/Henry/Task/CucumberTask.html +299 -0
- data/doc/Henry/Task/RspecTask.html +299 -0
- data/doc/_index.html +153 -0
- data/doc/class_list.html +53 -0
- data/doc/css/common.css +1 -0
- data/doc/css/full_list.css +57 -0
- data/doc/css/style.css +328 -0
- data/doc/file_list.html +52 -0
- data/doc/frames.html +28 -0
- data/doc/index.html +153 -0
- data/doc/js/app.js +214 -0
- data/doc/js/full_list.js +173 -0
- data/doc/js/jquery.js +4 -0
- data/doc/method_list.html +124 -0
- data/doc/top-level-namespace.html +112 -0
- data/{henry-container-0.0.1.gem → gems/henry-container-0.0.1.gem} +0 -0
- data/{henry-container-0.0.2.gem → gems/henry-container-0.0.2.gem} +0 -0
- data/{henry-container-0.0.3.gem → gems/henry-container-0.0.3.gem} +0 -0
- data/{henry-container-0.0.4.gem → gems/henry-container-0.0.4.gem} +0 -0
- data/{henry-container-0.0.5.gem → gems/henry-container-0.0.5.gem} +0 -0
- data/{henry-container-0.0.6.gem → gems/henry-container-0.0.6.gem} +0 -0
- data/gems/henry-container-0.0.7.gem +0 -0
- data/gems/henry-container-0.0.8.gem +0 -0
- data/henry-container.gemspec +24 -0
- data/henry-context.yml.sample +4 -0
- data/in.henry.sample +14 -0
- data/lib/.yardoc/checksums +0 -0
- data/lib/.yardoc/object_types +0 -0
- data/lib/.yardoc/objects/root.dat +0 -0
- data/lib/.yardoc/proxy_types +0 -0
- data/lib/henry.rb +8 -0
- data/lib/henry/.yardoc/checksums +0 -0
- data/lib/henry/.yardoc/object_types +0 -0
- data/lib/henry/.yardoc/objects/root.dat +0 -0
- data/lib/henry/.yardoc/proxy_types +0 -0
- data/lib/henry/container.rb +151 -0
- data/lib/henry/container/version.rb +11 -0
- data/lib/henry/task.rb +32 -0
- data/lib/henry/task/cucumber_task.rb +50 -0
- data/lib/henry/task/rspec_task.rb +50 -0
- metadata +55 -8
@@ -0,0 +1,299 @@
|
|
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: Henry::Task::CucumberTask
|
8
|
+
|
9
|
+
— Documentation by YARD 0.8.2.1
|
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
|
+
hasFrames = window.top.frames.main ? true : false;
|
19
|
+
relpath = '../../';
|
20
|
+
framesUrl = "../../frames.html#!" + escape(window.location.href);
|
21
|
+
</script>
|
22
|
+
|
23
|
+
|
24
|
+
<script type="text/javascript" charset="utf-8" src="../../js/jquery.js"></script>
|
25
|
+
|
26
|
+
<script type="text/javascript" charset="utf-8" src="../../js/app.js"></script>
|
27
|
+
|
28
|
+
|
29
|
+
</head>
|
30
|
+
<body>
|
31
|
+
<div id="header">
|
32
|
+
<div id="menu">
|
33
|
+
|
34
|
+
<a href="../../_index.html">Index (C)</a> »
|
35
|
+
<span class='title'><span class='object_link'><a href="../../Henry.html" title="Henry (module)">Henry</a></span></span> » <span class='title'><span class='object_link'><a href="../Task.html" title="Henry::Task (class)">Task</a></span></span>
|
36
|
+
»
|
37
|
+
<span class="title">CucumberTask</span>
|
38
|
+
|
39
|
+
|
40
|
+
<div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
|
41
|
+
</div>
|
42
|
+
|
43
|
+
<div id="search">
|
44
|
+
|
45
|
+
<a class="full_list_link" id="class_list_link"
|
46
|
+
href="../../class_list.html">
|
47
|
+
Class List
|
48
|
+
</a>
|
49
|
+
|
50
|
+
<a class="full_list_link" id="method_list_link"
|
51
|
+
href="../../method_list.html">
|
52
|
+
Method List
|
53
|
+
</a>
|
54
|
+
|
55
|
+
<a class="full_list_link" id="file_list_link"
|
56
|
+
href="../../file_list.html">
|
57
|
+
File List
|
58
|
+
</a>
|
59
|
+
|
60
|
+
</div>
|
61
|
+
<div class="clear"></div>
|
62
|
+
</div>
|
63
|
+
|
64
|
+
<iframe id="search_frame"></iframe>
|
65
|
+
|
66
|
+
<div id="content"><h1>Class: Henry::Task::CucumberTask
|
67
|
+
|
68
|
+
|
69
|
+
|
70
|
+
</h1>
|
71
|
+
|
72
|
+
<dl class="box">
|
73
|
+
|
74
|
+
<dt class="r1">Inherits:</dt>
|
75
|
+
<dd class="r1">
|
76
|
+
<span class="inheritName"><span class='object_link'><a href="../Task.html" title="Henry::Task (class)">Henry::Task</a></span></span>
|
77
|
+
|
78
|
+
<ul class="fullTree">
|
79
|
+
<li>Object</li>
|
80
|
+
|
81
|
+
<li class="next"><span class='object_link'><a href="../Task.html" title="Henry::Task (class)">Henry::Task</a></span></li>
|
82
|
+
|
83
|
+
<li class="next">Henry::Task::CucumberTask</li>
|
84
|
+
|
85
|
+
</ul>
|
86
|
+
<a href="#" class="inheritanceTree">show all</a>
|
87
|
+
|
88
|
+
</dd>
|
89
|
+
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
|
94
|
+
|
95
|
+
|
96
|
+
|
97
|
+
|
98
|
+
<dt class="r2 last">Defined in:</dt>
|
99
|
+
<dd class="r2 last">lib/henry/task/cucumber_task.rb</dd>
|
100
|
+
|
101
|
+
</dl>
|
102
|
+
<div class="clear"></div>
|
103
|
+
|
104
|
+
<h2>Overview</h2><div class="docstring">
|
105
|
+
<div class="discussion">
|
106
|
+
|
107
|
+
<p>The Henry Task implementation for Cucumber</p>
|
108
|
+
|
109
|
+
|
110
|
+
</div>
|
111
|
+
</div>
|
112
|
+
<div class="tags">
|
113
|
+
|
114
|
+
|
115
|
+
</div>
|
116
|
+
|
117
|
+
|
118
|
+
|
119
|
+
|
120
|
+
|
121
|
+
<h2>Instance Attribute Summary</h2>
|
122
|
+
|
123
|
+
<h3 class="inherited">Attributes inherited from <span class='object_link'><a href="../Task.html" title="Henry::Task (class)">Henry::Task</a></span></h3>
|
124
|
+
<p class="inherited"><span class='object_link'><a href="../Task.html#data-instance_method" title="Henry::Task#data (method)">#data</a></span>, <span class='object_link'><a href="../Task.html#name-instance_method" title="Henry::Task#name (method)">#name</a></span></p>
|
125
|
+
|
126
|
+
|
127
|
+
|
128
|
+
<h2>
|
129
|
+
Instance Method Summary
|
130
|
+
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
131
|
+
</h2>
|
132
|
+
|
133
|
+
<ul class="summary">
|
134
|
+
|
135
|
+
<li class="public ">
|
136
|
+
<span class="summary_signature">
|
137
|
+
|
138
|
+
<a href="#execute-instance_method" title="#execute (instance method)">- (Hash) <strong>execute</strong>(params) </a>
|
139
|
+
|
140
|
+
|
141
|
+
|
142
|
+
</span>
|
143
|
+
|
144
|
+
|
145
|
+
|
146
|
+
|
147
|
+
|
148
|
+
|
149
|
+
|
150
|
+
|
151
|
+
|
152
|
+
<span class="summary_desc"><div class='inline'>
|
153
|
+
<p>Executes the CucumberTask and returns its results.</p>
|
154
|
+
</div></span>
|
155
|
+
|
156
|
+
</li>
|
157
|
+
|
158
|
+
|
159
|
+
</ul>
|
160
|
+
|
161
|
+
|
162
|
+
|
163
|
+
|
164
|
+
|
165
|
+
|
166
|
+
|
167
|
+
|
168
|
+
|
169
|
+
|
170
|
+
|
171
|
+
<h3 class="inherited">Methods inherited from <span class='object_link'><a href="../Task.html" title="Henry::Task (class)">Henry::Task</a></span></h3>
|
172
|
+
<p class="inherited"><span class='object_link'><a href="../Task.html#create-class_method" title="Henry::Task.create (method)">create</a></span>, <span class='object_link'><a href="../Task.html#initialize-instance_method" title="Henry::Task#initialize (method)">#initialize</a></span></p>
|
173
|
+
<div id="constructor_details" class="method_details_list">
|
174
|
+
<h2>Constructor Details</h2>
|
175
|
+
|
176
|
+
<p class="notice">This class inherits a constructor from <span class='object_link'><a href="../Task.html#initialize-instance_method" title="Henry::Task#initialize (method)">Henry::Task</a></span></p>
|
177
|
+
|
178
|
+
</div>
|
179
|
+
|
180
|
+
|
181
|
+
<div id="instance_method_details" class="method_details_list">
|
182
|
+
<h2>Instance Method Details</h2>
|
183
|
+
|
184
|
+
|
185
|
+
<div class="method_details first">
|
186
|
+
<h3 class="signature first" id="execute-instance_method">
|
187
|
+
|
188
|
+
- (<tt>Hash</tt>) <strong>execute</strong>(params)
|
189
|
+
|
190
|
+
|
191
|
+
|
192
|
+
|
193
|
+
|
194
|
+
</h3><div class="docstring">
|
195
|
+
<div class="discussion">
|
196
|
+
|
197
|
+
<p>Executes the CucumberTask and returns its results.</p>
|
198
|
+
|
199
|
+
|
200
|
+
</div>
|
201
|
+
</div>
|
202
|
+
<div class="tags">
|
203
|
+
|
204
|
+
<p class="tag_title">Returns:</p>
|
205
|
+
<ul class="return">
|
206
|
+
|
207
|
+
<li>
|
208
|
+
|
209
|
+
|
210
|
+
<span class='type'>(<tt>Hash</tt>)</span>
|
211
|
+
|
212
|
+
|
213
|
+
|
214
|
+
—
|
215
|
+
<div class='inline'>
|
216
|
+
<p>the CucumberTask results.</p>
|
217
|
+
</div>
|
218
|
+
|
219
|
+
</li>
|
220
|
+
|
221
|
+
</ul>
|
222
|
+
|
223
|
+
</div><table class="source_code">
|
224
|
+
<tr>
|
225
|
+
<td>
|
226
|
+
<pre class="lines">
|
227
|
+
|
228
|
+
|
229
|
+
19
|
230
|
+
20
|
231
|
+
21
|
232
|
+
22
|
233
|
+
23
|
234
|
+
24
|
235
|
+
25
|
236
|
+
26
|
237
|
+
27
|
238
|
+
28
|
239
|
+
29
|
240
|
+
30
|
241
|
+
31
|
242
|
+
32
|
243
|
+
33
|
244
|
+
34
|
245
|
+
35
|
246
|
+
36
|
247
|
+
37
|
248
|
+
38
|
249
|
+
39
|
250
|
+
40
|
251
|
+
41
|
252
|
+
42
|
253
|
+
43</pre>
|
254
|
+
</td>
|
255
|
+
<td>
|
256
|
+
<pre class="code"><span class="info file"># File 'lib/henry/task/cucumber_task.rb', line 19</span>
|
257
|
+
|
258
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_execute'>execute</span><span class='lparen'>(</span><span class='id identifier rubyid_params'>params</span><span class='rparen'>)</span>
|
259
|
+
<span class='kw'>begin</span>
|
260
|
+
<span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_open'>open</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>cucumber.out</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>w</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_f'>f</span><span class='op'>|</span> <span class='rbrace'>}</span>
|
261
|
+
|
262
|
+
<span class='comment'>#tail_pid = Process.spawn('tail -f cucumber.out')
|
263
|
+
</span>
|
264
|
+
<span class='const'>Rake</span><span class='period'>.</span><span class='id identifier rubyid_application'>application</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>cucumber</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_invoke'>invoke</span>
|
265
|
+
|
266
|
+
<span class='comment'>#Process.kill(:SIGINT, tail_pid)
|
267
|
+
</span>
|
268
|
+
<span class='lbrace'>{</span>
|
269
|
+
<span class='label'>code:</span><span class='int'>0</span><span class='comma'>,</span>
|
270
|
+
<span class='label'>message:</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>OK</span><span class='tstring_end'>"</span></span><span class='comma'>,</span>
|
271
|
+
<span class='label'>data:</span><span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_open'>open</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>cucumber.out</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>r</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_read'>read</span><span class='comma'>,</span>
|
272
|
+
<span class='label'>stacktrace:</span><span class='kw'>nil</span>
|
273
|
+
<span class='rbrace'>}</span>
|
274
|
+
<span class='kw'>rescue</span> <span class='const'>Exception</span> <span class='op'>=></span> <span class='id identifier rubyid_e'>e</span>
|
275
|
+
<span class='lbrace'>{</span>
|
276
|
+
<span class='label'>code:</span><span class='int'>2</span><span class='comma'>,</span>
|
277
|
+
<span class='label'>message:</span><span class='id identifier rubyid_e'>e</span><span class='period'>.</span><span class='id identifier rubyid_message'>message</span><span class='comma'>,</span>
|
278
|
+
<span class='label'>data:</span><span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_open'>open</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>cucumber.out</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>r</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_read'>read</span><span class='comma'>,</span>
|
279
|
+
<span class='label'>stacktrace:</span><span class='id identifier rubyid_e'>e</span><span class='period'>.</span><span class='id identifier rubyid_backtrace'>backtrace</span>
|
280
|
+
<span class='rbrace'>}</span>
|
281
|
+
<span class='kw'>end</span>
|
282
|
+
<span class='kw'>end</span></pre>
|
283
|
+
</td>
|
284
|
+
</tr>
|
285
|
+
</table>
|
286
|
+
</div>
|
287
|
+
|
288
|
+
</div>
|
289
|
+
|
290
|
+
</div>
|
291
|
+
|
292
|
+
<div id="footer">
|
293
|
+
Generated on Thu Jul 12 11:57:32 2012 by
|
294
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
295
|
+
0.8.2.1 (ruby-1.9.3).
|
296
|
+
</div>
|
297
|
+
|
298
|
+
</body>
|
299
|
+
</html>
|
@@ -0,0 +1,299 @@
|
|
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: Henry::Task::RspecTask
|
8
|
+
|
9
|
+
— Documentation by YARD 0.8.2.1
|
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
|
+
hasFrames = window.top.frames.main ? true : false;
|
19
|
+
relpath = '../../';
|
20
|
+
framesUrl = "../../frames.html#!" + escape(window.location.href);
|
21
|
+
</script>
|
22
|
+
|
23
|
+
|
24
|
+
<script type="text/javascript" charset="utf-8" src="../../js/jquery.js"></script>
|
25
|
+
|
26
|
+
<script type="text/javascript" charset="utf-8" src="../../js/app.js"></script>
|
27
|
+
|
28
|
+
|
29
|
+
</head>
|
30
|
+
<body>
|
31
|
+
<div id="header">
|
32
|
+
<div id="menu">
|
33
|
+
|
34
|
+
<a href="../../_index.html">Index (R)</a> »
|
35
|
+
<span class='title'><span class='object_link'><a href="../../Henry.html" title="Henry (module)">Henry</a></span></span> » <span class='title'><span class='object_link'><a href="../Task.html" title="Henry::Task (class)">Task</a></span></span>
|
36
|
+
»
|
37
|
+
<span class="title">RspecTask</span>
|
38
|
+
|
39
|
+
|
40
|
+
<div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
|
41
|
+
</div>
|
42
|
+
|
43
|
+
<div id="search">
|
44
|
+
|
45
|
+
<a class="full_list_link" id="class_list_link"
|
46
|
+
href="../../class_list.html">
|
47
|
+
Class List
|
48
|
+
</a>
|
49
|
+
|
50
|
+
<a class="full_list_link" id="method_list_link"
|
51
|
+
href="../../method_list.html">
|
52
|
+
Method List
|
53
|
+
</a>
|
54
|
+
|
55
|
+
<a class="full_list_link" id="file_list_link"
|
56
|
+
href="../../file_list.html">
|
57
|
+
File List
|
58
|
+
</a>
|
59
|
+
|
60
|
+
</div>
|
61
|
+
<div class="clear"></div>
|
62
|
+
</div>
|
63
|
+
|
64
|
+
<iframe id="search_frame"></iframe>
|
65
|
+
|
66
|
+
<div id="content"><h1>Class: Henry::Task::RspecTask
|
67
|
+
|
68
|
+
|
69
|
+
|
70
|
+
</h1>
|
71
|
+
|
72
|
+
<dl class="box">
|
73
|
+
|
74
|
+
<dt class="r1">Inherits:</dt>
|
75
|
+
<dd class="r1">
|
76
|
+
<span class="inheritName"><span class='object_link'><a href="../Task.html" title="Henry::Task (class)">Henry::Task</a></span></span>
|
77
|
+
|
78
|
+
<ul class="fullTree">
|
79
|
+
<li>Object</li>
|
80
|
+
|
81
|
+
<li class="next"><span class='object_link'><a href="../Task.html" title="Henry::Task (class)">Henry::Task</a></span></li>
|
82
|
+
|
83
|
+
<li class="next">Henry::Task::RspecTask</li>
|
84
|
+
|
85
|
+
</ul>
|
86
|
+
<a href="#" class="inheritanceTree">show all</a>
|
87
|
+
|
88
|
+
</dd>
|
89
|
+
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
|
94
|
+
|
95
|
+
|
96
|
+
|
97
|
+
|
98
|
+
<dt class="r2 last">Defined in:</dt>
|
99
|
+
<dd class="r2 last">lib/henry/task/rspec_task.rb</dd>
|
100
|
+
|
101
|
+
</dl>
|
102
|
+
<div class="clear"></div>
|
103
|
+
|
104
|
+
<h2>Overview</h2><div class="docstring">
|
105
|
+
<div class="discussion">
|
106
|
+
|
107
|
+
<p>The Henry Task implementation for Rspec</p>
|
108
|
+
|
109
|
+
|
110
|
+
</div>
|
111
|
+
</div>
|
112
|
+
<div class="tags">
|
113
|
+
|
114
|
+
|
115
|
+
</div>
|
116
|
+
|
117
|
+
|
118
|
+
|
119
|
+
|
120
|
+
|
121
|
+
<h2>Instance Attribute Summary</h2>
|
122
|
+
|
123
|
+
<h3 class="inherited">Attributes inherited from <span class='object_link'><a href="../Task.html" title="Henry::Task (class)">Henry::Task</a></span></h3>
|
124
|
+
<p class="inherited"><span class='object_link'><a href="../Task.html#data-instance_method" title="Henry::Task#data (method)">#data</a></span>, <span class='object_link'><a href="../Task.html#name-instance_method" title="Henry::Task#name (method)">#name</a></span></p>
|
125
|
+
|
126
|
+
|
127
|
+
|
128
|
+
<h2>
|
129
|
+
Instance Method Summary
|
130
|
+
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
131
|
+
</h2>
|
132
|
+
|
133
|
+
<ul class="summary">
|
134
|
+
|
135
|
+
<li class="public ">
|
136
|
+
<span class="summary_signature">
|
137
|
+
|
138
|
+
<a href="#execute-instance_method" title="#execute (instance method)">- (Hash) <strong>execute</strong>(params) </a>
|
139
|
+
|
140
|
+
|
141
|
+
|
142
|
+
</span>
|
143
|
+
|
144
|
+
|
145
|
+
|
146
|
+
|
147
|
+
|
148
|
+
|
149
|
+
|
150
|
+
|
151
|
+
|
152
|
+
<span class="summary_desc"><div class='inline'>
|
153
|
+
<p>Executes the CucumberTask and returns its results.</p>
|
154
|
+
</div></span>
|
155
|
+
|
156
|
+
</li>
|
157
|
+
|
158
|
+
|
159
|
+
</ul>
|
160
|
+
|
161
|
+
|
162
|
+
|
163
|
+
|
164
|
+
|
165
|
+
|
166
|
+
|
167
|
+
|
168
|
+
|
169
|
+
|
170
|
+
|
171
|
+
<h3 class="inherited">Methods inherited from <span class='object_link'><a href="../Task.html" title="Henry::Task (class)">Henry::Task</a></span></h3>
|
172
|
+
<p class="inherited"><span class='object_link'><a href="../Task.html#create-class_method" title="Henry::Task.create (method)">create</a></span>, <span class='object_link'><a href="../Task.html#initialize-instance_method" title="Henry::Task#initialize (method)">#initialize</a></span></p>
|
173
|
+
<div id="constructor_details" class="method_details_list">
|
174
|
+
<h2>Constructor Details</h2>
|
175
|
+
|
176
|
+
<p class="notice">This class inherits a constructor from <span class='object_link'><a href="../Task.html#initialize-instance_method" title="Henry::Task#initialize (method)">Henry::Task</a></span></p>
|
177
|
+
|
178
|
+
</div>
|
179
|
+
|
180
|
+
|
181
|
+
<div id="instance_method_details" class="method_details_list">
|
182
|
+
<h2>Instance Method Details</h2>
|
183
|
+
|
184
|
+
|
185
|
+
<div class="method_details first">
|
186
|
+
<h3 class="signature first" id="execute-instance_method">
|
187
|
+
|
188
|
+
- (<tt>Hash</tt>) <strong>execute</strong>(params)
|
189
|
+
|
190
|
+
|
191
|
+
|
192
|
+
|
193
|
+
|
194
|
+
</h3><div class="docstring">
|
195
|
+
<div class="discussion">
|
196
|
+
|
197
|
+
<p>Executes the CucumberTask and returns its results.</p>
|
198
|
+
|
199
|
+
|
200
|
+
</div>
|
201
|
+
</div>
|
202
|
+
<div class="tags">
|
203
|
+
|
204
|
+
<p class="tag_title">Returns:</p>
|
205
|
+
<ul class="return">
|
206
|
+
|
207
|
+
<li>
|
208
|
+
|
209
|
+
|
210
|
+
<span class='type'>(<tt>Hash</tt>)</span>
|
211
|
+
|
212
|
+
|
213
|
+
|
214
|
+
—
|
215
|
+
<div class='inline'>
|
216
|
+
<p>the CucumberTask results.</p>
|
217
|
+
</div>
|
218
|
+
|
219
|
+
</li>
|
220
|
+
|
221
|
+
</ul>
|
222
|
+
|
223
|
+
</div><table class="source_code">
|
224
|
+
<tr>
|
225
|
+
<td>
|
226
|
+
<pre class="lines">
|
227
|
+
|
228
|
+
|
229
|
+
19
|
230
|
+
20
|
231
|
+
21
|
232
|
+
22
|
233
|
+
23
|
234
|
+
24
|
235
|
+
25
|
236
|
+
26
|
237
|
+
27
|
238
|
+
28
|
239
|
+
29
|
240
|
+
30
|
241
|
+
31
|
242
|
+
32
|
243
|
+
33
|
244
|
+
34
|
245
|
+
35
|
246
|
+
36
|
247
|
+
37
|
248
|
+
38
|
249
|
+
39
|
250
|
+
40
|
251
|
+
41
|
252
|
+
42
|
253
|
+
43</pre>
|
254
|
+
</td>
|
255
|
+
<td>
|
256
|
+
<pre class="code"><span class="info file"># File 'lib/henry/task/rspec_task.rb', line 19</span>
|
257
|
+
|
258
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_execute'>execute</span><span class='lparen'>(</span><span class='id identifier rubyid_params'>params</span><span class='rparen'>)</span>
|
259
|
+
<span class='kw'>begin</span>
|
260
|
+
<span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_open'>open</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>rspec.out</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>w</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_f'>f</span><span class='op'>|</span> <span class='rbrace'>}</span>
|
261
|
+
|
262
|
+
<span class='id identifier rubyid_tail_pid'>tail_pid</span> <span class='op'>=</span> <span class='const'>Process</span><span class='period'>.</span><span class='id identifier rubyid_spawn'>spawn</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>tail -f rspec.out</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span>
|
263
|
+
|
264
|
+
<span class='const'>Rake</span><span class='period'>.</span><span class='id identifier rubyid_application'>application</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>spec</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_invoke'>invoke</span>
|
265
|
+
|
266
|
+
<span class='const'>Process</span><span class='period'>.</span><span class='id identifier rubyid_kill'>kill</span><span class='lparen'>(</span><span class='symbol'>:SIGINT</span><span class='comma'>,</span> <span class='id identifier rubyid_tail_pid'>tail_pid</span><span class='rparen'>)</span>
|
267
|
+
|
268
|
+
<span class='lbrace'>{</span>
|
269
|
+
<span class='label'>code:</span><span class='int'>0</span><span class='comma'>,</span>
|
270
|
+
<span class='label'>message:</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>OK</span><span class='tstring_end'>"</span></span><span class='comma'>,</span>
|
271
|
+
<span class='label'>data:</span><span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_open'>open</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>rspec.out</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>r</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_read'>read</span><span class='comma'>,</span>
|
272
|
+
<span class='label'>stacktrace:</span><span class='kw'>nil</span>
|
273
|
+
<span class='rbrace'>}</span>
|
274
|
+
<span class='kw'>rescue</span> <span class='const'>Exception</span> <span class='op'>=></span> <span class='id identifier rubyid_e'>e</span>
|
275
|
+
<span class='lbrace'>{</span>
|
276
|
+
<span class='label'>code:</span><span class='int'>2</span><span class='comma'>,</span>
|
277
|
+
<span class='label'>message:</span><span class='id identifier rubyid_e'>e</span><span class='period'>.</span><span class='id identifier rubyid_message'>message</span><span class='comma'>,</span>
|
278
|
+
<span class='label'>data:</span><span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_open'>open</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>rspec.out</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>r</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_read'>read</span><span class='comma'>,</span>
|
279
|
+
<span class='label'>stacktrace:</span><span class='id identifier rubyid_e'>e</span><span class='period'>.</span><span class='id identifier rubyid_backtrace'>backtrace</span>
|
280
|
+
<span class='rbrace'>}</span>
|
281
|
+
<span class='kw'>end</span>
|
282
|
+
<span class='kw'>end</span></pre>
|
283
|
+
</td>
|
284
|
+
</tr>
|
285
|
+
</table>
|
286
|
+
</div>
|
287
|
+
|
288
|
+
</div>
|
289
|
+
|
290
|
+
</div>
|
291
|
+
|
292
|
+
<div id="footer">
|
293
|
+
Generated on Thu Jul 12 11:57:32 2012 by
|
294
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
295
|
+
0.8.2.1 (ruby-1.9.3).
|
296
|
+
</div>
|
297
|
+
|
298
|
+
</body>
|
299
|
+
</html>
|