action_command 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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
| @@ -94,7 +94,7 @@ | |
| 94 94 |  | 
| 95 95 |  | 
| 96 96 | 
             
                <dt class="r2 last">Defined in:</dt>
         | 
| 97 | 
            -
                <dd class="r2 last">lib/action_command.rb</dd>
         | 
| 97 | 
            +
                <dd class="r2 last">lib/action_command/executable.rb</dd>
         | 
| 98 98 |  | 
| 99 99 | 
             
            </dl>
         | 
| 100 100 | 
             
            <div class="clear"></div>
         | 
| @@ -189,6 +189,30 @@ ActionCommand.execute_… to execute one.</p> | |
| 189 189 | 
             
                    <li class="public ">
         | 
| 190 190 | 
             
              <span class="summary_signature">
         | 
| 191 191 |  | 
| 192 | 
            +
                  <a href="#child_context%3F-instance_method" title="#child_context? (instance method)">- (Boolean) <strong>child_context?</strong> </a>
         | 
| 193 | 
            +
                
         | 
| 194 | 
            +
             | 
| 195 | 
            +
                
         | 
| 196 | 
            +
              </span>
         | 
| 197 | 
            +
              
         | 
| 198 | 
            +
              
         | 
| 199 | 
            +
              
         | 
| 200 | 
            +
              
         | 
| 201 | 
            +
              
         | 
| 202 | 
            +
              
         | 
| 203 | 
            +
              
         | 
| 204 | 
            +
             | 
| 205 | 
            +
              
         | 
| 206 | 
            +
                <span class="summary_desc"><div class='inline'>
         | 
| 207 | 
            +
            <p>True if this command is a child of another command.</p>
         | 
| 208 | 
            +
            </div></span>
         | 
| 209 | 
            +
              
         | 
| 210 | 
            +
            </li>
         | 
| 211 | 
            +
             | 
| 212 | 
            +
                  
         | 
| 213 | 
            +
                    <li class="public ">
         | 
| 214 | 
            +
              <span class="summary_signature">
         | 
| 215 | 
            +
                
         | 
| 192 216 | 
             
                  <a href="#execute-instance_method" title="#execute (instance method)">- (ActionCommand::Result) <strong>execute</strong>(result) </a>
         | 
| 193 217 |  | 
| 194 218 |  | 
| @@ -257,6 +281,102 @@ ActionCommand.execute_… to execute one.</p> | |
| 257 281 | 
             
            <p>Do not call new directly, instead use ActionCommand#execute_…</p>
         | 
| 258 282 | 
             
            </div></span>
         | 
| 259 283 |  | 
| 284 | 
            +
            </li>
         | 
| 285 | 
            +
             | 
| 286 | 
            +
                  
         | 
| 287 | 
            +
                    <li class="public ">
         | 
| 288 | 
            +
              <span class="summary_signature">
         | 
| 289 | 
            +
                
         | 
| 290 | 
            +
                  <a href="#rails_context%3F-instance_method" title="#rails_context? (instance method)">- (Boolean) <strong>rails_context?</strong> </a>
         | 
| 291 | 
            +
                
         | 
| 292 | 
            +
             | 
| 293 | 
            +
                
         | 
| 294 | 
            +
              </span>
         | 
| 295 | 
            +
              
         | 
| 296 | 
            +
              
         | 
| 297 | 
            +
              
         | 
| 298 | 
            +
              
         | 
| 299 | 
            +
              
         | 
| 300 | 
            +
              
         | 
| 301 | 
            +
              
         | 
| 302 | 
            +
             | 
| 303 | 
            +
              
         | 
| 304 | 
            +
                <span class="summary_desc"><div class='inline'>
         | 
| 305 | 
            +
            <p>True if this command was executed using ActionCommand.execute_rails.</p>
         | 
| 306 | 
            +
            </div></span>
         | 
| 307 | 
            +
              
         | 
| 308 | 
            +
            </li>
         | 
| 309 | 
            +
             | 
| 310 | 
            +
                  
         | 
| 311 | 
            +
                    <li class="public ">
         | 
| 312 | 
            +
              <span class="summary_signature">
         | 
| 313 | 
            +
                
         | 
| 314 | 
            +
                  <a href="#rake_context%3F-instance_method" title="#rake_context? (instance method)">- (Boolean) <strong>rake_context?</strong> </a>
         | 
