doc/Rubu/ShellCommand.html in rubu-0.0.3 vs doc/Rubu/ShellCommand.html in rubu-0.0.4
- old
+ new
@@ -193,11 +193,11 @@
<h3 class="inherited">Methods inherited from <span class='object_link'><a href="Move.html" title="Rubu::Move (class)">Move</a></span></h3>
- <p class="inherited"><span class='object_link'><a href="Move.html#display-instance_method" title="Rubu::Move#display (method)">#display</a></span>, <span class='object_link'><a href="Move.html#error-instance_method" title="Rubu::Move#error (method)">#error</a></span>, <span class='object_link'><a href="Move.html#host-instance_method" title="Rubu::Move#host (method)">#host</a></span>, <span class='object_link'><a href="Move.html#host_in-instance_method" title="Rubu::Move#host_in (method)">#host_in</a></span>, <span class='object_link'><a href="Move.html#host_out-instance_method" title="Rubu::Move#host_out (method)">#host_out</a></span>, <span class='object_link'><a href="Move.html#use-instance_method" title="Rubu::Move#use (method)">#use</a></span></p>
+ <p class="inherited"><span class='object_link'><a href="Move.html#display-instance_method" title="Rubu::Move#display (method)">#display</a></span>, <span class='object_link'><a href="Move.html#error-instance_method" title="Rubu::Move#error (method)">#error</a></span>, <span class='object_link'><a href="Move.html#host-instance_method" title="Rubu::Move#host (method)">#host</a></span>, <span class='object_link'><a href="Move.html#host_in-instance_method" title="Rubu::Move#host_in (method)">#host_in</a></span>, <span class='object_link'><a href="Move.html#host_out-instance_method" title="Rubu::Move#host_out (method)">#host_out</a></span>, <span class='object_link'><a href="Move.html#set_show_shell_warning-instance_method" title="Rubu::Move#set_show_shell_warning (method)">#set_show_shell_warning</a></span>, <span class='object_link'><a href="Move.html#use-instance_method" title="Rubu::Move#use (method)">#use</a></span>, <span class='object_link'><a href="Move.html#warn-instance_method" title="Rubu::Move#warn (method)">#warn</a></span></p>
<div id="constructor_details" class="method_details_list">
<h2>Constructor Details</h2>
<div class="method_details first">
<h3 class="signature first" id="initialize-instance_method">
@@ -223,17 +223,17 @@
<tr>
<td>
<pre class="lines">
-122
-123
-124
-125</pre>
+131
+132
+133
+134</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/rubu.rb', line 122</span>
+ <pre class="code"><span class="info file"># File 'lib/rubu.rb', line 131</span>
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span> <span class='id identifier rubyid_cmd'>cmd</span> <span class='rparen'>)</span>
<span class='kw'>super</span><span class='lparen'>(</span><span class='rparen'>)</span>
<span class='ivar'>@cmd</span> <span class='op'>=</span> <span class='id identifier rubyid_cmd'>cmd</span>
<span class='kw'>end</span></pre>
@@ -273,19 +273,10 @@
<tr>
<td>
<pre class="lines">
-128
-129
-130
-131
-132
-133
-134
-135
-136
137
138
139
140
141
@@ -296,24 +287,39 @@
146
147
148
149
150
-151</pre>
+151
+152
+153
+154
+155
+156
+157
+158
+159
+160
+161
+162
+163</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/rubu.rb', line 128</span>
+ <pre class="code"><span class="info file"># File 'lib/rubu.rb', line 137</span>
<span class='kw'>def</span> <span class='id identifier rubyid_run'>run</span>
<span class='kw'>begin</span>
<span class='id identifier rubyid_stdout'>stdout</span><span class='comma'>,</span> <span class='id identifier rubyid_stderr'>stderr</span><span class='comma'>,</span> <span class='id identifier rubyid_status'>status</span> <span class='op'>=</span> <span class='const'>Open3</span><span class='period'>.</span><span class='id identifier rubyid_capture3'>capture3</span><span class='lparen'>(</span> <span class='ivar'>@cmd</span> <span class='rparen'>)</span>
<span class='kw'>if</span> <span class='const'>Order</span><span class='lbracket'>[</span> <span class='symbol'>:verbose</span> <span class='rbracket'>]</span>
<span class='const'>STDOUT</span><span class='period'>.</span><span class='id identifier rubyid_puts'>puts</span> <span class='ivar'>@cmd</span>
<span class='kw'>end</span>
<span class='kw'>if</span> <span class='id identifier rubyid_status'>status</span><span class='period'>.</span><span class='id identifier rubyid_exitstatus'>exitstatus</span> <span class='op'>==</span> <span class='int'>0</span>
+ <span class='kw'>if</span> <span class='cvar'>@@show_shell_warning</span> <span class='op'>&&</span> <span class='kw'>not</span><span class='lparen'>(</span> <span class='id identifier rubyid_stderr'>stderr</span><span class='period'>.</span><span class='id identifier rubyid_empty?'>empty?</span> <span class='rparen'>)</span>
+ <span class='id identifier rubyid_warn'>warn</span><span class='lparen'>(</span> <span class='id identifier rubyid_stderr'>stderr</span> <span class='rparen'>)</span>
+ <span class='kw'>end</span>
<span class='ivar'>@status</span> <span class='op'>=</span> <span class='symbol'>:success</span>
<span class='kw'>else</span>
<span class='ivar'>@status</span> <span class='op'>=</span> <span class='symbol'>:error</span>
<span class='id identifier rubyid_error'>error</span><span class='lparen'>(</span> <span class='id identifier rubyid_stderr'>stderr</span> <span class='rparen'>)</span>
<span class='kw'>end</span>
@@ -335,10 +341,10 @@
</div>
</div>
<div id="footer">
- Generated on Sun Jul 8 19:50:19 2018 by
+ Generated on Thu Aug 30 16:05:51 2018 by
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.8.7.6 (ruby-2.3.3).
</div>
</body>
\ No newline at end of file