action_command 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +106 -1
- data/Rakefile +2 -0
- data/doc/ActionCommand/Executable.html +452 -29
- data/doc/ActionCommand/InputOutput.html +559 -158
- data/doc/ActionCommand/Result.html +321 -32
- data/doc/ActionCommand.html +319 -65
- data/doc/_index.html +16 -1
- data/doc/class_list.html +1 -1
- data/doc/file.README.html +101 -2
- data/doc/index.html +101 -2
- data/doc/method_list.html +118 -16
- data/doc/top-level-namespace.html +1 -1
- data/lib/action_command/executable.rb +75 -0
- data/lib/action_command/input_output.rb +149 -0
- data/lib/action_command/result.rb +76 -0
- data/lib/action_command/utils.rb +21 -0
- data/lib/action_command/version.rb +1 -1
- data/lib/action_command.rb +35 -186
- metadata +6 -2
data/doc/ActionCommand.html
CHANGED
@@ -80,7 +80,7 @@
|
|
80
80
|
|
81
81
|
<dt class="r1 last">Defined in:</dt>
|
82
82
|
<dd class="r1 last">lib/action_command.rb<span class="defines">,<br />
|
83
|
-
lib/action_command/version.rb</span>
|
83
|
+
lib/action_command/utils.rb,<br /> lib/action_command/result.rb,<br /> lib/action_command/version.rb,<br /> lib/action_command/executable.rb,<br /> lib/action_command/input_output.rb</span>
|
84
84
|
</dd>
|
85
85
|
|
86
86
|
</dl>
|
@@ -104,7 +104,7 @@ run them using the ActionCommand.execute_… variants.</p>
|
|
104
104
|
|
105
105
|
|
106
106
|
|
107
|
-
<strong class="classes">Classes:</strong> <span class='object_link'><a href="ActionCommand/Executable.html" title="ActionCommand::Executable (class)">Executable</a></span>, <span class='object_link'><a href="ActionCommand/InputOutput.html" title="ActionCommand::InputOutput (class)">InputOutput</a></span>, <span class='object_link'><a href="ActionCommand/Result.html" title="ActionCommand::Result (class)">Result</a></span>
|
107
|
+
<strong class="classes">Classes:</strong> <span class='object_link'><a href="ActionCommand/Executable.html" title="ActionCommand::Executable (class)">Executable</a></span>, <span class='object_link'><a href="ActionCommand/InputOutput.html" title="ActionCommand::InputOutput (class)">InputOutput</a></span>, <span class='object_link'><a href="ActionCommand/Result.html" title="ActionCommand::Result (class)">Result</a></span>, <span class='object_link'><a href="ActionCommand/Utils.html" title="ActionCommand::Utils (class)">Utils</a></span>
|
108
108
|
|
109
109
|
|
110
110
|
</p>
|
@@ -162,6 +162,22 @@ controller, etc)</p>
|
|
162
162
|
</dt>
|
163
163
|
<dd><pre class="code"><span class='symbol'>:rails</span></pre></dd>
|
164
164
|
|
165
|
+
<dt id="OPTIONAL-constant" class="">OPTIONAL =
|
166
|
+
<div class="docstring">
|
167
|
+
<div class="discussion">
|
168
|
+
|
169
|
+
<p>Used to create an optional parameter in describe_io</p>
|
170
|
+
|
171
|
+
|
172
|
+
</div>
|
173
|
+
</div>
|
174
|
+
<div class="tags">
|
175
|
+
|
176
|
+
|
177
|
+
</div>
|
178
|
+
</dt>
|
179
|
+
<dd><pre class="code"><span class='lbrace'>{</span> <span class='label'>optional:</span> <span class='kw'>true</span> <span class='rbrace'>}</span><span class='period'>.</span><span class='id identifier rubyid_freeze'>freeze</span></pre></dd>
|
180
|
+
|
165
181
|
<dt id="VERSION-constant" class="">VERSION =
|
166
182
|
<div class="docstring">
|
167
183
|
<div class="discussion">
|
@@ -296,6 +312,30 @@ controller, etc)</p>
|
|
296
312
|
<p>Create a global description of the inputs and outputs of a command.</p>
|
297
313
|
</div></span>
|
298
314
|
|
315
|
+
</li>
|
316
|
+
|
317
|
+
|
318
|
+
<li class="public ">
|
319
|
+
<span class="summary_signature">
|
320
|
+
|
321
|
+
<a href="#execute_child-class_method" title="execute_child (class method)">+ (ActionCommand::Result) <strong>execute_child</strong>(parent, cls, result, result_key, params = {}) </a>
|
322
|
+
|
323
|
+
|
324
|
+
|
325
|
+
</span>
|
326
|
+
|
327
|
+
|
328
|
+
|
329
|
+
|
330
|
+
|
331
|
+
|
332
|
+
|
333
|
+
|
334
|
+
|
335
|
+
<span class="summary_desc"><div class='inline'>
|
336
|
+
<p>Execute a child command, placing its results under the specified subkey.</p>
|
337
|
+
</div></span>
|
338
|
+
|
299
339
|
</li>
|
300
340
|
|
301
341
|
|
@@ -326,7 +366,7 @@ controller, etc)</p>
|
|
326
366
|
<li class="public ">
|
327
367
|
<span class="summary_signature">
|
328
368
|
|
329
|
-
<a href="#execute_rake-class_method" title="execute_rake (class method)">+ (ActionCommand::Result) <strong>execute_rake</strong>(cls, args
|
369
|
+
<a href="#execute_rake-class_method" title="execute_rake (class method)">+ (ActionCommand::Result) <strong>execute_rake</strong>(cls, args) </a>
|
330
370
|
|
331
371
|
|
332
372
|
|
@@ -368,6 +408,30 @@ controller, etc)</p>
|
|
368
408
|
<p>Execute a command at the root level of a testing context.</p>
|
369
409
|
</div></span>
|
370
410
|
|
411
|
+
</li>
|
412
|
+
|
413
|
+
|
414
|
+
<li class="public ">
|
415
|
+
<span class="summary_signature">
|
416
|
+
|
417
|
+
<a href="#install_rake-class_method" title="install_rake (class method)">+ (Object) <strong>install_rake</strong>(rake, sym, cls, deps) </a>
|
418
|
+
|
419
|
+
|
420
|
+
|
421
|
+
</span>
|
422
|
+
|
423
|
+
|
424
|
+
|
425
|
+
|
426
|
+
|
427
|
+
|
428
|
+
|
429
|
+
|
430
|
+
|
431
|
+
<span class="summary_desc"><div class='inline'>
|
432
|
+
<p>Install a command as a rake task in a.</p>
|
433
|
+
</div></span>
|
434
|
+
|
371
435
|
</li>
|
372
436
|
|
373
437
|
|
@@ -443,20 +507,20 @@ controller, etc)</p>
|
|
443
507
|
<pre class="lines">
|
444
508
|
|
445
509
|
|
446
|
-
|
447
|
-
|
448
|
-
|
449
|
-
|
450
|
-
|
451
|
-
|
452
|
-
|
453
|
-
|
454
|
-
|
455
|
-
|
456
|
-
|
510
|
+
115
|
511
|
+
116
|
512
|
+
117
|
513
|
+
118
|
514
|
+
119
|
515
|
+
120
|
516
|
+
121
|
517
|
+
122
|
518
|
+
123
|
519
|
+
124
|
520
|
+
125</pre>
|
457
521
|
</td>
|
458
522
|
<td>
|
459
|
-
<pre class="code"><span class="info file"># File 'lib/action_command.rb', line
|
523
|
+
<pre class="code"><span class="info file"># File 'lib/action_command.rb', line 115</span>
|
460
524
|
|
461
525
|
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_create_and_execute'>create_and_execute</span><span class='lparen'>(</span><span class='id identifier rubyid_cls'>cls</span><span class='comma'>,</span> <span class='id identifier rubyid_params'>params</span><span class='comma'>,</span> <span class='id identifier rubyid_parent'>parent</span><span class='comma'>,</span> <span class='id identifier rubyid_result'>result</span><span class='rparen'>)</span>
|
462
526
|
<span class='id identifier rubyid_raise'>raise</span> <span class='const'>ArgumentError</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>Expected params to be a Hash</span><span class='tstring_end'>'</span></span> <span class='kw'>unless</span> <span class='id identifier rubyid_params'>params</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span> <span class='const'>Hash</span>
|
@@ -518,12 +582,12 @@ controller, etc)</p>
|
|
518
582
|
<pre class="lines">
|
519
583
|
|
520
584
|
|
521
|
-
|
522
|
-
|
523
|
-
|
585
|
+
34
|
586
|
+
35
|
587
|
+
36</pre>
|
524
588
|
</td>
|
525
589
|
<td>
|
526
|
-
<pre class="code"><span class="info file"># File 'lib/action_command.rb', line
|
590
|
+
<pre class="code"><span class="info file"># File 'lib/action_command.rb', line 34</span>
|
527
591
|
|
528
592
|
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_create_result'>create_result</span>
|
529
593
|
<span class='kw'>return</span> <span class='const'>ActionCommand</span><span class='op'>::</span><span class='const'>Result</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='cvar'>@@logger</span><span class='rparen'>)</span>
|
@@ -561,19 +625,19 @@ self.describe_io method</p>
|
|
561
625
|
<pre class="lines">
|
562
626
|
|
563
627
|
|
564
|
-
|
565
|
-
|
566
|
-
|
567
|
-
|
568
|
-
|
569
|
-
|
570
|
-
|
571
|
-
|
572
|
-
|
573
|
-
|
628
|
+
103
|
629
|
+
104
|
630
|
+
105
|
631
|
+
106
|
632
|
+
107
|
633
|
+
108
|
634
|
+
109
|
635
|
+
110
|
636
|
+
111
|
637
|
+
112</pre>
|
574
638
|
</td>
|
575
639
|
<td>
|
576
|
-
<pre class="code"><span class="info file"># File 'lib/action_command.rb', line
|
640
|
+
<pre class="code"><span class="info file"># File 'lib/action_command.rb', line 103</span>
|
577
641
|
|
578
642
|
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_describe_io'>describe_io</span><span class='lparen'>(</span><span class='id identifier rubyid_cmd_cls'>cmd_cls</span><span class='comma'>,</span> <span class='id identifier rubyid_desc'>desc</span><span class='rparen'>)</span>
|
579
643
|
<span class='id identifier rubyid_name'>name</span> <span class='op'>=</span> <span class='id identifier rubyid_cmd_cls'>cmd_cls</span><span class='period'>.</span><span class='id identifier rubyid_name'>name</span>
|
@@ -588,6 +652,151 @@ self.describe_io method</p>
|
|
588
652
|
</td>
|
589
653
|
</tr>
|
590
654
|
</table>
|
655
|
+
</div>
|
656
|
+
|
657
|
+
<div class="method_details ">
|
658
|
+
<h3 class="signature " id="execute_child-class_method">
|
659
|
+
|
660
|
+
+ (<tt><span class='object_link'><a href="ActionCommand/Result.html" title="ActionCommand::Result (class)">ActionCommand::Result</a></span></tt>) <strong>execute_child</strong>(parent, cls, result, result_key, params = {})
|
661
|
+
|
662
|
+
|
663
|
+
|
664
|
+
|
665
|
+
|
666
|
+
</h3><div class="docstring">
|
667
|
+
<div class="discussion">
|
668
|
+
|
669
|
+
<p>Execute a child command, placing its results under the specified subkey</p>
|
670
|
+
|
671
|
+
|
672
|
+
</div>
|
673
|
+
</div>
|
674
|
+
<div class="tags">
|
675
|
+
<p class="tag_title">Parameters:</p>
|
676
|
+
<ul class="param">
|
677
|
+
|
678
|
+
<li>
|
679
|
+
|
680
|
+
<span class='name'>parent</span>
|
681
|
+
|
682
|
+
|
683
|
+
<span class='type'>(<tt><span class='object_link'><a href="ActionCommand/Executable.html" title="ActionCommand::Executable (class)">ActionCommand::Executable</a></span></tt>)</span>
|
684
|
+
|
685
|
+
|
686
|
+
|
687
|
+
—
|
688
|
+
<div class='inline'>
|
689
|
+
<p>An instance of the parent command</p>
|
690
|
+
</div>
|
691
|
+
|
692
|
+
</li>
|
693
|
+
|
694
|
+
<li>
|
695
|
+
|
696
|
+
<span class='name'>cls</span>
|
697
|
+
|
698
|
+
|
699
|
+
<span class='type'>(<tt><span class='object_link'><a href="ActionCommand/Executable.html" title="ActionCommand::Executable (class)">ActionCommand::Executable</a></span></tt>)</span>
|
700
|
+
|
701
|
+
|
702
|
+
|
703
|
+
—
|
704
|
+
<div class='inline'>
|
705
|
+
<p>The class of an Executable subclass</p>
|
706
|
+
</div>
|
707
|
+
|
708
|
+
</li>
|
709
|
+
|
710
|
+
<li>
|
711
|
+
|
712
|
+
<span class='name'>result</span>
|
713
|
+
|
714
|
+
|
715
|
+
<span class='type'>(<tt><span class='object_link'><a href="ActionCommand/Result.html" title="ActionCommand::Result (class)">ActionCommand::Result</a></span></tt>)</span>
|
716
|
+
|
717
|
+
|
718
|
+
|
719
|
+
—
|
720
|
+
<div class='inline'>
|
721
|
+
<p>The result to populate</p>
|
722
|
+
</div>
|
723
|
+
|
724
|
+
</li>
|
725
|
+
|
726
|
+
<li>
|
727
|
+
|
728
|
+
<span class='name'>result_key</span>
|
729
|
+
|
730
|
+
|
731
|
+
<span class='type'>(<tt>Symbo</tt>)</span>
|
732
|
+
|
733
|
+
|
734
|
+
|
735
|
+
—
|
736
|
+
<div class='inline'>
|
737
|
+
<p>a key to place the results under, or nil if you want the result stored
|
738
|
+
directly on the current results object.</p>
|
739
|
+
</div>
|
740
|
+
|
741
|
+
</li>
|
742
|
+
|
743
|
+
<li>
|
744
|
+
|
745
|
+
<span class='name'>params</span>
|
746
|
+
|
747
|
+
|
748
|
+
<span class='type'>(<tt>Hash</tt>)</span>
|
749
|
+
|
750
|
+
|
751
|
+
<em class="default">(defaults to: <tt>{}</tt>)</em>
|
752
|
+
|
753
|
+
|
754
|
+
—
|
755
|
+
<div class='inline'>
|
756
|
+
<p>parameters used by the command.</p>
|
757
|
+
</div>
|
758
|
+
|
759
|
+
</li>
|
760
|
+
|
761
|
+
</ul>
|
762
|
+
|
763
|
+
<p class="tag_title">Returns:</p>
|
764
|
+
<ul class="return">
|
765
|
+
|
766
|
+
<li>
|
767
|
+
|
768
|
+
|
769
|
+
<span class='type'>(<tt><span class='object_link'><a href="ActionCommand/Result.html" title="ActionCommand::Result (class)">ActionCommand::Result</a></span></tt>)</span>
|
770
|
+
|
771
|
+
|
772
|
+
|
773
|
+
</li>
|
774
|
+
|
775
|
+
</ul>
|
776
|
+
|
777
|
+
</div><table class="source_code">
|
778
|
+
<tr>
|
779
|
+
<td>
|
780
|
+
<pre class="lines">
|
781
|
+
|
782
|
+
|
783
|
+
94
|
784
|
+
95
|
785
|
+
96
|
786
|
+
97
|
787
|
+
98</pre>
|
788
|
+
</td>
|
789
|
+
<td>
|
790
|
+
<pre class="code"><span class="info file"># File 'lib/action_command.rb', line 94</span>
|
791
|
+
|
792
|
+
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_execute_child'>execute_child</span><span class='lparen'>(</span><span class='id identifier rubyid_parent'>parent</span><span class='comma'>,</span> <span class='id identifier rubyid_cls'>cls</span><span class='comma'>,</span> <span class='id identifier rubyid_result'>result</span><span class='comma'>,</span> <span class='id identifier rubyid_result_key'>result_key</span><span class='comma'>,</span> <span class='id identifier rubyid_params'>params</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span>
|
793
|
+
<span class='id identifier rubyid_result'>result</span><span class='period'>.</span><span class='id identifier rubyid_push'>push</span><span class='lparen'>(</span><span class='id identifier rubyid_result_key'>result_key</span><span class='rparen'>)</span>
|
794
|
+
<span class='const'>ActionCommand</span><span class='period'>.</span><span class='id identifier rubyid_create_and_execute'>create_and_execute</span><span class='lparen'>(</span><span class='id identifier rubyid_cls'>cls</span><span class='comma'>,</span> <span class='id identifier rubyid_params'>params</span><span class='comma'>,</span> <span class='id identifier rubyid_parent'>parent</span><span class='comma'>,</span> <span class='id identifier rubyid_result'>result</span><span class='rparen'>)</span>
|
795
|
+
<span class='id identifier rubyid_result'>result</span><span class='period'>.</span><span class='id identifier rubyid_pop'>pop</span><span class='lparen'>(</span><span class='id identifier rubyid_result_key'>result_key</span><span class='rparen'>)</span>
|
796
|
+
<span class='kw'>end</span></pre>
|
797
|
+
</td>
|
798
|
+
</tr>
|
799
|
+
</table>
|
591
800
|
</div>
|
592
801
|
|
593
802
|
<div class="method_details ">
|
@@ -667,13 +876,13 @@ self.describe_io method</p>
|
|
667
876
|
<pre class="lines">
|
668
877
|
|
669
878
|
|
670
|
-
|
671
|
-
|
672
|
-
|
673
|
-
|
879
|
+
81
|
880
|
+
82
|
881
|
+
83
|
882
|
+
84</pre>
|
674
883
|
</td>
|
675
884
|
<td>
|
676
|
-
<pre class="code"><span class="info file"># File 'lib/action_command.rb', line
|
885
|
+
<pre class="code"><span class="info file"># File 'lib/action_command.rb', line 81</span>
|
677
886
|
|
678
887
|
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_execute_rails'>execute_rails</span><span class='lparen'>(</span><span class='id identifier rubyid_cls'>cls</span><span class='comma'>,</span> <span class='id identifier rubyid_params'>params</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span>
|
679
888
|
<span class='id identifier rubyid_result'>result</span> <span class='op'>=</span> <span class='id identifier rubyid_create_result'>create_result</span>
|
@@ -687,7 +896,7 @@ self.describe_io method</p>
|
|
687
896
|
<div class="method_details ">
|
688
897
|
<h3 class="signature " id="execute_rake-class_method">
|
689
898
|
|
690
|
-
+ (<tt><span class='object_link'><a href="ActionCommand/Result.html" title="ActionCommand::Result (class)">ActionCommand::Result</a></span></tt>) <strong>execute_rake</strong>(cls, args
|
899
|
+
+ (<tt><span class='object_link'><a href="ActionCommand/Result.html" title="ActionCommand::Result (class)">ActionCommand::Result</a></span></tt>) <strong>execute_rake</strong>(cls, args)
|
691
900
|
|
692
901
|
|
693
902
|
|
@@ -726,10 +935,8 @@ self.describe_io method</p>
|
|
726
935
|
<span class='name'>args</span>
|
727
936
|
|
728
937
|
|
729
|
-
<span class='type'
|
730
|
-
|
938
|
+
<span class='type'></span>
|
731
939
|
|
732
|
-
<em class="default">(defaults to: <tt>{}</tt>)</em>
|
733
940
|
|
734
941
|
|
735
942
|
—
|
@@ -761,33 +968,33 @@ self.describe_io method</p>
|
|
761
968
|
<pre class="lines">
|
762
969
|
|
763
970
|
|
764
|
-
47
|
765
|
-
48
|
766
|
-
49
|
767
|
-
50
|
768
|
-
51
|
769
|
-
52
|
770
|
-
53
|
771
|
-
54
|
772
|
-
55
|
773
971
|
56
|
774
972
|
57
|
775
|
-
58
|
973
|
+
58
|
974
|
+
59
|
975
|
+
60
|
976
|
+
61
|
977
|
+
62
|
978
|
+
63
|
979
|
+
64
|
980
|
+
65
|
981
|
+
66
|
982
|
+
67</pre>
|
776
983
|
</td>
|
777
984
|
<td>
|
778
|
-
<pre class="code"><span class="info file"># File 'lib/action_command.rb', line
|
985
|
+
<pre class="code"><span class="info file"># File 'lib/action_command.rb', line 56</span>
|
779
986
|
|
780
|
-
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_execute_rake'>execute_rake</span><span class='lparen'>(</span><span class='id identifier rubyid_cls'>cls</span><span class='comma'>,</span> <span class='id identifier rubyid_args'>args</span
|
987
|
+
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_execute_rake'>execute_rake</span><span class='lparen'>(</span><span class='id identifier rubyid_cls'>cls</span><span class='comma'>,</span> <span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span>
|
781
988
|
<span class='id identifier rubyid_io'>io</span> <span class='op'>=</span> <span class='id identifier rubyid_cls'>cls</span><span class='period'>.</span><span class='id identifier rubyid_describe_io'>describe_io</span>
|
782
989
|
<span class='kw'>if</span> <span class='id identifier rubyid_io'>io</span><span class='period'>.</span><span class='id identifier rubyid_help?'>help?</span> <span class='id identifier rubyid_args'>args</span>
|
783
990
|
<span class='id identifier rubyid_io'>io</span><span class='period'>.</span><span class='id identifier rubyid_show_help'>show_help</span>
|
784
991
|
<span class='kw'>return</span>
|
785
992
|
<span class='kw'>end</span>
|
786
|
-
|
787
|
-
<span class='kw'>return</span> <span class='kw'>unless</span> <span class='id identifier rubyid_io'>io</span><span class='period'>.</span><span class='id identifier rubyid_validate'>validate</span><span class='lparen'>(</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span>
|
788
993
|
|
789
994
|
<span class='id identifier rubyid_result'>result</span> <span class='op'>=</span> <span class='id identifier rubyid_create_result'>create_result</span>
|
790
|
-
<span class='
|
995
|
+
<span class='const'>ActionCommand</span><span class='period'>.</span><span class='id identifier rubyid_create_and_execute'>create_and_execute</span><span class='lparen'>(</span><span class='id identifier rubyid_cls'>cls</span><span class='comma'>,</span> <span class='id identifier rubyid_io'>io</span><span class='period'>.</span><span class='id identifier rubyid_rake_input'>rake_input</span><span class='lparen'>(</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span><span class='comma'>,</span> <span class='const'>CONTEXT_RAKE</span><span class='comma'>,</span> <span class='id identifier rubyid_result'>result</span><span class='rparen'>)</span>
|
996
|
+
<span class='id identifier rubyid_io'>io</span><span class='period'>.</span><span class='id identifier rubyid_print_output'>print_output</span><span class='lparen'>(</span><span class='id identifier rubyid_result'>result</span><span class='rparen'>)</span>
|
997
|
+
<span class='kw'>return</span> <span class='id identifier rubyid_result'>result</span>
|
791
998
|
<span class='kw'>end</span></pre>
|
792
999
|
</td>
|
793
1000
|
</tr>
|
@@ -888,14 +1095,14 @@ validations. See <span class='object_link'><a href="ActionCommand/Executable.ht
|
|
888
1095
|
<pre class="lines">
|
889
1096
|
|
890
1097
|
|
891
|
-
|
892
|
-
|
893
|
-
|
894
|
-
|
895
|
-
|
1098
|
+
46
|
1099
|
+
47
|
1100
|
+
48
|
1101
|
+
49
|
1102
|
+
50</pre>
|
896
1103
|
</td>
|
897
1104
|
<td>
|
898
|
-
<pre class="code"><span class="info file"># File 'lib/action_command.rb', line
|
1105
|
+
<pre class="code"><span class="info file"># File 'lib/action_command.rb', line 46</span>
|
899
1106
|
|
900
1107
|
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_execute_test'>execute_test</span><span class='lparen'>(</span><span class='id identifier rubyid_rspec'>rspec</span><span class='comma'>,</span> <span class='id identifier rubyid_cls'>cls</span><span class='comma'>,</span> <span class='id identifier rubyid_params'>params</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span>
|
901
1108
|
<span class='id identifier rubyid_params'>params</span><span class='lbracket'>[</span><span class='symbol'>:test</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_rspec'>rspec</span>
|
@@ -905,6 +1112,53 @@ validations. See <span class='object_link'><a href="ActionCommand/Executable.ht
|
|
905
1112
|
</td>
|
906
1113
|
</tr>
|
907
1114
|
</table>
|
1115
|
+
</div>
|
1116
|
+
|
1117
|
+
<div class="method_details ">
|
1118
|
+
<h3 class="signature " id="install_rake-class_method">
|
1119
|
+
|
1120
|
+
+ (<tt>Object</tt>) <strong>install_rake</strong>(rake, sym, cls, deps)
|
1121
|
+
|
1122
|
+
|
1123
|
+
|
1124
|
+
|
1125
|
+
|
1126
|
+
</h3><div class="docstring">
|
1127
|
+
<div class="discussion">
|
1128
|
+
|
1129
|
+
<p>Install a command as a rake task in a</p>
|
1130
|
+
|
1131
|
+
|
1132
|
+
</div>
|
1133
|
+
</div>
|
1134
|
+
<div class="tags">
|
1135
|
+
|
1136
|
+
|
1137
|
+
</div><table class="source_code">
|
1138
|
+
<tr>
|
1139
|
+
<td>
|
1140
|
+
<pre class="lines">
|
1141
|
+
|
1142
|
+
|
1143
|
+
70
|
1144
|
+
71
|
1145
|
+
72
|
1146
|
+
73
|
1147
|
+
74
|
1148
|
+
75</pre>
|
1149
|
+
</td>
|
1150
|
+
<td>
|
1151
|
+
<pre class="code"><span class="info file"># File 'lib/action_command.rb', line 70</span>
|
1152
|
+
|
1153
|
+
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_install_rake'>install_rake</span><span class='lparen'>(</span><span class='id identifier rubyid_rake'>rake</span><span class='comma'>,</span> <span class='id identifier rubyid_sym'>sym</span><span class='comma'>,</span> <span class='id identifier rubyid_cls'>cls</span><span class='comma'>,</span> <span class='id identifier rubyid_deps'>deps</span><span class='rparen'>)</span>
|
1154
|
+
<span class='id identifier rubyid_rake'>rake</span><span class='period'>.</span><span class='id identifier rubyid_send'>send</span><span class='lparen'>(</span><span class='symbol'>:desc</span><span class='comma'>,</span> <span class='id identifier rubyid_cls'>cls</span><span class='period'>.</span><span class='id identifier rubyid_describe_io'>describe_io</span><span class='period'>.</span><span class='id identifier rubyid_desc'>desc</span><span class='rparen'>)</span>
|
1155
|
+
<span class='id identifier rubyid_rake'>rake</span><span class='period'>.</span><span class='id identifier rubyid_send'>send</span><span class='lparen'>(</span><span class='symbol'>:task</span><span class='comma'>,</span> <span class='id identifier rubyid_sym'>sym</span><span class='comma'>,</span> <span class='id identifier rubyid_cls'>cls</span><span class='period'>.</span><span class='id identifier rubyid_describe_io'>describe_io</span><span class='period'>.</span><span class='id identifier rubyid_keys'>keys</span> <span class='op'>=></span> <span class='id identifier rubyid_deps'>deps</span><span class='rparen'>)</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid__t'>_t</span><span class='comma'>,</span> <span class='id identifier rubyid_args'>args</span><span class='op'>|</span>
|
1156
|
+
<span class='const'>ActionCommand</span><span class='period'>.</span><span class='id identifier rubyid_execute_rake'>execute_rake</span><span class='lparen'>(</span><span class='id identifier rubyid_cls'>cls</span><span class='comma'>,</span> <span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span>
|
1157
|
+
<span class='kw'>end</span>
|
1158
|
+
<span class='kw'>end</span></pre>
|
1159
|
+
</td>
|
1160
|
+
</tr>
|
1161
|
+
</table>
|
908
1162
|
</div>
|
909
1163
|
|
910
1164
|
<div class="method_details ">
|
@@ -953,12 +1207,12 @@ validations. See <span class='object_link'><a href="ActionCommand/Executable.ht
|
|
953
1207
|
<pre class="lines">
|
954
1208
|
|
955
1209
|
|
956
|
-
|
957
|
-
|
958
|
-
|
1210
|
+
29
|
1211
|
+
30
|
1212
|
+
31</pre>
|
959
1213
|
</td>
|
960
1214
|
<td>
|
961
|
-
<pre class="code"><span class="info file"># File 'lib/action_command.rb', line
|
1215
|
+
<pre class="code"><span class="info file"># File 'lib/action_command.rb', line 29</span>
|
962
1216
|
|
963
1217
|
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_logger='>logger=</span><span class='lparen'>(</span><span class='id identifier rubyid_logger'>logger</span><span class='rparen'>)</span>
|
964
1218
|
<span class='cvar'>@@logger</span> <span class='op'>=</span> <span class='id identifier rubyid_logger'>logger</span> <span class='comment'># rubocop:disable Style/ClassVars
|
@@ -973,7 +1227,7 @@ validations. See <span class='object_link'><a href="ActionCommand/Executable.ht
|
|
973
1227
|
</div>
|
974
1228
|
|
975
1229
|
<div id="footer">
|
976
|
-
Generated on
|
1230
|
+
Generated on Thu Mar 3 16:34:07 2016 by
|
977
1231
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
978
1232
|
0.8.7.6 (ruby-2.2.3).
|
979
1233
|
</div>
|
data/doc/_index.html
CHANGED
@@ -137,6 +137,21 @@
|
|
137
137
|
</ul>
|
138
138
|
</ul>
|
139
139
|
|
140
|
+
|
141
|
+
<ul id="alpha_U" class="alpha">
|
142
|
+
<li class="letter">U</li>
|
143
|
+
<ul>
|
144
|
+
|
145
|
+
<li>
|
146
|
+
<span class='object_link'><a href="ActionCommand/Utils.html" title="ActionCommand::Utils (class)">Utils</a></span>
|
147
|
+
|
148
|
+
<small>(ActionCommand)</small>
|
149
|
+
|
150
|
+
</li>
|
151
|
+
|
152
|
+
</ul>
|
153
|
+
</ul>
|
154
|
+
|
140
155
|
</td>
|
141
156
|
</tr>
|
142
157
|
</table>
|
@@ -146,7 +161,7 @@
|
|
146
161
|
</div>
|
147
162
|
|
148
163
|
<div id="footer">
|
149
|
-
Generated on
|
164
|
+
Generated on Thu Mar 3 16:34:06 2016 by
|
150
165
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
151
166
|
0.8.7.6 (ruby-2.2.3).
|
152
167
|
</div>
|
data/doc/class_list.html
CHANGED
@@ -50,7 +50,7 @@
|
|
50
50
|
|
51
51
|
<ul id="full_list" class="class">
|
52
52
|
<li><span class='object_link'><a href="top-level-namespace.html" title="Top Level Namespace (root)">Top Level Namespace</a></span></li>
|
53
|
-
<li><a class='toggle'></a> <span class='object_link'><a href="ActionCommand.html" title="ActionCommand (module)">ActionCommand</a></span><small class='search_info'>Top Level Namespace</small></li><ul><li><span class='object_link'><a href="ActionCommand/Executable.html" title="ActionCommand::Executable (class)">Executable</a></span> < Object<small class='search_info'>ActionCommand</small></li><li><span class='object_link'><a href="ActionCommand/InputOutput.html" title="ActionCommand::InputOutput (class)">InputOutput</a></span> < Object<small class='search_info'>ActionCommand</small></li><li><span class='object_link'><a href="ActionCommand/Result.html" title="ActionCommand::Result (class)">Result</a></span> < Object<small class='search_info'>ActionCommand</small></li></ul>
|
53
|
+
<li><a class='toggle'></a> <span class='object_link'><a href="ActionCommand.html" title="ActionCommand (module)">ActionCommand</a></span><small class='search_info'>Top Level Namespace</small></li><ul><li><span class='object_link'><a href="ActionCommand/Executable.html" title="ActionCommand::Executable (class)">Executable</a></span> < Object<small class='search_info'>ActionCommand</small></li><li><span class='object_link'><a href="ActionCommand/InputOutput.html" title="ActionCommand::InputOutput (class)">InputOutput</a></span> < Object<small class='search_info'>ActionCommand</small></li><li><span class='object_link'><a href="ActionCommand/Result.html" title="ActionCommand::Result (class)">Result</a></span> < Object<small class='search_info'>ActionCommand</small></li><li><span class='object_link'><a href="ActionCommand/Utils.html" title="ActionCommand::Utils (class)">Utils</a></span> < Object<small class='search_info'>ActionCommand</small></li></ul>
|
54
54
|
|
55
55
|
</ul>
|
56
56
|
</div>
|