Skip to content

Commit

Permalink
Site update
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions committed Nov 7, 2023
1 parent 5d65a13 commit b223ab3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/faq/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ <h2 id="whydoestheruncommandnotformattheoutput">Why does the run command not for

<p>If you want to print the output to your terminal you have to call it in a scalar context.</p>

<pre><code class="hljs">my <span class="hljs-type">$output</span> = run &quot;<span class="hljs-string">df -h</span>&quot;;
<pre><code class="hljs"><span class="hljs-keyword">my</span> <span class="hljs-type">$output</span> = run &quot;<span class="hljs-string">df -h</span>&quot;;
say <span class="hljs-type">$output</span>;</code></pre>

<h2 id="howcanigetthecurrentserverfromwithinatask">How can I get the current server from within a task?</h2>
Expand Down
2 changes: 1 addition & 1 deletion docs/release_notes/0.50.0.html
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ <h2 id="base">Base</h2>

<p>If you need to use a jump-host to connect to your servers, you can now use a proxy command to do so. This feature is only available if you&#39;re using the <strong>OpenSSH</strong> connection model.</p>

<pre><code class="hljs">use Rex -feature =&gt; [&#39;<span class="hljs-string">0.50</span>&#39;];
<pre><code class="hljs"><span class="hljs-keyword">use</span> Rex -feature =&gt; [&#39;<span class="hljs-string">0.50</span>&#39;];
set connection =&gt; &quot;<span class="hljs-string">OpenSSH</span>&quot;;
proxy_command &quot;<span class="hljs-string">ssh user</span><span class="hljs-type">@jumphost</span><span class="hljs-string"> nc </span><span class="hljs-type">%h</span><span class="hljs-string"> </span><span class="hljs-type">%p</span><span class="hljs-string"> 2&gt;/dev/null</span>&quot;; </code></pre></li>
<li><p><strong>Added a new experimental execution model</strong></p>
Expand Down

0 comments on commit b223ab3

Please sign in to comment.