doc/Rubu/Step.html in rubu-0.0.7 vs doc/Rubu/Step.html in rubu-0.0.8

- old
+ new

@@ -230,10 +230,34 @@ <li class="public "> <span class="summary_signature"> + <a href="#useset-class_method" title="useset (class method)">.<strong>useset</strong>(sources) &#x21d2; Object </a> + + + + </span> + + + + + + + + + + <span class="summary_desc"><div class='inline'> +<p>Create Move&#39;s for all in sources and register.</p> +</div></span> + +</li> + + + <li class="public "> + <span class="summary_signature"> + <a href="#usezip-class_method" title="usezip (class method)">.<strong>usezip</strong>(sources, targets) &#x21d2; Object </a> </span> @@ -740,30 +764,30 @@ <tr> <td> <pre class="lines"> -528 -529 -530 -531 -532 -533 -534 -535 -536 -537 -538 -539 540 541 542 543 -544</pre> +544 +545 +546 +547 +548 +549 +550 +551 +552 +553 +554 +555 +556</pre> </td> <td> - <pre class="code"><span class="info file"># File 'lib/rubu.rb', line 528</span> + <pre class="code"><span class="info file"># File 'lib/rubu.rb', line 540</span> <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span> <span class='id identifier rubyid_sources'>sources</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='id identifier rubyid_targets'>targets</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span> <span class='rparen'>)</span> <span class='kw'>super</span><span class='lparen'>(</span><span class='rparen'>)</span> <span class='kw'>unless</span> <span class='id identifier rubyid_sources'>sources</span><span class='period'>.</span><span class='id identifier rubyid_kind_of?'>kind_of?</span> <span class='const'><span class='object_link'><a href="../Array.html" title="Array (class)">Array</a></span></span> @@ -816,16 +840,16 @@ <tr> <td> <pre class="lines"> -521 -522 -523</pre> +533 +534 +535</pre> </td> <td> - <pre class="code"><span class="info file"># File 'lib/rubu.rb', line 521</span> + <pre class="code"><span class="info file"># File 'lib/rubu.rb', line 533</span> <span class='kw'>def</span> <span class='id identifier rubyid_sources'>sources</span> <span class='ivar'>@sources</span> <span class='kw'>end</span></pre> </td> @@ -859,16 +883,16 @@ <tr> <td> <pre class="lines"> -522 -523 -524</pre> +534 +535 +536</pre> </td> <td> - <pre class="code"><span class="info file"># File 'lib/rubu.rb', line 522</span> + <pre class="code"><span class="info file"># File 'lib/rubu.rb', line 534</span> <span class='kw'>def</span> <span class='id identifier rubyid_targets'>targets</span> <span class='ivar'>@targets</span> <span class='kw'>end</span></pre> </td> @@ -963,10 +987,78 @@ </tr> </table> </div> <div class="method_details "> + <h3 class="signature " id="useset-class_method"> + + .<strong>useset</strong>(sources) &#x21d2; <tt>Object</tt> + + + + + +</h3><div class="docstring"> + <div class="discussion"> + +<p>Create Move&#39;s for all in sources and register.</p> + +<p>This creates Moves without targets, i.e. it is suitable for example for +cleanups.</p> + + + </div> +</div> +<div class="tags"> + <p class="tag_title">Parameters:</p> +<ul class="param"> + + <li> + + <span class='name'>sources</span> + + + <span class='type'></span> + + + + &mdash; + <div class='inline'> +<p>List of sources.</p> +</div> + + </li> + +</ul> + + +</div><table class="source_code"> + <tr> + <td> + <pre class="lines"> + + +526 +527 +528 +529 +530</pre> + </td> + <td> + <pre class="code"><span class="info file"># File 'lib/rubu.rb', line 526</span> + +<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_useset'>useset</span><span class='lparen'>(</span> <span class='id identifier rubyid_sources'>sources</span> <span class='rparen'>)</span> + <span class='id identifier rubyid_sources'>sources</span><span class='period'>.</span><span class='id identifier rubyid_map'>map</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_source'>source</span><span class='op'>|</span> + <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span> <span class='id identifier rubyid_source'>source</span> <span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_use'>use</span> + <span class='kw'>end</span> +<span class='kw'>end</span></pre> + </td> + </tr> +</table> +</div> + + <div class="method_details "> <h3 class="signature " id="usezip-class_method"> .<strong>usezip</strong>(sources, targets) &#x21d2; <tt>Object</tt> @@ -1169,22 +1261,10 @@ <tr> <td> <pre class="lines"> -576 -577 -578 -579 -580 -581 -582 -583 -584 -585 -586 -587 588 589 590 591 592 @@ -1195,14 +1275,26 @@ 597 598 599 600 601 -602</pre> +602 +603 +604 +605 +606 +607 +608 +609 +610 +611 +612 +613 +614</pre> </td> <td> - <pre class="code"><span class="info file"># File 'lib/rubu.rb', line 576</span> + <pre class="code"><span class="info file"># File 'lib/rubu.rb', line 588</span> <span class='kw'>def</span> <span class='id identifier rubyid_date_update?'>date_update?</span> <span class='comment'># Check if targets are missing. </span> <span class='ivar'>@targets</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_target'>target</span><span class='op'>|</span> @@ -1258,19 +1350,19 @@ <tr> <td> <pre class="lines"> -674 -675 -676 -677 -678 -679</pre> +686 +687 +688 +689 +690 +691</pre> </td> <td> - <pre class="code"><span class="info file"># File 'lib/rubu.rb', line 674</span> + <pre class="code"><span class="info file"># File 'lib/rubu.rb', line 686</span> <span class='kw'>def</span> <span class='id identifier rubyid_fork'>fork</span><span class='lparen'>(</span> <span class='op'>&amp;</span><span class='id identifier rubyid_blk'>blk</span> <span class='rparen'>)</span> <span class='id identifier rubyid_host_in'>host_in</span> <span class='id identifier rubyid_instance_eval'>instance_eval</span> <span class='op'>&amp;</span><span class='id identifier rubyid_blk'>blk</span> <span class='id identifier rubyid_host_out'>host_out</span> @@ -1318,22 +1410,10 @@ <tr> <td> <pre class="lines"> -606 -607 -608 -609 -610 -611 -612 -613 -614 -615 -616 -617 618 619 620 621 622 @@ -1346,14 +1426,26 @@ 629 630 631 632 633 -634</pre> +634 +635 +636 +637 +638 +639 +640 +641 +642 +643 +644 +645 +646</pre> </td> <td> - <pre class="code"><span class="info file"># File 'lib/rubu.rb', line 606</span> + <pre class="code"><span class="info file"># File 'lib/rubu.rb', line 618</span> <span class='kw'>def</span> <span class='id identifier rubyid_mark_update?'>mark_update?</span> <span class='kw'>unless</span> <span class='id identifier rubyid_date_update?'>date_update?</span> <span class='id identifier rubyid_target'>target</span><span class='period'>.</span><span class='id identifier rubyid_skip'>skip</span> <span class='op'>=</span> <span class='kw'>true</span> @@ -1433,16 +1525,16 @@ <tr> <td> <pre class="lines"> -661 -662 -663</pre> +673 +674 +675</pre> </td> <td> - <pre class="code"><span class="info file"># File 'lib/rubu.rb', line 661</span> + <pre class="code"><span class="info file"># File 'lib/rubu.rb', line 673</span> <span class='kw'>def</span> <span class='id identifier rubyid_rbrun'>rbrun</span><span class='lparen'>(</span> <span class='id identifier rubyid_desc'>desc</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='op'>&amp;</span><span class='id identifier rubyid_cmd'>cmd</span> <span class='rparen'>)</span> <span class='const'><span class='object_link'><a href="RubyCommand.html" title="Rubu::RubyCommand (class)">RubyCommand</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="RubyCommand.html#initialize-instance_method" title="Rubu::RubyCommand#initialize (method)">new</a></span></span><span class='lparen'>(</span> <span class='id identifier rubyid_desc'>desc</span><span class='comma'>,</span> <span class='op'>&amp;</span><span class='id identifier rubyid_cmd'>cmd</span> <span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_run'><span class='object_link'><a href="RubyCommand.html#run-instance_method" title="Rubu::RubyCommand#run (method)">run</a></span></span> <span class='kw'>end</span></pre> </td> @@ -1496,17 +1588,17 @@ <tr> <td> <pre class="lines"> -668 -669 -670 -671</pre> +680 +681 +682 +683</pre> </td> <td> - <pre class="code"><span class="info file"># File 'lib/rubu.rb', line 668</span> + <pre class="code"><span class="info file"># File 'lib/rubu.rb', line 680</span> <span class='kw'>def</span> <span class='id identifier rubyid_rbuse'>rbuse</span><span class='lparen'>(</span> <span class='id identifier rubyid_desc'>desc</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='op'>&amp;</span><span class='id identifier rubyid_cmd'>cmd</span> <span class='rparen'>)</span> <span class='id identifier rubyid_rb'>rb</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="RubyCommand.html" title="Rubu::RubyCommand (class)">RubyCommand</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="RubyCommand.html#initialize-instance_method" title="Rubu::RubyCommand#initialize (method)">new</a></span></span><span class='lparen'>(</span> <span class='id identifier rubyid_desc'>desc</span><span class='comma'>,</span> <span class='op'>&amp;</span><span class='id identifier rubyid_cmd'>cmd</span> <span class='rparen'>)</span> <span class='id identifier rubyid_rb'>rb</span><span class='period'>.</span><span class='id identifier rubyid_use'>use</span> <span class='kw'>end</span></pre> @@ -1539,21 +1631,21 @@ <tr> <td> <pre class="lines"> -559 -560 -561 -562 -563 -564 -565 -566</pre> +571 +572 +573 +574 +575 +576 +577 +578</pre> </td> <td> - <pre class="code"><span class="info file"># File 'lib/rubu.rb', line 559</span> + <pre class="code"><span class="info file"># File 'lib/rubu.rb', line 571</span> <span class='kw'>def</span> <span class='id identifier rubyid_run'>run</span> <span class='kw'>if</span> <span class='id identifier rubyid_update?'>update?</span> <span class='id identifier rubyid_step'>step</span> <span class='kw'>else</span> @@ -1590,15 +1682,15 @@ <tr> <td> <pre class="lines"> -549 -550</pre> +561 +562</pre> </td> <td> - <pre class="code"><span class="info file"># File 'lib/rubu.rb', line 549</span> + <pre class="code"><span class="info file"># File 'lib/rubu.rb', line 561</span> <span class='kw'>def</span> <span class='id identifier rubyid_setup'>setup</span> <span class='kw'>end</span></pre> </td> </tr> @@ -1629,16 +1721,16 @@ <tr> <td> <pre class="lines"> -648 -649 -650</pre> +660 +661 +662</pre> </td> <td> - <pre class="code"><span class="info file"># File 'lib/rubu.rb', line 648</span> + <pre class="code"><span class="info file"># File 'lib/rubu.rb', line 660</span> <span class='kw'>def</span> <span class='id identifier rubyid_shrun'>shrun</span><span class='lparen'>(</span> <span class='id identifier rubyid_cmd'>cmd</span> <span class='rparen'>)</span> <span class='const'><span class='object_link'><a href="ShellCommand.html" title="Rubu::ShellCommand (class)">ShellCommand</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="ShellCommand.html#initialize-instance_method" title="Rubu::ShellCommand#initialize (method)">new</a></span></span><span class='lparen'>(</span> <span class='id identifier rubyid_cmd'>cmd</span> <span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_run'><span class='object_link'><a href="ShellCommand.html#run-instance_method" title="Rubu::ShellCommand#run (method)">run</a></span></span> <span class='kw'>end</span></pre> </td> @@ -1670,17 +1762,17 @@ <tr> <td> <pre class="lines"> -653 -654 -655 -656</pre> +665 +666 +667 +668</pre> </td> <td> - <pre class="code"><span class="info file"># File 'lib/rubu.rb', line 653</span> + <pre class="code"><span class="info file"># File 'lib/rubu.rb', line 665</span> <span class='kw'>def</span> <span class='id identifier rubyid_shuse'>shuse</span><span class='lparen'>(</span> <span class='id identifier rubyid_cmd'>cmd</span> <span class='rparen'>)</span> <span class='id identifier rubyid_sh'>sh</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="ShellCommand.html" title="Rubu::ShellCommand (class)">ShellCommand</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="ShellCommand.html#initialize-instance_method" title="Rubu::ShellCommand#initialize (method)">new</a></span></span><span class='lparen'>(</span> <span class='id identifier rubyid_cmd'>cmd</span> <span class='rparen'>)</span> <span class='id identifier rubyid_sh'>sh</span><span class='period'>.</span><span class='id identifier rubyid_use'>use</span> <span class='kw'>end</span></pre> @@ -1713,16 +1805,16 @@ <tr> <td> <pre class="lines"> -638 -639 -640</pre> +650 +651 +652</pre> </td> <td> - <pre class="code"><span class="info file"># File 'lib/rubu.rb', line 638</span> + <pre class="code"><span class="info file"># File 'lib/rubu.rb', line 650</span> <span class='kw'>def</span> <span class='id identifier rubyid_source'>source</span> <span class='ivar'>@sources</span><span class='lbracket'>[</span><span class='int'>0</span><span class='rbracket'>]</span> <span class='kw'>end</span></pre> </td> @@ -1754,15 +1846,15 @@ <tr> <td> <pre class="lines"> -554 -555</pre> +566 +567</pre> </td> <td> - <pre class="code"><span class="info file"># File 'lib/rubu.rb', line 554</span> + <pre class="code"><span class="info file"># File 'lib/rubu.rb', line 566</span> <span class='kw'>def</span> <span class='id identifier rubyid_step'>step</span> <span class='kw'>end</span></pre> </td> </tr> @@ -1793,16 +1885,16 @@ <tr> <td> <pre class="lines"> -643 -644 -645</pre> +655 +656 +657</pre> </td> <td> - <pre class="code"><span class="info file"># File 'lib/rubu.rb', line 643</span> + <pre class="code"><span class="info file"># File 'lib/rubu.rb', line 655</span> <span class='kw'>def</span> <span class='id identifier rubyid_target'>target</span> <span class='ivar'>@targets</span><span class='lbracket'>[</span><span class='int'>0</span><span class='rbracket'>]</span> <span class='kw'>end</span></pre> </td> @@ -1847,16 +1939,16 @@ <tr> <td> <pre class="lines"> -570 -571 -572</pre> +582 +583 +584</pre> </td> <td> - <pre class="code"><span class="info file"># File 'lib/rubu.rb', line 570</span> + <pre class="code"><span class="info file"># File 'lib/rubu.rb', line 582</span> <span class='kw'>def</span> <span class='id identifier rubyid_update?'>update?</span> <span class='kw'>true</span> <span class='kw'>end</span></pre> </td> @@ -1888,19 +1980,19 @@ <tr> <td> <pre class="lines"> -682 -683 -684 -685 -686 -687</pre> +694 +695 +696 +697 +698 +699</pre> </td> <td> - <pre class="code"><span class="info file"># File 'lib/rubu.rb', line 682</span> + <pre class="code"><span class="info file"># File 'lib/rubu.rb', line 694</span> <span class='kw'>def</span> <span class='id identifier rubyid_walk'>walk</span><span class='lparen'>(</span> <span class='op'>&amp;</span><span class='id identifier rubyid_blk'>blk</span> <span class='rparen'>)</span> <span class='id identifier rubyid_host_in'>host_in</span> <span class='id identifier rubyid_instance_eval'>instance_eval</span> <span class='op'>&amp;</span><span class='id identifier rubyid_blk'>blk</span> <span class='id identifier rubyid_host_out'>host_out</span> @@ -1914,10 +2006,10 @@ </div> </div> <div id="footer"> - Generated on Sat Sep 29 22:28:26 2018 by + Generated on Sun Oct 21 19:17:14 2018 by <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a> 0.9.16 (ruby-2.5.1). </div> </div> \ No newline at end of file