| 315 | 
            +
                
         | 
| 316 | 
            +
             | 
| 317 | 
            +
                
         | 
| 318 | 
            +
              </span>
         | 
| 319 | 
            +
              
         | 
| 320 | 
            +
              
         | 
| 321 | 
            +
              
         | 
| 322 | 
            +
              
         | 
| 323 | 
            +
              
         | 
| 324 | 
            +
              
         | 
| 325 | 
            +
              
         | 
| 326 | 
            +
             | 
| 327 | 
            +
              
         | 
| 328 | 
            +
                <span class="summary_desc"><div class='inline'>
         | 
| 329 | 
            +
            <p>True if this command was executed using ActionCommand.execute_rake.</p>
         | 
| 330 | 
            +
            </div></span>
         | 
| 331 | 
            +
              
         | 
| 332 | 
            +
            </li>
         | 
| 333 | 
            +
             | 
| 334 | 
            +
                  
         | 
| 335 | 
            +
                    <li class="public ">
         | 
| 336 | 
            +
              <span class="summary_signature">
         | 
| 337 | 
            +
                
         | 
| 338 | 
            +
                  <a href="#root_context-instance_method" title="#root_context (instance method)">- (Symbol) <strong>root_context</strong> </a>
         | 
| 339 | 
            +
                
         | 
| 340 | 
            +
             | 
| 341 | 
            +
                
         | 
| 342 | 
            +
              </span>
         | 
| 343 | 
            +
              
         | 
| 344 | 
            +
              
         | 
| 345 | 
            +
              
         | 
| 346 | 
            +
              
         | 
| 347 | 
            +
              
         | 
| 348 | 
            +
              
         | 
| 349 | 
            +
              
         | 
| 350 | 
            +
             | 
| 351 | 
            +
              
         | 
| 352 | 
            +
                <span class="summary_desc"><div class='inline'>
         | 
| 353 | 
            +
            <p>action was executed in, see the ActionCommand::CONTEXT_ constants.</p>
         | 
| 354 | 
            +
            </div></span>
         | 
| 355 | 
            +
              
         | 
| 356 | 
            +
            </li>
         | 
| 357 | 
            +
             | 
| 358 | 
            +
                  
         | 
| 359 | 
            +
                    <li class="public ">
         | 
| 360 | 
            +
              <span class="summary_signature">
         | 
| 361 | 
            +
                
         | 
| 362 | 
            +
                  <a href="#test_context%3F-instance_method" title="#test_context? (instance method)">- (Boolean) <strong>test_context?</strong> </a>
         | 
| 363 | 
            +
                
         | 
| 364 | 
            +
             | 
| 365 | 
            +
                
         | 
| 366 | 
            +
              </span>
         | 
| 367 | 
            +
              
         | 
| 368 | 
            +
              
         | 
| 369 | 
            +
              
         | 
| 370 | 
            +
              
         | 
| 371 | 
            +
              
         | 
| 372 | 
            +
              
         | 
| 373 | 
            +
              
         | 
| 374 | 
            +
             | 
| 375 | 
            +
              
         | 
| 376 | 
            +
                <span class="summary_desc"><div class='inline'>
         | 
| 377 | 
            +
            <p>True if this command was executed using ActionCommand.execute_test.</p>
         | 
| 378 | 
            +
            </div></span>
         | 
| 379 | 
            +
              
         | 
| 260 380 | 
             
            </li>
         | 
| 261 381 |  | 
| 262 382 |  | 
| @@ -317,15 +437,15 @@ validations within the testing context.</p> | |
| 317 437 | 
             
                  <pre class="lines">
         | 
| 318 438 |  | 
| 319 439 |  | 
| 320 | 
            -
             | 
| 321 | 
            -
             | 
| 322 | 
            -
             | 
| 440 | 
            +
            11
         | 
| 441 | 
            +
            12
         | 
| 442 | 
            +
            13</pre>
         | 
| 323 443 | 
             
                </td>
         | 
| 324 444 | 
             
                <td>
         | 
| 325 | 
            -
                  <pre class="code"><span class="info file"># File 'lib/action_command.rb', line  | 
| 445 | 
            +
                  <pre class="code"><span class="info file"># File 'lib/action_command/executable.rb', line 11</span>
         | 
| 326 446 |  | 
| 327 447 | 
             
            <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span>
         | 
