mattock 0.2.5 → 0.2.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (111) hide show
  1. data/doc/Specifications +0 -37
  2. data/lib/mattock/cascading-definition.rb +36 -0
  3. data/lib/mattock/configurable.rb +46 -5
  4. data/lib/mattock/tasklib.rb +47 -1
  5. data/lib/mattock/yard_extensions.rb +10 -0
  6. metadata +3 -213
  7. data/doc/FileSandbox.html +0 -537
  8. data/doc/FileSandbox/HaveContents.html +0 -279
  9. data/doc/FileSandbox/Sandbox.html +0 -525
  10. data/doc/FileSandbox/SandboxFile.html +0 -622
  11. data/doc/Mattock.html +0 -137
  12. data/doc/Mattock/CascadingDefinition.html +0 -459
  13. data/doc/Mattock/CommandChain.html +0 -456
  14. data/doc/Mattock/CommandLine.html +0 -1312
  15. data/doc/Mattock/CommandLineExampleGroup.html +0 -282
  16. data/doc/Mattock/CommandLineExampleGroup/Matchers.html +0 -109
  17. data/doc/Mattock/CommandRunResult.html +0 -643
  18. data/doc/Mattock/CommandTask.html +0 -464
  19. data/doc/Mattock/Configurable.html +0 -609
  20. data/doc/Mattock/Configurable/ClassMethods.html +0 -754
  21. data/doc/Mattock/Configurable/Struct.html +0 -148
  22. data/doc/Mattock/FileCreationTask.html +0 -177
  23. data/doc/Mattock/FileTask.html +0 -177
  24. data/doc/Mattock/MockCommandResult.html +0 -445
  25. data/doc/Mattock/MultiTask.html +0 -177
  26. data/doc/Mattock/PipelineChain.html +0 -221
  27. data/doc/Mattock/PrereqChain.html +0 -221
  28. data/doc/Mattock/RakeExampleGroup.html +0 -292
  29. data/doc/Mattock/RakeExampleGroup/Matchers.html +0 -109
  30. data/doc/Mattock/RakeExampleGroup/TaskManager.html +0 -131
  31. data/doc/Mattock/RemoteCommandTask.html +0 -423
  32. data/doc/Mattock/ShellEscaped.html +0 -315
  33. data/doc/Mattock/Task.html +0 -181
  34. data/doc/Mattock/TaskLib.html +0 -755
  35. data/doc/Mattock/TaskMixin.html +0 -668
  36. data/doc/Mattock/TaskMixin/ClassMethods.html +0 -166
  37. data/doc/Mattock/TemplateHost.html +0 -320
  38. data/doc/Mattock/ValiseManager.html +0 -257
  39. data/doc/Mattock/WrappingChain.html +0 -221
  40. data/doc/Mattock/YARDExtensions.html +0 -110
  41. data/doc/Mattock/YARDExtensions/DefineHandler.html +0 -253
  42. data/doc/Mattock/YARDExtensions/NilFieldsHandler.html +0 -258
  43. data/doc/Mattock/YARDExtensions/RequiredFieldsHandler.html +0 -205
  44. data/doc/Mattock/YARDExtensions/SettingHandler.html +0 -529
  45. data/doc/Mattock/YARDExtensions/SettingsHandler.html +0 -207
  46. data/doc/RSpecTest.html +0 -233
  47. data/doc/Ungemmer.html +0 -282
  48. data/doc/_index.html +0 -435
  49. data/doc/class_list.html +0 -47
  50. data/doc/coverage/assets/0.5.3/app.js +0 -88
  51. data/doc/coverage/assets/0.5.3/fancybox/blank.gif +0 -0
  52. data/doc/coverage/assets/0.5.3/fancybox/fancy_close.png +0 -0
  53. data/doc/coverage/assets/0.5.3/fancybox/fancy_loading.png +0 -0
  54. data/doc/coverage/assets/0.5.3/fancybox/fancy_nav_left.png +0 -0
  55. data/doc/coverage/assets/0.5.3/fancybox/fancy_nav_right.png +0 -0
  56. data/doc/coverage/assets/0.5.3/fancybox/fancy_shadow_e.png +0 -0
  57. data/doc/coverage/assets/0.5.3/fancybox/fancy_shadow_n.png +0 -0
  58. data/doc/coverage/assets/0.5.3/fancybox/fancy_shadow_ne.png +0 -0
  59. data/doc/coverage/assets/0.5.3/fancybox/fancy_shadow_nw.png +0 -0
  60. data/doc/coverage/assets/0.5.3/fancybox/fancy_shadow_s.png +0 -0
  61. data/doc/coverage/assets/0.5.3/fancybox/fancy_shadow_se.png +0 -0
  62. data/doc/coverage/assets/0.5.3/fancybox/fancy_shadow_sw.png +0 -0
  63. data/doc/coverage/assets/0.5.3/fancybox/fancy_shadow_w.png +0 -0
  64. data/doc/coverage/assets/0.5.3/fancybox/fancy_title_left.png +0 -0
  65. data/doc/coverage/assets/0.5.3/fancybox/fancy_title_main.png +0 -0
  66. data/doc/coverage/assets/0.5.3/fancybox/fancy_title_over.png +0 -0
  67. data/doc/coverage/assets/0.5.3/fancybox/fancy_title_right.png +0 -0
  68. data/doc/coverage/assets/0.5.3/fancybox/fancybox-x.png +0 -0
  69. data/doc/coverage/assets/0.5.3/fancybox/fancybox-y.png +0 -0
  70. data/doc/coverage/assets/0.5.3/fancybox/fancybox.png +0 -0
  71. data/doc/coverage/assets/0.5.3/fancybox/jquery.fancybox-1.3.1.css +0 -363
  72. data/doc/coverage/assets/0.5.3/fancybox/jquery.fancybox-1.3.1.pack.js +0 -44
  73. data/doc/coverage/assets/0.5.3/favicon_green.png +0 -0
  74. data/doc/coverage/assets/0.5.3/favicon_red.png +0 -0
  75. data/doc/coverage/assets/0.5.3/favicon_yellow.png +0 -0
  76. data/doc/coverage/assets/0.5.3/highlight.css +0 -129
  77. data/doc/coverage/assets/0.5.3/highlight.pack.js +0 -1
  78. data/doc/coverage/assets/0.5.3/jquery-1.6.2.min.js +0 -18
  79. data/doc/coverage/assets/0.5.3/jquery.dataTables.min.js +0 -152
  80. data/doc/coverage/assets/0.5.3/jquery.timeago.js +0 -141
  81. data/doc/coverage/assets/0.5.3/jquery.url.js +0 -174
  82. data/doc/coverage/assets/0.5.3/loading.gif +0 -0
  83. data/doc/coverage/assets/0.5.3/magnify.png +0 -0
  84. data/doc/coverage/assets/0.5.3/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  85. data/doc/coverage/assets/0.5.3/smoothness/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
  86. data/doc/coverage/assets/0.5.3/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
  87. data/doc/coverage/assets/0.5.3/smoothness/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
  88. data/doc/coverage/assets/0.5.3/smoothness/images/ui-bg_glass_75_dadada_1x400.png +0 -0
  89. data/doc/coverage/assets/0.5.3/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
  90. data/doc/coverage/assets/0.5.3/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  91. data/doc/coverage/assets/0.5.3/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
  92. data/doc/coverage/assets/0.5.3/smoothness/images/ui-icons_222222_256x240.png +0 -0
  93. data/doc/coverage/assets/0.5.3/smoothness/images/ui-icons_2e83ff_256x240.png +0 -0
  94. data/doc/coverage/assets/0.5.3/smoothness/images/ui-icons_454545_256x240.png +0 -0
  95. data/doc/coverage/assets/0.5.3/smoothness/images/ui-icons_888888_256x240.png +0 -0
  96. data/doc/coverage/assets/0.5.3/smoothness/images/ui-icons_cd0a0a_256x240.png +0 -0
  97. data/doc/coverage/assets/0.5.3/smoothness/jquery-ui-1.8.4.custom.css +0 -295
  98. data/doc/coverage/assets/0.5.3/stylesheet.css +0 -383
  99. data/doc/coverage/index.html +0 -5169
  100. data/doc/css/common.css +0 -1
  101. data/doc/css/full_list.css +0 -55
  102. data/doc/css/style.css +0 -322
  103. data/doc/file.README.html +0 -107
  104. data/doc/file_list.html +0 -49
  105. data/doc/frames.html +0 -13
  106. data/doc/index.html +0 -107
  107. data/doc/js/app.js +0 -205
  108. data/doc/js/full_list.js +0 -173
  109. data/doc/js/jquery.js +0 -16
  110. data/doc/method_list.html +0 -950
  111. data/doc/top-level-namespace.html +0 -107
