Skip to content

Commit

Permalink
Site update
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions committed Sep 26, 2023
1 parent b056832 commit a95ddf8
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"><span class="hljs-keyword">my</span> <span class="hljs-type">$output</span> = run &quot;<span class="hljs-string">df -h</span>&quot;;
<pre><code class="hljs">my <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
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ <h2 id="creatingarexfile">Creating a Rexfile</h2>

<p>Insert the following code in your new Rexfile.</p>

<pre><code class="hljs">use Rex -feature =&gt; [&#39;<span class="hljs-string">1.0</span>&#39;];
<pre><code class="hljs"><span class="hljs-keyword">use</span> Rex -feature =&gt; [&#39;<span class="hljs-string">1.0</span>&#39;];
<span class="hljs-keyword">use</span> <span class="hljs-function">Rex::Commands</span>::<span class="hljs-function">Cloud</span>;

user &quot;<span class="hljs-string">root</span>&quot;;
Expand Down

0 comments on commit a95ddf8

Please sign in to comment.