| 328 | 
            -
              <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_describe_io'>describe_io</span><span class='period'>.</span><span class='id identifier  | 
| 448 | 
            +
              <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_describe_io'>describe_io</span><span class='period'>.</span><span class='id identifier rubyid_process_input'>process_input</span><span class='lparen'>(</span><span class='kw'>self</span><span class='comma'>,</span> <span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span>
         | 
| 329 449 | 
             
            <span class='kw'>end</span></pre>
         | 
| 330 450 | 
             
                </td>
         | 
| 331 451 | 
             
              </tr>
         | 
| @@ -365,12 +485,12 @@ validations within the testing context.</p> | |
| 365 485 | 
             
                  <pre class="lines">
         | 
| 366 486 |  | 
| 367 487 |  | 
| 368 | 
            -
             | 
| 369 | 
            -
             | 
| 370 | 
            -
             | 
| 488 | 
            +
            8
         | 
| 489 | 
            +
            9
         | 
| 490 | 
            +
            10</pre>
         | 
| 371 491 | 
             
                </td>
         | 
| 372 492 | 
             
                <td>
         | 
| 373 | 
            -
                  <pre class="code"><span class="info file"># File 'lib/action_command.rb', line  | 
| 493 | 
            +
                  <pre class="code"><span class="info file"># File 'lib/action_command/executable.rb', line 8</span>
         | 
| 374 494 |  | 
| 375 495 | 
             
            <span class='kw'>def</span> <span class='id identifier rubyid_parent'>parent</span>
         | 
| 376 496 | 
             
              <span class='ivar'>@parent</span>
         | 
| @@ -408,12 +528,12 @@ validations within the testing context.</p> | |
| 408 528 | 
             
                  <pre class="lines">
         | 
| 409 529 |  | 
| 410 530 |  | 
| 411 | 
            -
             | 
| 412 | 
            -
             | 
| 413 | 
            -
             | 
| 531 | 
            +
            8
         | 
| 532 | 
            +
            9
         | 
| 533 | 
            +
            10</pre>
         | 
| 414 534 | 
             
                </td>
         | 
| 415 535 | 
             
                <td>
         | 
| 416 | 
            -
                  <pre class="code"><span class="info file"># File 'lib/action_command.rb', line  | 
| 536 | 
            +
                  <pre class="code"><span class="info file"># File 'lib/action_command/executable.rb', line 8</span>
         | 
| 417 537 |  | 
| 418 538 | 
             
            <span class='kw'>def</span> <span class='id identifier rubyid_test'>test</span>
         | 
| 419 539 | 
             
              <span class='ivar'>@test</span>
         | 
| @@ -431,7 +551,66 @@ validations within the testing context.</p> | |
| 431 551 |  | 
| 432 552 |  | 
| 433 553 | 
             
                  <div class="method_details first">
         | 
| 434 | 
            -
              <h3 class="signature first" id=" | 
| 554 | 
            +
              <h3 class="signature first" id="child_context?-instance_method">
         | 
| 555 | 
            +
              
         | 
| 556 | 
            +
                - (<tt>Boolean</tt>) <strong>child_context?</strong> 
         | 
| 557 | 
            +
              
         | 
| 558 | 
            +
             | 
| 559 | 
            +
              
         | 
| 560 | 
            +
             | 
| 561 | 
            +
              
         | 
| 562 | 
            +
            </h3><div class="docstring">
         | 
| 563 | 
            +
              <div class="discussion">
         | 
| 564 | 
            +
                
         | 
| 565 | 
            +
            <p>Returns true if this command is a child of another command</p>
         | 
| 566 | 
            +
             | 
| 567 | 
            +
             | 
| 568 | 
            +
              </div>
         | 
| 569 | 
            +
            </div>
         | 
| 570 | 
            +
            <div class="tags">
         | 
| 571 | 
            +
              
         | 
| 572 | 
            +
            <p class="tag_title">Returns:</p>
         | 
| 573 | 
            +
            <ul class="return">
         | 
| 574 | 
            +
              
         | 
| 575 | 
            +
                <li>
         | 
| 576 | 
            +
                  
         | 
| 577 | 
            +
                  
         | 
| 578 | 
            +
                    <span class='type'>(<tt>Boolean</tt>)</span>
         | 
| 579 | 
            +
                  
         | 
| 580 | 
            +
                  
         | 
| 581 | 
            +
                  
         | 