@@ -1,1312 +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 http-equiv="Content-Type" content="text/html; charset=utf-8" />
6
- <title>
7
- Class: Mattock::CommandLine
8
-
9
- &mdash; Documentation by YARD 0.7.5
10
-
11
- </title>
12
-
13
- <link rel="stylesheet" href="../css/style.css" type="text/css" media="screen" charset="utf-8" />
14
-
15
- <link rel="stylesheet" href="../css/common.css" type="text/css" media="screen" charset="utf-8" />
16
-
17
- <script type="text/javascript" charset="utf-8">
18
- relpath = '..';
19
- if (relpath != '') relpath += '/';
20
- </script>
21
-
22
- <script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
23
-
24
- <script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
25
-
26
-
27
- </head>
28
- <body>
29
- <script type="text/javascript" charset="utf-8">
30
- if (window.top.frames.main) document.body.className = 'frames';
31
- </script>
32
-
33
- <div id="header">
34
- <div id="menu">
35
-
36
- <a href="../_index.html">Index (C)</a> &raquo;
37
- <span class='title'><span class='object_link'><a href="../Mattock.html" title="Mattock (module)">Mattock</a></span></span>
38
- &raquo;
39
- <span class="title">CommandLine</span>
40
-
41
-
42
- <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
43
- </div>
44
-
45
- <div id="search">
46
-
47
- <a id="class_list_link" href="#">Class List</a>
48
-
49
- <a id="method_list_link" href="#">Method List</a>
50
-
51
- <a id="file_list_link" href="#">File List</a>
52
-
53
- </div>
54
- <div class="clear"></div>
55
- </div>
56
-
57
- <iframe id="search_frame"></iframe>
58
-
59
- <div id="content"><h1>Class: Mattock::CommandLine
60
-
61
-
62
-
63
- </h1>
64
-
65
- <dl class="box">
66
-
67
- <dt class="r1">Inherits:</dt>
68
- <dd class="r1">
69
- <span class="inheritName">Object</span>
70
-
71
- <ul class="fullTree">
72
- <li>Object</li>
73
-
74
- <li class="next">Mattock::CommandLine</li>
75
-
76
- </ul>
77
- <a href="#" class="inheritanceTree">show all</a>
78
-
79
- </dd>
80
-
81
-
82
-
83
-
84
-
85
-
86
-
87
-
88
-
89
- <dt class="r2 last">Defined in:</dt>
90
- <dd class="r2 last">lib/mattock/command-line.rb<span class="defines">,<br />
91
- lib/mattock/testing/record-commands.rb</span>
92
- </dd>
93
-
94
- </dl>
95
- <div class="clear"></div>
96
-
97
-
98
- <div id="subclasses">
99
- <h2>Direct Known Subclasses</h2>
100
- <p class="children"><span class='object_link'><a href="CommandChain.html" title="Mattock::CommandChain (class)">CommandChain</a></span>, <span class='object_link'><a href="ShellEscaped.html" title="Mattock::ShellEscaped (class)">ShellEscaped</a></span></p>
101
- </div>
102
-
103
- <h2>Constant Summary</h2>
104
-
105
- <dl class="constants">
106
-
107
- <dt id="commands-classvariable" class="">@@commands =
108
-
109
- </dt>
110
- <dd><pre class="code"><span class='lbracket'>[</span><span class='rbracket'>]</span></pre></dd>
111
-
112
- </dl>
113
-
114
-
115
-
116
-
117
-
118
-
119
- <h2>Class Attribute Summary <small>(<a href="#" class="summary_toggle">collapse</a>)</small></h2>
120
- <ul class="summary">
121
-
122
- <li class="public ">
123
- <span class="summary_signature">
124
-
125
- <a href="#command_recording_path-class_method" title="command_recording_path (class method)">+ (Object) <strong>command_recording_path</strong> </a>
126
-
127
-
128
-
129
- </span>
130
-
131
-
132
-
133
-
134
-
135
-
136
-
137
-
138
-
139
-
140
-
141
- <span class="summary_desc"><div class='inline'>
142
- <p>Returns the value of attribute command_recording_path.</p>
143
- </div></span>
144
-
145
- </li>
146
-
147
-
148
- </ul>
149
-
150
- <h2>Instance Attribute Summary <small>(<a href="#" class="summary_toggle">collapse</a>)</small></h2>
151
- <ul class="summary">
152
-
153
- <li class="public ">
154
- <span class="summary_signature">
155
-
156
- <a href="#executable-instance_method" title="#executable (instance method)">- (Object) <strong>executable</strong> </a>
157
-
158
-
159
-
160
- </span>
161
-
162
-
163
-
164
-
165
-
166
-
167
-
168
-
169
-
170
-
171
-
172
- <span class="summary_desc"><div class='inline'>
173
- <p>Returns the value of attribute executable.</p>
174
- </div></span>
175
-
176
- </li>
177
-
178
-
179
- <li class="public ">
180
- <span class="summary_signature">
181
-
182
- <a href="#name-instance_method" title="#name (instance method)">- (Object) <strong>name</strong> </a>
183
-
184
-
185
-
186
- </span>
187
-
188
-
189
-
190
-
191
-
192
-
193
-
194
-
195
-
196
-
197
-
198
- <span class="summary_desc"><div class='inline'>
199
- <p>Returns the value of attribute name.</p>
200
- </div></span>
201
-
202
- </li>
203
-
204
-
205
- <li class="public ">
206
- <span class="summary_signature">
207
-
208
- <a href="#options-instance_method" title="#options (instance method)">- (Object) <strong>options</strong> </a>
209
-
210
-
211
-
212
- </span>
213
-
214
-
215
-
216
-
217
-
218
-
219
-
220
-
221
-
222
-
223
-
224
- <span class="summary_desc"><div class='inline'>
225
- <p>Returns the value of attribute options.</p>
226
- </div></span>
227
-
228
- </li>
229
-
230
-
231
- </ul>
232
-
233
-
234
-
235
-
236
-
237
- <h2>
238
- Class Method Summary
239
- <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
240
- </h2>
241
-
242
- <ul class="summary">
243
-
244
- <li class="public ">
245
- <span class="summary_signature">
246
-
247
- <a href="#emit_recording-class_method" title="emit_recording (class method)">+ (Object) <strong>emit_recording</strong> </a>
248
-
249
-
250
-
251
- </span>
252
-
253
-
254
-
255
-
256
-
257
-
258
-
259
-
260
- <span class="summary_desc"><div class='inline'></div></span>
261
-
262
- </li>
263
-
264
-
265
- <li class="public ">
266
- <span class="summary_signature">
267
-
268
- <a href="#execute-class_method" title="execute (class method)">+ (Object) <strong>execute</strong>(command) </a>
269
-
270
-
271
-
272
- </span>
273
-
274
-
275
-
276
-
277
-
278
-
279
-
280
-
281
- <span class="summary_desc"><div class='inline'></div></span>
282
-
283
- </li>
284
-
285
-
286
- <li class="public ">
287
- <span class="summary_signature">
288
-
289
- <a href="#original_execute-class_method" title="original_execute (class method)">+ (Object) <strong>original_execute</strong> </a>
290
-
291
-
292
-
293
- </span>
294
-
295
-
296
-
297
-
298
-
299
-
300
-
301
-
302
- <span class="summary_desc"><div class='inline'></div></span>
303
-
304
- </li>
305
-
306
-
307
- </ul>
308
-
309
- <h2>
310
- Instance Method Summary
311
- <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
312
- </h2>
313
-
314
- <ul class="summary">
315
-
316
- <li class="public ">
317
- <span class="summary_signature">
318
-
319
- <a href="#command-instance_method" title="#command (instance method)">- (Object) <strong>command</strong> </a>
320
-
321
-
322
-
323
- </span>
324
-
325
-
326
-
327
-
328
-
329
-
330
-
331
-
332
- <span class="summary_desc"><div class='inline'></div></span>
333
-
334
- </li>
335
-
336
-
337
- <li class="public ">
338
- <span class="summary_signature">
339
-
340
- <a href="#copy_stream_to-instance_method" title="#copy_stream_to (instance method)">- (Object) <strong>copy_stream_to</strong>(from, to) </a>
341
-
342
-
343
-
344
- </span>
345
-
346
-
347
-
348
-
349
-
350
-
351
-
352
-
353
- <span class="summary_desc"><div class='inline'></div></span>
354
-
355
- </li>
356
-
357
-
358
- <li class="public ">
359
- <span class="summary_signature">
360
-
361
- <a href="#initialize-instance_method" title="#initialize (instance method)">- (CommandLine) <strong>initialize</strong>(executable, *options) {|_self| ... }</a>
362
-
363
-
364
-
365
- </span>
366
-
367
- <span class="note title constructor">constructor</span>
368
-
369
-
370
-
371
-
372
-
373
-
374
-
375
-
376
- <span class="summary_desc"><div class='inline'>
377
- <p>A new instance of CommandLine.</p>
378
- </div></span>
379
-
380
- </li>
381
-
382
-
383
- <li class="public ">
384
- <span class="summary_signature">
385
-
386
- <a href="#must_succeed%21-instance_method" title="#must_succeed! (instance method)">- (Object) <strong>must_succeed!</strong> </a>
387
-
388
-
389
-
390
- </span>
391
-
392
-
393
-
394
-
395
-
396
-
397
-
398
-
399
- <span class="summary_desc"><div class='inline'></div></span>
400
-
401
- </li>
402
-
403
-
404
- <li class="public ">
405
- <span class="summary_signature">
406
-
407
- <a href="#redirect_from-instance_method" title="#redirect_from (instance method)">- (Object) <strong>redirect_from</strong>(path, stream) </a>
408
-
409
-
410
-
411
- </span>
412
-
413
-
414
-
415
-
416
-
417
-
418
-
419
-
420
- <span class="summary_desc"><div class='inline'></div></span>
421
-
422
- </li>
423
-
424
-
425
- <li class="public ">
426
- <span class="summary_signature">
427
-
428
- <a href="#redirect_stderr-instance_method" title="#redirect_stderr (instance method)">- (Object) <strong>redirect_stderr</strong>(path) </a>
429
-
430
-
431
-
432
- </span>
433
-
434
-
435
-
436
-
437
-
438
-
439
-
440
-
441
- <span class="summary_desc"><div class='inline'></div></span>
442
-
443
- </li>
444
-
445
-
446
- <li class="public ">
447
- <span class="summary_signature">
448
-
449
- <a href="#redirect_stdin-instance_method" title="#redirect_stdin (instance method)">- (Object) <strong>redirect_stdin</strong>(path) </a>
450
-
451
-
452
-
453
- </span>
454
-
455
-
456
-
457
-
458
-
459
-
460
-
461
-
462
- <span class="summary_desc"><div class='inline'></div></span>
463
-
464
- </li>
465
-
466
-
467
- <li class="public ">
468
- <span class="summary_signature">
469
-
470
- <a href="#redirect_stdout-instance_method" title="#redirect_stdout (instance method)">- (Object) <strong>redirect_stdout</strong>(path) </a>
471
-
472
-
473
-
474
- </span>
475
-
476
-
477
-
478
-
479
-
480
-
481
-
482
-
483
- <span class="summary_desc"><div class='inline'></div></span>
484
-
485
- </li>
486
-
487
-
488
- <li class="public ">
489
- <span class="summary_signature">
490
-
491
- <a href="#redirect_to-instance_method" title="#redirect_to (instance method)">- (Object) <strong>redirect_to</strong>(stream, path) </a>
492
-
493
-
494
-
495
- </span>
496
-
497
-
498
-
499
-
500
-
501
-
502
-
503
-
504
- <span class="summary_desc"><div class='inline'></div></span>
505
-
506
- </li>
507
-
508
-
509
- <li class="public ">
510
- <span class="summary_signature">
511
-
512
- <a href="#run-instance_method" title="#run (instance method)">- (Object) <strong>run</strong> </a>
513
-
514
-
515
-
516
- </span>
517
-
518
-
519
-
520
-
521
-
522
-
523
-
524
-
525
- <span class="summary_desc"><div class='inline'></div></span>
526
-
527
- </li>
528
-
529
-
530
- <li class="public ">
531
- <span class="summary_signature">
532
-
533
- <a href="#succeeds%3F-instance_method" title="#succeeds? (instance method)">- (Boolean) <strong>succeeds?</strong> </a>
534
-
535
-
536
-
537
- </span>
538
-
539
-
540
-
541
-
542
-
543
-
544
-
545
-
546
- <span class="summary_desc"><div class='inline'></div></span>
547
-
548
- </li>
549
-
550
-
551
- <li class="public ">
552
- <span class="summary_signature">
553
-
554
- <a href="#verbose-instance_method" title="#verbose (instance method)">- (Object) <strong>verbose</strong> </a>
555
-
556
-
557
-
558
- </span>
559
-
560
-
561
-
562
-
563
-
564
-
565
-
566
-
567
- <span class="summary_desc"><div class='inline'></div></span>
568
-
569
- </li>
570
-
571
-
572
- </ul>
573
-
574
-
575
- <div id="constructor_details" class="method_details_list">
576
- <h2>Constructor Details</h2>
577
-
578
- <div class="method_details first">
579
- <p class="signature first" id="initialize-instance_method">
580
-
581
- - (<tt><span class='object_link'><a href="" title="Mattock::CommandLine (class)">CommandLine</a></span></tt>) <strong>initialize</strong>(executable, *options) {|_self| ... }
582
-
583
-
584
-
585
- </p><div class="docstring">
586
- <div class="discussion">
587
-
588
- <p>A new instance of CommandLine</p>
589
-
590
-
591
- </div>
592
- </div>
593
- <div class="tags">
594
-
595
- <h3>Yields:</h3>
596
- <ul class="yield">
597
-
598
- <li>
599
-
600
-
601
- <span class='type'>(<tt>_self</tt>)</span>
602
-
603
-
604
-
605
- </li>
606
-
607
- </ul>
608
- <h3>Yield Parameters:</h3>
609
- <ul class="yieldparam">
610
-
611
- <li>
612
-
613
- <span class='name'>_self</span>
614
-
615
-
616
- <span class='type'>(<tt><span class='object_link'><a href="" title="Mattock::CommandLine (class)">Mattock::CommandLine</a></span></tt>)</span>
617
-
618
-
619
-
620
- &mdash;
621
- <div class='inline'>
622
- <p>the object that the method was called on</p>
623
- </div>
624
-
625
- </li>
626
-
627
- </ul>
628
-
629
- </div><table class="source_code">
630
- <tr>
631
- <td>
632
- <pre class="lines">
633
-
634
-
635
- 41
636
- 42
637
- 43
638
- 44
639
- 45
640
- 46</pre>
641
- </td>
642
- <td>
643
- <pre class="code"><span class="info file"># File 'lib/mattock/command-line.rb', line 41</span>
644
-
645
- <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_executable'>executable</span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_options'>options</span><span class='rparen'>)</span>
646
- <span class='ivar'>@executable</span> <span class='op'>=</span> <span class='id identifier rubyid_executable'>executable</span>
647
- <span class='ivar'>@options</span> <span class='op'>=</span> <span class='id identifier rubyid_options'>options</span>
648
- <span class='ivar'>@redirections</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
649
- <span class='kw'>yield</span> <span class='kw'>self</span> <span class='kw'>if</span> <span class='id identifier rubyid_block_given?'>block_given?</span>
650
- <span class='kw'>end</span></pre>
651
- </td>
652
- </tr>
653
- </table>
654
- </div>
655
-
656
- </div>
657
-
658
- <div id="class_attr_details" class="attr_details">
659
- <h2>Class Attribute Details</h2>
660
-
661
-
662
- <span id="command_recording_path=-class_method"></span>
663
- <span id="command_recording_path-class_method"></span>
664
- <div class="method_details first">
665
- <p class="signature first" id="command_recording_path-class_method">
666
-
667
- + (<tt>Object</tt>) <strong>command_recording_path</strong>
668
-
669
-
670
-
671
- </p><div class="docstring">
672
- <div class="discussion">
673
-
674
- <p>Returns the value of attribute command_recording_path</p>
675
-
676
-
677
- </div>
678
- </div>
679
- <div class="tags">
680
-
681
-
682
- </div><table class="source_code">
683
- <tr>
684
- <td>
685
- <pre class="lines">
686
-
687
-
688
- 15
689
- 16
690
- 17</pre>
691
- </td>
692
- <td>
693
- <pre class="code"><span class="info file"># File 'lib/mattock/testing/record-commands.rb', line 15</span>
694
-
695
- <span class='kw'>def</span> <span class='id identifier rubyid_command_recording_path'>command_recording_path</span>
696
- <span class='ivar'>@command_recording_path</span> <span class='op'>||=</span> <span class='const'>ENV</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>MATTOCK_CMDREC</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span>
697
- <span class='kw'>end</span></pre>
698
- </td>
699
- </tr>
700
- </table>
701
- </div>
702
-
703
- </div>
704
-
705
- <div id="instance_attr_details" class="attr_details">
706
- <h2>Instance Attribute Details</h2>
707
-
708
-
709
- <span id="executable=-instance_method"></span>
710
- <span id="executable-instance_method"></span>
711
- <div class="method_details first">
712
- <p class="signature first" id="executable-instance_method">
713
-
714
- - (<tt>Object</tt>) <strong>executable</strong>
715
-
716
-
717
-
718
- </p><div class="docstring">
719
- <div class="discussion">
720
-
721
- <p>Returns the value of attribute executable</p>
722
-
723
-
724
- </div>
725
- </div>
726
- <div class="tags">
727
-
728
-
729
- </div><table class="source_code">
730
- <tr>
731
- <td>
732
- <pre class="lines">
733
-
734
-
735
- 48
736
- 49
737
- 50</pre>
738
- </td>
739
- <td>
740
- <pre class="code"><span class="info file"># File 'lib/mattock/command-line.rb', line 48</span>
741
-
742
- <span class='kw'>def</span> <span class='id identifier rubyid_executable'>executable</span>
743
- <span class='ivar'>@executable</span>
744
- <span class='kw'>end</span></pre>
745
- </td>
746
- </tr>
747
- </table>
748
- </div>
749
-
750
-
751
- <span id="name=-instance_method"></span>
752
- <span id="name-instance_method"></span>
753
- <div class="method_details ">
754
- <p class="signature " id="name-instance_method">
755
-
756
- - (<tt>Object</tt>) <strong>name</strong>
757
-
758
-
759
-
760
- </p><div class="docstring">
761
- <div class="discussion">
762
-
763
- <p>Returns the value of attribute name</p>
764
-
765
-
766
- </div>
767
- </div>
768
- <div class="tags">
769
-
770
-
771
- </div><table class="source_code">
772
- <tr>
773
- <td>
774
- <pre class="lines">
775
-
776
-
777
- 48
778
- 49
779
- 50</pre>
780
- </td>
781
- <td>
782
- <pre class="code"><span class="info file"># File 'lib/mattock/command-line.rb', line 48</span>
783
-
784
- <span class='kw'>def</span> <span class='id identifier rubyid_name'>name</span>
785
- <span class='ivar'>@name</span> <span class='op'>||</span> <span class='id identifier rubyid_executable'>executable</span>
786
- <span class='kw'>end</span></pre>
787
- </td>
788
- </tr>
789
- </table>
790
- </div>
791
-
792
-
793
- <span id="options=-instance_method"></span>
794
- <span id="options-instance_method"></span>
795
- <div class="method_details ">
796
- <p class="signature " id="options-instance_method">
797
-
798
- - (<tt>Object</tt>) <strong>options</strong>
799
-
800
-
801
-
802
- </p><div class="docstring">
803
- <div class="discussion">
804
-
805
- <p>Returns the value of attribute options</p>
806
-
807
-
808
- </div>
809
- </div>
810
- <div class="tags">
811
-
812
-
813
- </div><table class="source_code">
814
- <tr>
815
- <td>
816
- <pre class="lines">
817
-
818
-
819
- 48
820
- 49
821
- 50</pre>
822
- </td>
823
- <td>
824
- <pre class="code"><span class="info file"># File 'lib/mattock/command-line.rb', line 48</span>
825
-
826
- <span class='kw'>def</span> <span class='id identifier rubyid_options'>options</span>
827
- <span class='ivar'>@options</span>
828
- <span class='kw'>end</span></pre>
829
- </td>
830
- </tr>
831
- </table>
832
- </div>
833
-
834
- </div>
835
-
836
-
837
- <div id="class_method_details" class="method_details_list">
838
- <h2>Class Method Details</h2>
839
-
840
-
841
- <div class="method_details first">
842
- <p class="signature first" id="emit_recording-class_method">
843
-
844
- + (<tt>Object</tt>) <strong>emit_recording</strong>
845
-
846
-
847
-
848
- </p><table class="source_code">
849
- <tr>
850
- <td>
851
- <pre class="lines">
852
-
853
-
854
- 21
855
- 22
856
- 23
857
- 24
858
- 25
859
- 26
860
- 27
861
- 28
862
- 29
863
- 30
864
- 31</pre>
865
- </td>
866
- <td>
867
- <pre class="code"><span class="info file"># File 'lib/mattock/testing/record-commands.rb', line 21</span>
868
-
869
- <span class='kw'>def</span> <span class='id identifier rubyid_emit_recording'>emit_recording</span>
870
- <span class='id identifier rubyid_io'>io</span> <span class='op'>=</span> <span class='gvar'>$stderr</span>
871
- <span class='kw'>if</span> <span class='id identifier rubyid_command_recording_path'>command_recording_path</span>
872
- <span class='id identifier rubyid_io'>io</span> <span class='op'>=</span> <span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_open'>open</span><span class='lparen'>(</span><span class='id identifier rubyid_command_recording_path'>command_recording_path</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>w</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
873
- <span class='kw'>else</span>
874
- <span class='id identifier rubyid_io'>io</span><span class='period'>.</span><span class='id identifier rubyid_puts'>puts</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Set MATTOCK_CMDREC to write to a path</span><span class='tstring_end'>&quot;</span></span>
875
- <span class='kw'>end</span>
876
- <span class='cvar'>@@commands</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_pair'>pair</span><span class='op'>|</span>
877
- <span class='id identifier rubyid_io'>io</span><span class='period'>.</span><span class='id identifier rubyid_puts'>puts</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>[/</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_pair'>pair</span><span class='lbracket'>[</span><span class='int'>0</span><span class='rbracket'>]</span><span class='rbrace'>}</span><span class='tstring_content'>/, </span><span class='embexpr_beg'>#{</span><span class='lbracket'>[</span><span class='id identifier rubyid_pair'>pair</span><span class='lbracket'>[</span><span class='int'>1</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_exit_code'>exit_code</span><span class='comma'>,</span> <span class='id identifier rubyid_pair'>pair</span><span class='lbracket'>[</span><span class='int'>1</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_streams'>streams</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_inspect'>inspect</span><span class='rbrace'>}</span><span class='tstring_content'>]</span><span class='tstring_end'>&quot;</span></span>
878
- <span class='kw'>end</span>
879
- <span class='kw'>end</span></pre>
880
- </td>
881
- </tr>
882
- </table>
883
- </div>
884
-
885
- <div class="method_details ">
886
- <p class="signature " id="execute-class_method">
887
-
888
- + (<tt>Object</tt>) <strong>execute</strong>(command)
889
-
890
-
891
-
892
- </p><table class="source_code">
893
- <tr>
894
- <td>
895
- <pre class="lines">
896
-
897
-
898
- 86
899
- 87
900
- 88
901
- 89
902
- 90</pre>
903
- </td>
904
- <td>
905
- <pre class="code"><span class="info file"># File 'lib/mattock/command-line.rb', line 86</span>
906
-
907
- <span class='kw'>def</span> <span class='id identifier rubyid_execute'>execute</span><span class='lparen'>(</span><span class='id identifier rubyid_command'>command</span><span class='rparen'>)</span>
908
- <span class='id identifier rubyid_result'>result</span> <span class='op'>=</span> <span class='id identifier rubyid_original_execute'>original_execute</span><span class='lparen'>(</span><span class='id identifier rubyid_command'>command</span><span class='rparen'>)</span>
909
- <span class='cvar'>@@commands</span> <span class='op'>&lt;&lt;</span> <span class='lbracket'>[</span><span class='id identifier rubyid_command'>command</span><span class='comma'>,</span> <span class='id identifier rubyid_result'>result</span><span class='rbracket'>]</span>
910
- <span class='kw'>return</span> <span class='id identifier rubyid_result'>result</span>
911
- <span class='kw'>end</span></pre>
912
- </td>
913
- </tr>
914
- </table>
915
- </div>
916
-
917
- <div class="method_details ">
918
- <p class="signature " id="original_execute-class_method">
919
-
920
- + (<tt>Object</tt>) <strong>original_execute</strong>
921
-
922
-
923
-
924
- </p><table class="source_code">
925
- <tr>
926
- <td>
927
- <pre class="lines">
928
-
929
-
930
- 7
931
- 8
932
- 9
933
- 10
934
- 11
935
- 12
936
- 13
937
- 14</pre>
938
- </td>
939
- <td>
940
- <pre class="code"><span class="info file"># File 'lib/mattock/testing/record-commands.rb', line 7</span>
941
-
942
- <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_execute'>execute</span><span class='lparen'>(</span><span class='id identifier rubyid_command'>command</span><span class='rparen'>)</span>
943
- <span class='id identifier rubyid_pipe'>pipe</span> <span class='op'>=</span> <span class='const'>IO</span><span class='period'>.</span><span class='id identifier rubyid_popen'>popen</span><span class='lparen'>(</span><span class='id identifier rubyid_command'>command</span><span class='rparen'>)</span>
944
- <span class='id identifier rubyid_pid'>pid</span> <span class='op'>=</span> <span class='id identifier rubyid_pipe'>pipe</span><span class='period'>.</span><span class='id identifier rubyid_pid'>pid</span>
945
- <span class='id identifier rubyid_pid'>pid</span><span class='comma'>,</span> <span class='id identifier rubyid_status'>status</span> <span class='op'>=</span> <span class='const'>Process</span><span class='period'>.</span><span class='id identifier rubyid_wait2'>wait2</span><span class='lparen'>(</span><span class='id identifier rubyid_pid'>pid</span><span class='rparen'>)</span>
946
- <span class='id identifier rubyid_result'>result</span> <span class='op'>=</span> <span class='const'>CommandRunResult</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_command'>command</span><span class='comma'>,</span> <span class='id identifier rubyid_status'>status</span><span class='comma'>,</span> <span class='lbrace'>{</span><span class='int'>1</span> <span class='op'>=&gt;</span> <span class='id identifier rubyid_pipe'>pipe</span><span class='period'>.</span><span class='id identifier rubyid_read'>read</span><span class='rbrace'>}</span><span class='rparen'>)</span>
947
- <span class='id identifier rubyid_pipe'>pipe</span><span class='period'>.</span><span class='id identifier rubyid_close'>close</span>
948
- <span class='kw'>return</span> <span class='id identifier rubyid_result'>result</span>
949
- <span class='kw'>end</span></pre>
950
- </td>
951
- </tr>
952
- </table>
953
- </div>
954
-
955
- </div>
956
-
957
- <div id="instance_method_details" class="method_details_list">
958
- <h2>Instance Method Details</h2>
959
-
960
-
961
- <div class="method_details first">
962
- <p class="signature first" id="command-instance_method">
963
-
964
- - (<tt>Object</tt>) <strong>command</strong>
965
-
966
-
967
-
968
- </p><table class="source_code">
969
- <tr>
970
- <td>
971
- <pre class="lines">
972
-
973
-
974
- 58
975
- 59
976
- 60</pre>
977
- </td>
978
- <td>
979
- <pre class="code"><span class="info file"># File 'lib/mattock/command-line.rb', line 58</span>
980
-
981
- <span class='kw'>def</span> <span class='id identifier rubyid_command'>command</span>
982
- <span class='lparen'>(</span><span class='lbracket'>[</span><span class='id identifier rubyid_executable'>executable</span><span class='rbracket'>]</span> <span class='op'>+</span> <span class='id identifier rubyid_options'>options</span> <span class='op'>+</span> <span class='ivar'>@redirections</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_join'>join</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'> </span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
983
- <span class='kw'>end</span></pre>
984
- </td>
985
- </tr>
986
- </table>
987
- </div>
988
-
989
- <div class="method_details ">
990
- <p class="signature " id="copy_stream_to-instance_method">
991
-
992
- - (<tt>Object</tt>) <strong>copy_stream_to</strong>(from, to)
993
-
994
-
995
-
996
- </p><table class="source_code">
997
- <tr>
998
- <td>
999
- <pre class="lines">
1000
-
1001
-
1002
- 70
1003
- 71
1004
- 72</pre>
1005
- </td>
1006
- <td>
1007
- <pre class="code"><span class="info file"># File 'lib/mattock/command-line.rb', line 70</span>
1008
-
1009
- <span class='kw'>def</span> <span class='id identifier rubyid_copy_stream_to'>copy_stream_to</span><span class='lparen'>(</span><span class='id identifier rubyid_from'>from</span><span class='comma'>,</span> <span class='id identifier rubyid_to'>to</span><span class='rparen'>)</span>
1010
- <span class='ivar'>@redirections</span> <span class='op'>&lt;&lt;</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_from'>from</span><span class='rbrace'>}</span><span class='tstring_content'>&gt;&amp;</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_to'>to</span><span class='rbrace'>}</span><span class='tstring_end'>&quot;</span></span>
1011
- <span class='kw'>end</span></pre>
1012
- </td>
1013
- </tr>
1014
- </table>
1015
- </div>
1016
-
1017
- <div class="method_details ">
1018
- <p class="signature " id="must_succeed!-instance_method">
1019
-
1020
- - (<tt>Object</tt>) <strong>must_succeed!</strong>
1021
-
1022
-
1023
-
1024
- </p><table class="source_code">
1025
- <tr>
1026
- <td>
1027
- <pre class="lines">
1028
-
1029
-
1030
- 108
1031
- 109
1032
- 110</pre>
1033
- </td>
1034
- <td>
1035
- <pre class="code"><span class="info file"># File 'lib/mattock/command-line.rb', line 108</span>
1036
-
1037
- <span class='kw'>def</span> <span class='id identifier rubyid_must_succeed!'>must_succeed!</span>
1038
- <span class='id identifier rubyid_run'>run</span><span class='period'>.</span><span class='id identifier rubyid_must_succeed!'>must_succeed!</span>
1039
- <span class='kw'>end</span></pre>
1040
- </td>
1041
- </tr>
1042
- </table>
1043
- </div>
1044
-
1045
- <div class="method_details ">
1046
- <p class="signature " id="redirect_from-instance_method">
1047
-
1048
- - (<tt>Object</tt>) <strong>redirect_from</strong>(path, stream)
1049
-
1050
-
1051
-
1052
- </p><table class="source_code">
1053
- <tr>
1054
- <td>
1055
- <pre class="lines">
1056
-
1057
-
1058
- 66
1059
- 67
1060
- 68</pre>
1061
- </td>
1062
- <td>
1063
- <pre class="code"><span class="info file"># File 'lib/mattock/command-line.rb', line 66</span>
1064
-
1065
- <span class='kw'>def</span> <span class='id identifier rubyid_redirect_from'>redirect_from</span><span class='lparen'>(</span><span class='id identifier rubyid_path'>path</span><span class='comma'>,</span> <span class='id identifier rubyid_stream'>stream</span><span class='rparen'>)</span>
1066
- <span class='ivar'>@redirections</span> <span class='op'>&lt;&lt;</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_stream'>stream</span><span class='rbrace'>}</span><span class='tstring_content'>&lt;</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_path'>path</span><span class='rbrace'>}</span><span class='tstring_end'>&quot;</span></span>
1067
- <span class='kw'>end</span></pre>
1068
- </td>
1069
- </tr>
1070
- </table>
1071
- </div>
1072
-
1073
- <div class="method_details ">
1074
- <p class="signature " id="redirect_stderr-instance_method">
1075
-
1076
- - (<tt>Object</tt>) <strong>redirect_stderr</strong>(path)
1077
-
1078
-
1079
-
1080
- </p><table class="source_code">
1081
- <tr>
1082
- <td>
1083
- <pre class="lines">
1084
-
1085
-
1086
- 78
1087
- 79
1088
- 80</pre>
1089
- </td>
1090
- <td>
1091
- <pre class="code"><span class="info file"># File 'lib/mattock/command-line.rb', line 78</span>
1092
-
1093
- <span class='kw'>def</span> <span class='id identifier rubyid_redirect_stderr'>redirect_stderr</span><span class='lparen'>(</span><span class='id identifier rubyid_path'>path</span><span class='rparen'>)</span>
1094
- <span class='id identifier rubyid_redirect_to'>redirect_to</span><span class='lparen'>(</span><span class='int'>2</span><span class='comma'>,</span> <span class='id identifier rubyid_path'>path</span><span class='rparen'>)</span>
1095
- <span class='kw'>end</span></pre>
1096
- </td>
1097
- </tr>
1098
- </table>
1099
- </div>
1100
-
1101
- <div class="method_details ">
1102
- <p class="signature " id="redirect_stdin-instance_method">
1103
-
1104
- - (<tt>Object</tt>) <strong>redirect_stdin</strong>(path)
1105
-
1106
-
1107
-
1108
- </p><table class="source_code">
1109
- <tr>
1110
- <td>
1111
- <pre class="lines">
1112
-
1113
-
1114
- 82
1115
- 83
1116
- 84</pre>
1117
- </td>
1118
- <td>
1119
- <pre class="code"><span class="info file"># File 'lib/mattock/command-line.rb', line 82</span>
1120
-
1121
- <span class='kw'>def</span> <span class='id identifier rubyid_redirect_stdin'>redirect_stdin</span><span class='lparen'>(</span><span class='id identifier rubyid_path'>path</span><span class='rparen'>)</span>
1122
- <span class='id identifier rubyid_redirect_from'>redirect_from</span><span class='lparen'>(</span><span class='id identifier rubyid_path'>path</span><span class='comma'>,</span> <span class='int'>0</span><span class='rparen'>)</span>
1123
- <span class='kw'>end</span></pre>
1124
- </td>
1125
- </tr>
1126
- </table>
1127
- </div>
1128
-
1129
- <div class="method_details ">
1130
- <p class="signature " id="redirect_stdout-instance_method">
1131
-
1132
- - (<tt>Object</tt>) <strong>redirect_stdout</strong>(path)
1133
-
1134
-
1135
-
1136
- </p><table class="source_code">
1137
- <tr>
1138
- <td>
1139
- <pre class="lines">
1140
-
1141
-
1142
- 74
1143
- 75
1144
- 76</pre>
1145
- </td>
1146
- <td>
1147
- <pre class="code"><span class="info file"># File 'lib/mattock/command-line.rb', line 74</span>
1148
-
1149
- <span class='kw'>def</span> <span class='id identifier rubyid_redirect_stdout'>redirect_stdout</span><span class='lparen'>(</span><span class='id identifier rubyid_path'>path</span><span class='rparen'>)</span>
1150
- <span class='id identifier rubyid_redirect_to'>redirect_to</span><span class='lparen'>(</span><span class='int'>1</span><span class='comma'>,</span> <span class='id identifier rubyid_path'>path</span><span class='rparen'>)</span>
1151
- <span class='kw'>end</span></pre>
1152
- </td>
1153
- </tr>
1154
- </table>
1155
- </div>
1156
-
1157
- <div class="method_details ">
1158
- <p class="signature " id="redirect_to-instance_method">
1159
-
1160
- - (<tt>Object</tt>) <strong>redirect_to</strong>(stream, path)
1161
-
1162
-
1163
-
1164
- </p><table class="source_code">
1165
- <tr>
1166
- <td>
1167
- <pre class="lines">
1168
-
1169
-
1170
- 62
1171
- 63
1172
- 64</pre>
1173
- </td>
1174
- <td>
1175
- <pre class="code"><span class="info file"># File 'lib/mattock/command-line.rb', line 62</span>
1176
-
1177
- <span class='kw'>def</span> <span class='id identifier rubyid_redirect_to'>redirect_to</span><span class='lparen'>(</span><span class='id identifier rubyid_stream'>stream</span><span class='comma'>,</span> <span class='id identifier rubyid_path'>path</span><span class='rparen'>)</span>
1178
- <span class='ivar'>@redirections</span> <span class='op'>&lt;&lt;</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_stream'>stream</span><span class='rbrace'>}</span><span class='tstring_content'>&gt;</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_path'>path</span><span class='rbrace'>}</span><span class='tstring_end'>&quot;</span></span>
1179
- <span class='kw'>end</span></pre>
1180
- </td>
1181
- </tr>
1182
- </table>
1183
- </div>
1184
-
1185
- <div class="method_details ">
1186
- <p class="signature " id="run-instance_method">
1187
-
1188
- - (<tt>Object</tt>) <strong>run</strong>
1189
-
1190
-
1191
-
1192
- </p><table class="source_code">
1193
- <tr>
1194
- <td>
1195
- <pre class="lines">
1196
-
1197
-
1198
- 95
1199
- 96
1200
- 97
1201
- 98
1202
- 99
1203
- 100
1204
- 101
1205
- 102</pre>
1206
- </td>
1207
- <td>
1208
- <pre class="code"><span class="info file"># File 'lib/mattock/command-line.rb', line 95</span>
1209
-
1210
- <span class='kw'>def</span> <span class='id identifier rubyid_run'>run</span>
1211
- <span class='id identifier rubyid_print'>print</span> <span class='id identifier rubyid_command'>command</span> <span class='op'>+</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'> </span><span class='tstring_end'>&quot;</span></span> <span class='kw'>if</span> <span class='id identifier rubyid_verbose'>verbose</span>
1212
- <span class='id identifier rubyid_result'>result</span> <span class='op'>=</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_class'>class</span><span class='period'>.</span><span class='id identifier rubyid_execute'>execute</span><span class='lparen'>(</span><span class='id identifier rubyid_command'>command</span><span class='rparen'>)</span>
1213
- <span class='id identifier rubyid_print'>print</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>=&gt; </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_result'>result</span><span class='period'>.</span><span class='id identifier rubyid_exit_code'>exit_code</span><span class='rbrace'>}</span><span class='tstring_end'>&quot;</span></span> <span class='kw'>if</span> <span class='id identifier rubyid_verbose'>verbose</span>
1214
- <span class='kw'>return</span> <span class='id identifier rubyid_result'>result</span>
1215
- <span class='kw'>ensure</span>
1216
- <span class='id identifier rubyid_puts'>puts</span> <span class='kw'>if</span> <span class='id identifier rubyid_verbose'>verbose</span>
1217
- <span class='kw'>end</span></pre>
1218
- </td>
1219
- </tr>
1220
- </table>
1221
- </div>
1222
-
1223
- <div class="method_details ">
1224
- <p class="signature " id="succeeds?-instance_method">
1225
-
1226
- - (<tt>Boolean</tt>) <strong>succeeds?</strong>
1227
-
1228
-
1229
-
1230
- </p><div class="docstring">
1231
- <div class="discussion">
1232
-
1233
-
1234
- </div>
1235
- </div>
1236
- <div class="tags">
1237
-
1238
- <h3>Returns:</h3>
1239
- <ul class="return">
1240
-
1241
- <li>
1242
-
1243
-
1244
- <span class='type'>(<tt>Boolean</tt>)</span>
1245
-
1246
-
1247
-
1248
- </li>
1249
-
1250
- </ul>
1251
-
1252
- </div><table class="source_code">
1253
- <tr>
1254
- <td>
1255
- <pre class="lines">
1256
-
1257
-
1258
- 104
1259
- 105
1260
- 106</pre>
1261
- </td>
1262
- <td>
1263
- <pre class="code"><span class="info file"># File 'lib/mattock/command-line.rb', line 104</span>
1264
-
1265
- <span class='kw'>def</span> <span class='id identifier rubyid_succeeds?'>succeeds?</span>
1266
- <span class='id identifier rubyid_run'>run</span><span class='period'>.</span><span class='id identifier rubyid_succeeded?'>succeeded?</span>
1267
- <span class='kw'>end</span></pre>
1268
- </td>
1269
- </tr>
1270
- </table>
1271
- </div>
1272
-
1273
- <div class="method_details ">
1274
- <p class="signature " id="verbose-instance_method">
1275
-
1276
- - (<tt>Object</tt>) <strong>verbose</strong>
1277
-
1278
-
1279
-
1280
- </p><table class="source_code">
1281
- <tr>
1282
- <td>
1283
- <pre class="lines">
1284
-
1285
-
1286
- 50
1287
- 51
1288
- 52</pre>
1289
- </td>
1290
- <td>
1291
- <pre class="code"><span class="info file"># File 'lib/mattock/command-line.rb', line 50</span>
1292
-
1293
- <span class='kw'>def</span> <span class='id identifier rubyid_verbose'>verbose</span>
1294
- <span class='const'>Rake</span><span class='period'>.</span><span class='id identifier rubyid_verbose'>verbose</span> <span class='op'>&amp;&amp;</span> <span class='const'>Rake</span><span class='period'>.</span><span class='id identifier rubyid_verbose'>verbose</span> <span class='op'>!=</span> <span class='const'>Rake</span><span class='op'>::</span><span class='const'>FileUtilsExt</span><span class='op'>::</span><span class='const'>DEFAULT</span>
1295
- <span class='kw'>end</span></pre>
1296
- </td>
1297
- </tr>
1298
- </table>
1299
- </div>
1300
-
1301
- </div>
1302
-
1303
- </div>
1304
-
1305
- <div id="footer">
1306
- Generated on Tue Mar 6 02:47:29 2012 by
1307
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1308
- 0.7.5 (ruby-1.9.2).
1309
- </div>
1310
-
1311
- </body>
1312
- </html>