| 582 | 
            +
                    —
         | 
| 583 | 
            +
                    <div class='inline'>
         | 
| 584 | 
            +
            <p>true if this command is a child of another command</p>
         | 
| 585 | 
            +
            </div>
         | 
| 586 | 
            +
                  
         | 
| 587 | 
            +
                </li>
         | 
| 588 | 
            +
              
         | 
| 589 | 
            +
            </ul>
         | 
| 590 | 
            +
             | 
| 591 | 
            +
            </div><table class="source_code">
         | 
| 592 | 
            +
              <tr>
         | 
| 593 | 
            +
                <td>
         | 
| 594 | 
            +
                  <pre class="lines">
         | 
| 595 | 
            +
             | 
| 596 | 
            +
             | 
| 597 | 
            +
            40
         | 
| 598 | 
            +
            41
         | 
| 599 | 
            +
            42</pre>
         | 
| 600 | 
            +
                </td>
         | 
| 601 | 
            +
                <td>
         | 
| 602 | 
            +
                  <pre class="code"><span class="info file"># File 'lib/action_command/executable.rb', line 40</span>
         | 
| 603 | 
            +
             | 
| 604 | 
            +
            <span class='kw'>def</span> <span class='id identifier rubyid_child_context?'>child_context?</span>
         | 
| 605 | 
            +
              <span class='kw'>return</span> <span class='op'>!</span><span class='id identifier rubyid_parent'>parent</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span><span class='lparen'>(</span><span class='const'>Symbol</span><span class='rparen'>)</span>
         | 
| 606 | 
            +
            <span class='kw'>end</span></pre>
         | 
| 607 | 
            +
                </td>
         | 
| 608 | 
            +
              </tr>
         | 
| 609 | 
            +
            </table>
         | 
| 610 | 
            +
            </div>
         | 
| 611 | 
            +
                
         | 
| 612 | 
            +
                  <div class="method_details ">
         | 
| 613 | 
            +
              <h3 class="signature " id="execute-instance_method">
         | 
| 435 614 |  | 
| 436 615 | 
             
                - (<tt><span class='object_link'><a href="Result.html" title="ActionCommand::Result (class)">ActionCommand::Result</a></span></tt>) <strong>execute</strong>(result) 
         | 
| 437 616 |  | 
| @@ -471,16 +650,18 @@ Command implementors should override execute_internal.</p> | |
| 471 650 | 
             
                  <pre class="lines">
         | 
| 472 651 |  | 
| 473 652 |  | 
| 474 | 
            -
             | 
| 475 | 
            -
             | 
| 476 | 
            -
             | 
| 477 | 
            -
             | 
| 653 | 
            +
            49
         | 
| 654 | 
            +
            50
         | 
| 655 | 
            +
            51
         | 
| 656 | 
            +
            52
         | 
| 657 | 
            +
            53</pre>
         | 
| 478 658 | 
             
                </td>
         | 
| 479 659 | 
             
                <td>
         | 
| 480 | 
            -
                  <pre class="code"><span class="info file"># File 'lib/action_command.rb', line  | 
| 660 | 
            +
                  <pre class="code"><span class="info file"># File 'lib/action_command/executable.rb', line 49</span>
         | 
| 481 661 |  | 
| 482 662 | 
             
            <span class='kw'>def</span> <span class='id identifier rubyid_execute'>execute</span><span class='lparen'>(</span><span class='id identifier rubyid_result'>result</span><span class='rparen'>)</span>
         | 
| 483 663 | 
             
              <span class='id identifier rubyid_execute_internal'>execute_internal</span><span class='lparen'>(</span><span class='id identifier rubyid_result'>result</span><span class='rparen'>)</span>
         | 
| 664 | 
            +
              <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_describe_io'>describe_io</span><span class='period'>.</span><span class='id identifier rubyid_process_output'>process_output</span><span class='lparen'>(</span><span class='kw'>self</span><span class='comma'>,</span> <span class='id identifier rubyid_result'>result</span><span class='rparen'>)</span>
         | 
| 484 665 | 
             
              <span class='kw'>return</span> <span class='id identifier rubyid_result'>result</span>
         | 
| 485 666 | 
             
            <span class='kw'>end</span></pre>
         | 
| 486 667 | 
             
                </td>
         | 
| @@ -535,15 +716,257 @@ that the command failed.</p> | |
| 535 716 | 
             
                  <pre class="lines">
         | 
| 536 717 |  | 
| 537 718 |  | 
| 538 | 
            -
             | 
| 539 | 
            -
             | 
| 540 | 
            -
             | 
| 719 | 
            +
            70
         | 
| 720 | 
            +
            71
         | 
| 721 | 
            +
            72</pre>
         | 
| 541 722 | 
             
                </td>
         | 
| 542 723 | 
             
                <td>
         | 
| 543 | 
            -
                  <pre class="code"><span class="info file"># File 'lib/action_command.rb', line  | 
| 724 | 
            +
                  <pre class="code"><span class="info file"># File 'lib/action_command/executable.rb', line 70</span>
         | 
| 544 725 |  | 
| 545 726 | 
             
            <span class='kw'>def</span> <span class='id identifier rubyid_execute_internal'>execute_internal</span><span class='lparen'>(</span><span class='id identifier rubyid_result'>result</span><span class='rparen'>)</span>
         | 
| 546 727 |  | 
| 728 | 
            +
            <span class='kw'>end</span></pre>
         | 
| 729 | 
            +
                </td>
         | 
| 730 | 
            +
              </tr>
         | 
| 731 | 
            +
            </table>
         | 
| 732 | 
            +
            </div>
         | 
| 733 | 
            +
                
         | 
| 734 | 
            +
                  <div class="method_details ">
         | 
| 735 | 
            +
              <h3 class="signature " id="rails_context?-instance_method">
         | 
| 736 | 
            +
              
         | 
| 737 | 
            +
                - (<tt>Boolean</tt>) <strong>rails_context?</strong> 
         | 
| 738 | 
            +
              
         | 
| 739 | 
            +
             | 
| 740 | 
            +
              
         | 
| 741 | 
            +
             | 
| 742 | 
            +
              
         | 
| 743 | 
            +
            </h3><div class="docstring">
         | 
| 744 | 
            +
              <div class="discussion">
         | 
| 745 | 
            +
                
         | 
| 746 | 
            +
            <p>Returns true if this command was executed using ActionCommand.execute_rails</p>
         | 
| 747 | 
            +
             | 
| 748 | 
            +
             | 
| 749 | 
            +
              </div>
         | 
| 750 | 
            +
            </div>
         | 
| 751 | 
            +
            <div class="tags">
         | 
| 752 | 
            +
              
         | 
| 753 | 
            +
            <p class="tag_title">Returns:</p>
         | 
| 754 | 
            +
            <ul class="return">
         | 
| 755 | 
            +
              
         | 
| 756 | 
            +
                <li>
         | 
| 757 | 
            +
                  
         | 
| 758 | 
            +
                  
         | 
| 759 | 
            +
                    <span class='type'>(<tt>Boolean</tt>)</span>
         | 
| 760 | 
            +
                  
         | 
| 761 | 
            +
                  
         | 
| 762 | 
            +
                  
         | 
| 763 | 
            +
                    —
         | 
| 764 | 
            +
                    <div class='inline'>
         | 
| 765 | 
            +
            <p>true if this command was executed using ActionCommand.execute_rails</p>
         | 
| 766 | 
            +
            </div>
         | 
| 767 | 
            +
                  
         | 
| 768 | 
            +
                </li>
         | 
| 769 | 
            +
              
         | 
| 770 | 
            +
            </ul>
         | 
| 771 | 
            +
             | 
| 772 | 
            +
            </div><table class="source_code">
         | 
| 773 | 
            +
              <tr>
         | 
| 774 | 
            +
                <td>
         | 
| 775 | 
            +
                  <pre class="lines">
         | 
| 776 | 
            +
             | 
| 777 | 
            +
             | 
| 778 | 
            +
            30
         | 
| 779 | 
            +
            31
         | 
| 780 | 
            +
            32</pre>
         | 
| 781 | 
            +
                </td>
         | 
| 782 | 
            +
                <td>
         | 
| 783 | 
            +
                  <pre class="code"><span class="info file"># File 'lib/action_command/executable.rb', line 30</span>
         | 
| 784 | 
            +
             | 
| 785 | 
            +
            <span class='kw'>def</span> <span class='id identifier rubyid_rails_context?'>rails_context?</span>
         | 
| 786 | 
            +
              <span class='kw'>return</span> <span class='id identifier rubyid_root_context'>root_context</span> <span class='op'>==</span> <span class='const'>ActionCommand</span><span class='op'>::</span><span class='const'>CONTEXT_RAILS</span>
         | 
| 787 | 
            +
            <span class='kw'>end</span></pre>
         | 
| 788 | 
            +
                </td>
         | 
| 789 | 
            +
              </tr>
         | 
| 790 | 
            +
            </table>
         | 
| 791 | 
            +
            </div>
         | 
| 792 | 
            +
                
         | 
| 793 | 
            +
                  <div class="method_details ">
         | 
| 794 | 
            +
              <h3 class="signature " id="rake_context?-instance_method">
         | 
| 795 | 
            +
              
         | 
| 796 | 
            +
                - (<tt>Boolean</tt>) <strong>rake_context?</strong> 
         | 
| 797 | 
            +
              
         | 
| 798 | 
            +
             | 
| 799 | 
            +
              
         | 
| 800 | 
            +
             | 
| 801 | 
            +
              
         | 
| 802 | 
            +
            </h3><div class="docstring">
         | 
| 803 | 
            +
              <div class="discussion">
         | 
| 804 | 
            +
                
         | 
| 805 | 
            +
            <p>Returns true if this command was executed using ActionCommand.execute_rake</p>
         | 
| 806 | 
            +
             | 
| 807 | 
            +
             | 
| 808 | 
            +
              </div>
         | 
| 809 | 
            +
            </div>
         | 
| 810 | 
            +
            <div class="tags">
         | 
| 811 | 
            +
              
         | 
| 812 | 
            +
            <p class="tag_title">Returns:</p>
         | 
| 813 | 
            +
            <ul class="return">
         | 
| 814 | 
            +
              
         | 
| 815 | 
            +
                <li>
         | 
| 816 | 
            +
                  
         | 
| 817 | 
            +
                  
         | 
| 818 | 
            +
                    <span class='type'>(<tt>Boolean</tt>)</span>
         | 
| 819 | 
            +
                  
         | 
| 820 | 
            +
                  
         | 
| 821 | 
            +
                  
         | 
| 822 | 
            +
                    —
         | 
| 823 | 
            +
                    <div class='inline'>
         | 
| 824 | 
            +
            <p>true if this command was executed using ActionCommand.execute_rake</p>
         | 
| 825 | 
            +
            </div>
         | 
| 826 | 
            +
                  
         | 
| 827 | 
            +
                </li>
         | 
| 828 | 
            +
              
         | 
| 829 | 
            +
            </ul>
         | 
| 830 | 
            +
             | 
| 831 | 
            +
            </div><table class="source_code">
         | 
| 832 | 
            +
              <tr>
         | 
| 833 | 
            +
                <td>
         | 
| 834 | 
            +
                  <pre class="lines">
         | 
| 835 | 
            +
             | 
| 836 | 
            +
             | 
| 837 | 
            +
            35
         | 
| 838 | 
            +
            36
         | 
| 839 | 
            +
            37</pre>
         | 
| 840 | 
            +
                </td>
         | 
| 841 | 
            +
                <td>
         | 
| 842 | 
            +
                  <pre class="code"><span class="info file"># File 'lib/action_command/executable.rb', line 35</span>
         | 
| 843 | 
            +
             | 
| 844 | 
            +
            <span class='kw'>def</span> <span class='id identifier rubyid_rake_context?'>rake_context?</span>
         | 
| 845 | 
            +
              <span class='kw'>return</span> <span class='id identifier rubyid_root_context'>root_context</span> <span class='op'>==</span> <span class='const'>ActionCommand</span><span class='op'>::</span><span class='const'>CONTEXT_RAKE</span>
         | 
| 846 | 
            +
            <span class='kw'>end</span></pre>
         | 
| 847 | 
            +
                </td>
         | 
| 848 | 
            +
              </tr>
         | 
| 849 | 
            +
            </table>
         | 
| 850 | 
            +
            </div>
         | 
| 851 | 
            +
                
         | 
| 852 | 
            +
                  <div class="method_details ">
         | 
| 853 | 
            +
              <h3 class="signature " id="root_context-instance_method">
         | 
| 854 | 
            +
              
         | 
| 855 | 
            +
                - (<tt>Symbol</tt>) <strong>root_context</strong> 
         | 
| 856 | 
            +
              
         | 
| 857 | 
            +
             | 
| 858 | 
            +
              
         | 
| 859 | 
            +
             | 
| 860 | 
            +
              
         | 
| 861 | 
            +
            </h3><div class="docstring">
         | 
| 862 | 
            +
              <div class="discussion">
         | 
| 863 | 
            +
                
         | 
| 864 | 
            +
            <p>action was executed in, see the ActionCommand::CONTEXT_ constants.</p>
         | 
| 865 | 
            +
             | 
| 866 | 
            +
             | 
| 867 | 
            +
              </div>
         | 
| 868 | 
            +
            </div>
         | 
| 869 | 
            +
            <div class="tags">
         | 
| 870 | 
            +
              
         | 
| 871 | 
            +
            <p class="tag_title">Returns:</p>
         | 
| 872 | 
            +
            <ul class="return">
         | 
| 873 | 
            +
              
         | 
| 874 | 
            +
                <li>
         | 
| 875 | 
            +
                  
         | 
| 876 | 
            +
                  
         | 
| 877 | 
            +
                    <span class='type'>(<tt>Symbol</tt>)</span>
         | 
| 878 | 
            +
                  
         | 
| 879 | 
            +
                  
         | 
| 880 | 
            +
                  
         | 
| 881 | 
            +
                    —
         | 
| 882 | 
            +
                    <div class='inline'>
         | 
| 883 | 
            +
            <p>the symbol indicating what context this</p>
         | 
| 884 | 
            +
            </div>
         | 
| 885 | 
            +
                  
         | 
| 886 | 
            +
                </li>
         | 
| 887 | 
            +
              
         | 
| 888 | 
            +
            </ul>
         | 
| 889 | 
            +
             | 
| 890 | 
            +
            </div><table class="source_code">
         | 
| 891 | 
            +
              <tr>
         | 
| 892 | 
            +
                <td>
         | 
| 893 | 
            +
                  <pre class="lines">
         | 
| 894 | 
            +
             | 
| 895 | 
            +
             | 
| 896 | 
            +
            17
         | 
| 897 | 
            +
            18
         | 
| 898 | 
            +
            19
         | 
| 899 | 
            +
            20
         | 
| 900 | 
            +
            21
         | 
| 901 | 
            +
            22</pre>
         | 
| 902 | 
            +
                </td>
         | 
| 903 | 
            +
                <td>
         | 
| 904 | 
            +
                  <pre class="code"><span class="info file"># File 'lib/action_command/executable.rb', line 17</span>
         | 
| 905 | 
            +
             | 
| 906 | 
            +
            <span class='kw'>def</span> <span class='id identifier rubyid_root_context'>root_context</span>
         | 
| 907 | 
            +
              
         | 
| 908 | 
            +
              <span class='id identifier rubyid_context'>context</span> <span class='op'>=</span> <span class='id identifier rubyid_parent'>parent</span>
         | 
| 909 | 
            +
              <span class='id identifier rubyid_context'>context</span> <span class='op'>=</span> <span class='id identifier rubyid_context'>context</span><span class='period'>.</span><span class='id identifier rubyid_parent'>parent</span> <span class='kw'>until</span> <span class='id identifier rubyid_context'>context</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span> <span class='const'>Symbol</span>
         | 
| 910 | 
            +
              <span class='kw'>return</span> <span class='id identifier rubyid_context'>context</span>
         | 
| 911 | 
            +
            <span class='kw'>end</span></pre>
         | 
| 912 | 
            +
                </td>
         | 
| 913 | 
            +
              </tr>
         | 
| 914 | 
            +
            </table>
         | 
| 915 | 
            +
            </div>
         | 
| 916 | 
            +
                
         | 
| 917 | 
            +
                  <div class="method_details ">
         | 
| 918 | 
            +
              <h3 class="signature " id="test_context?-instance_method">
         | 
| 919 | 
            +
              
         | 
| 920 | 
            +
                - (<tt>Boolean</tt>) <strong>test_context?</strong> 
         | 
| 921 | 
            +
              
         | 
| 922 | 
            +
             | 
| 923 | 
            +
              
         | 
| 924 | 
            +
             | 
| 925 | 
            +
              
         | 
| 926 | 
            +
            </h3><div class="docstring">
         | 
| 927 | 
            +
              <div class="discussion">
         | 
| 928 | 
            +
                
         | 
| 929 | 
            +
            <p>Returns true if this command was executed using ActionCommand.execute_test</p>
         | 
| 930 | 
            +
             | 
| 931 | 
            +
             | 
| 932 | 
            +
              </div>
         | 
| 933 | 
            +
            </div>
         | 
| 934 | 
            +
            <div class="tags">
         | 
| 935 | 
            +
              
         | 
| 936 | 
            +
            <p class="tag_title">Returns:</p>
         | 
| 937 | 
            +
            <ul class="return">
         | 
| 938 | 
            +
              
         | 
| 939 | 
            +
                <li>
         | 
| 940 | 
            +
                  
         | 
| 941 | 
            +
                  
         | 
| 942 | 
            +
                    <span class='type'>(<tt>Boolean</tt>)</span>
         | 
| 943 | 
            +
                  
         | 
| 944 | 
            +
                  
         | 
| 945 | 
            +
                  
         | 
| 946 | 
            +
                    —
         | 
| 947 | 
            +
                    <div class='inline'>
         | 
| 948 | 
            +
            <p>true if this command was executed using ActionCommand.execute_test</p>
         | 
| 949 | 
            +
            </div>
         | 
| 950 | 
            +
                  
         | 
| 951 | 
            +
                </li>
         | 
| 952 | 
            +
              
         | 
| 953 | 
            +
            </ul>
         | 
| 954 | 
            +
             | 
| 955 | 
            +
            </div><table class="source_code">
         | 
| 956 | 
            +
              <tr>
         | 
| 957 | 
            +
                <td>
         | 
| 958 | 
            +
                  <pre class="lines">
         | 
| 959 | 
            +
             | 
| 960 | 
            +
             | 
| 961 | 
            +
            25
         | 
| 962 | 
            +
            26
         | 
| 963 | 
            +
            27</pre>
         | 
| 964 | 
            +
                </td>
         | 
| 965 | 
            +
                <td>
         | 
| 966 | 
            +
                  <pre class="code"><span class="info file"># File 'lib/action_command/executable.rb', line 25</span>
         | 
| 967 | 
            +
             | 
| 968 | 
            +
            <span class='kw'>def</span> <span class='id identifier rubyid_test_context?'>test_context?</span>
         | 
| 969 | 
            +
              <span class='kw'>return</span> <span class='id identifier rubyid_root_context'>root_context</span> <span class='op'>==</span> <span class='const'>ActionCommand</span><span class='op'>::</span><span class='const'>CONTEXT_TEST</span>
         | 
| 547 970 | 
             
            <span class='kw'>end</span></pre>
         | 
| 548 971 | 
             
                </td>
         | 
| 549 972 | 
             
              </tr>
         | 
| @@ -596,12 +1019,12 @@ ActionCommand#execute_test.</p> | |
| 596 1019 | 
             
                  <pre class="lines">
         | 
| 597 1020 |  | 
| 598 1021 |  | 
| 599 | 
            -
             | 
| 600 | 
            -
             | 
| 601 | 
            -
             | 
| 1022 | 
            +
            59
         | 
| 1023 | 
            +
            60
         | 
| 1024 | 
            +
            61</pre>
         | 
| 602 1025 | 
             
                </td>
         | 
| 603 1026 | 
             
                <td>
         | 
| 604 | 
            -
                  <pre class="code"><span class="info file"># File 'lib/action_command.rb', line  | 
| 1027 | 
            +
                  <pre class="code"><span class="info file"># File 'lib/action_command/executable.rb', line 59</span>
         | 
| 605 1028 |  | 
| 606 1029 | 
             
            <span class='kw'>def</span> <span class='id identifier rubyid_testing'>testing</span>
         | 
| 607 1030 | 
             
              <span class='kw'>yield</span> <span class='ivar'>@test</span> <span class='kw'>if</span> <span class='ivar'>@test</span>
         | 
| @@ -616,7 +1039,7 @@ ActionCommand#execute_test.</p> | |
| 616 1039 | 
             
            </div>
         | 
| 617 1040 |  | 
| 618 1041 | 
             
                <div id="footer">
         | 
| 619 | 
            -
              Generated on  | 
| 1042 | 
            +
              Generated on Thu Mar  3 16:34:07 2016 by
         | 
| 620 1043 | 
             
              <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
         | 
| 621 1044 | 
             
              0.8.7.6 (ruby-2.2.3).
         | 
| 622 1045 | 
             
            </div>
         |