Drush: commands/core/ssh.drush.inc Source File

  1. 7.x doxygen/html/ssh_8drush_8inc_source.html
  2. master doxygen/html/ssh_8drush_8inc_source.html
Go to the documentation of this file.
1 <?php
2 
3 /**
4 * @file
5 * The drush site-ssh command for connecting to a remote alias' server via
6 * SSH, either for an interactive session or to run a shell command.
7 */
8 
9 function ssh_drush_command() {
10  $items['site-ssh'] = array(
11  'description' => 'Connect to a Drupal site\'s server via SSH for an interactive session or to run a shell command',
12  'arguments' => array(
13  'bash' => 'Bash to execute on target. Optional, except when site-alias is a list.',
14  ),
15  'options' => array(
16  'cd' => "Directory to change to. Use a full path, TRUE for the site's Drupal root directory, or --no-cd for the ssh default (usually the remote user's home directory). Defaults to the Drupal root.",
18  'handle-remote-commands' => TRUE,
19  'strict-option-handling' => TRUE,
20  'examples' => array(
21  'drush @mysite ssh' => 'Open an interactive shell on @mysite\'s server.',
22  'drush @prod ssh ls /tmp' => 'Run "ls /tmp" on @prod site. If @prod is a site list, then ls will be executed on each site.',
23  'drush @prod ssh git pull' => 'Run "git pull" on the Drupal root directory on the @prod site.',
24  ),
25  'aliases' => array('ssh'),
26  'bootstrap' => DRUSH_BOOTSTRAP_NONE,
27  'topics' => array('docs-aliases'),
28  );
29  return $items;
30 }
31 
32 /**
33  * Command callback.
34  */
35 function drush_ssh_site_ssh($command = NULL) {
36  // Get all of the args and options that appear after the command name.
38  // n.b. we do not escape the first (0th) arg to allow `drush ssh 'ls /path'`
39  // to work in addition to the preferred form of `drush ssh ls /path`.
40  // Supporting the legacy form means that we cannot give the full path to an
41  // executable if it contains spaces.
42  for ($x = 1; $x < count($args); $x++) {
43  $args[$x] = drush_escapeshellarg($args[$x]);
44  }
45  $command = implode(' ', $args);
46  if (!$alias = drush_get_context('DRUSH_TARGET_SITE_ALIAS')) {
47  return drush_set_error('DRUSH_MISSING_TARGET_ALIAS', 'A site alias is required. The way you call ssh command has changed to `drush @alias ssh`.');
48  }
49  $site = drush_sitealias_get_record($alias);
50  // If we have multiple sites, run ourselves on each one. Set context back when done.
51  if (isset($site['site-list'])) {
52  if (empty($command)) {
53  drush_set_error('DRUSH_SITE_SSH_COMMAND_REQUIRED', dt('A command is required when multiple site aliases are specified.'));
54  return;
55  }
56  foreach ($site['site-list'] as $alias_single) {
57  drush_set_context('DRUSH_TARGET_SITE_ALIAS', $alias_single);
58  drush_ssh_site_ssh($command);
59  }
60  drush_set_context('DRUSH_TARGET_SITE_ALIAS', $alias);
61  return;
62  }
63 
64  if (!drush_sitealias_is_remote_site($alias)) {
65  // Local sites run their bash without SSH.
66  $return = drush_invoke_process('@self', 'core-execute', array($command), array('escape' => FALSE));
67  return $return['object'];
68  }
69 
70  // We have a remote site - build ssh command and run.
71  $interactive = FALSE;
72  $cd = drush_get_option('cd', TRUE);
73  if (empty($command)) {
74  $command = 'bash -l';
75  $interactive = TRUE;
76  }
77  $cmd = drush_shell_proc_build($site, $command, $cd, $interactive);
78  $status = drush_shell_proc_open($cmd);
79  if ($status != 0) {
80  return drush_set_error('DRUSH_SITE_SSH_ERROR', dt('An error @code occurred while running the command `@command`', array('@command' => $cmd, '@code' => $status)));
81  }
82 }

File

doxygen/html/ssh_8drush_8inc_source.html
View source
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Drush: commands/core/ssh.drush.inc Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">Drush
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.1.2 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li><a href="examples.html"><span>Examples</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Groups</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Pages</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_afac61274991793aa7e9133a8f4f291e.html">commands</a></li><li class="navelem"><a class="el" href="dir_5762b63965e3a68a35f77c23b4dd4668.html">core</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">ssh.drush.inc</div>  </div>
</div><!--header-->
<div class="contents">
<a href="ssh_8drush_8inc.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;&lt;?php</div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment"></span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment">/**</span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment">* @file</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment">*  The drush site-ssh command for connecting to a remote alias&#39; server via</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment">*  SSH, either for an interactive session or to run a shell command.</span></div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment">*/</span></div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;</div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="keyword">function</span> ssh_drush_command() {</div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;  $items[<span class="stringliteral">&#39;site-ssh&#39;</span>] = array(</div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;    <span class="stringliteral">&#39;description&#39;</span> =&gt; <span class="stringliteral">&#39;Connect to a Drupal site\&#39;s server via SSH for an interactive session or to run a shell command&#39;</span>,</div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;    <span class="stringliteral">&#39;arguments&#39;</span> =&gt; array(</div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;      <span class="stringliteral">&#39;bash&#39;</span> =&gt; <span class="stringliteral">&#39;Bash to execute on target. Optional, except when site-alias is a list.&#39;</span>,</div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;    ),</div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;    <span class="stringliteral">&#39;options&#39;</span> =&gt; array(</div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;      <span class="stringliteral">&#39;cd&#39;</span> =&gt; <span class="stringliteral">&quot;Directory to change to. Use a full path, TRUE for the site&#39;s Drupal root directory, or --no-cd for the ssh default (usually the remote user&#39;s home directory). Defaults to the Drupal root.&quot;</span>,</div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;    ) + <a class="code" href="group__commandwrappers.html#ga20677b9bedd9fe4bd9710d5cf12e5182">drush_shell_exec_proc_build_options</a>(),</div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;    <span class="stringliteral">&#39;handle-remote-commands&#39;</span> =&gt; TRUE,</div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;    <span class="stringliteral">&#39;strict-option-handling&#39;</span> =&gt; TRUE,</div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;    <span class="stringliteral">&#39;examples&#39;</span> =&gt; array(</div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;      <span class="stringliteral">&#39;drush @mysite ssh&#39;</span> =&gt; <span class="stringliteral">&#39;Open an interactive shell on @mysite\&#39;s server.&#39;</span>,</div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;      <span class="stringliteral">&#39;drush @prod ssh ls /tmp&#39;</span> =&gt; <span class="stringliteral">&#39;Run &quot;ls /tmp&quot; on @prod site. If @prod is a site list, then ls will be executed on each site.&#39;</span>,</div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;      <span class="stringliteral">&#39;drush @prod ssh git pull&#39;</span> =&gt; <span class="stringliteral">&#39;Run &quot;git pull&quot; on the Drupal root directory on the @prod site.&#39;</span>,</div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;    ),</div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;    <span class="stringliteral">&#39;aliases&#39;</span> =&gt; array(<span class="stringliteral">&#39;ssh&#39;</span>),</div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;    <span class="stringliteral">&#39;bootstrap&#39;</span> =&gt; DRUSH_BOOTSTRAP_NONE,</div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;    <span class="stringliteral">&#39;topics&#39;</span> =&gt; array(<span class="stringliteral">&#39;docs-aliases&#39;</span>),</div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;  );</div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;  <span class="keywordflow">return</span> $items;</div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;}</div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;<span class="comment"></span></div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;<span class="comment">/**</span></div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;<span class="comment"> * Command callback.</span></div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00035"></a><span class="lineno"><a class="code" href="ssh_8drush_8inc.html#a82a89cae3f9cd4bb76b6e9ac5bddb1cc">   35</a></span>&#160;<span class="keyword">function</span> <a class="code" href="ssh_8drush_8inc.html#a82a89cae3f9cd4bb76b6e9ac5bddb1cc">drush_ssh_site_ssh</a>($command = NULL) {</div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;  <span class="comment">// Get all of the args and options that appear after the command name.</span></div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;  $args = <a class="code" href="command_8inc.html#a272d98da256f7ae2988f3aa7cb6b464b">drush_get_original_cli_args_and_options</a>();</div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;  <span class="comment">// n.b. we do not escape the first (0th) arg to allow `drush ssh &#39;ls /path&#39;`</span></div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;  <span class="comment">// to work in addition to the preferred form of `drush ssh ls /path`.</span></div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;  <span class="comment">// Supporting the legacy form means that we cannot give the full path to an</span></div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;  <span class="comment">// executable if it contains spaces.</span></div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;  <span class="keywordflow">for</span> ($x = 1; $x &lt; count($args); $x++) {</div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;    $args[$x] = drush_escapeshellarg($args[$x]);</div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;  }</div>
<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;  $command = implode(<span class="charliteral">&#39; &#39;</span>, $args);</div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;  <span class="keywordflow">if</span> (!$alias = <a class="code" href="context_8inc.html#ad25559f8d7d753f636fbeac347c29fc5">drush_get_context</a>(<span class="stringliteral">&#39;DRUSH_TARGET_SITE_ALIAS&#39;</span>)) {</div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="group__errorhandling.html#ga23fe9e1e8c1e5ade39256106044b6da4">drush_set_error</a>(<span class="stringliteral">&#39;DRUSH_MISSING_TARGET_ALIAS&#39;</span>, <span class="stringliteral">&#39;A site alias is required. The way you call ssh command has changed to `drush @alias ssh`.&#39;</span>);</div>
<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;  }</div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;  $site = <a class="code" href="sitealias_8inc.html#ac2f57b80441374522c4e4cdc3b7e0c2b">drush_sitealias_get_record</a>($alias);</div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;  <span class="comment">// If we have multiple sites, run ourselves on each one. Set context back when done.</span></div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;  <span class="keywordflow">if</span> (isset($site[<span class="stringliteral">&#39;site-list&#39;</span>])) {</div>
<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;    <span class="keywordflow">if</span> (empty($command)) {</div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;      <a class="code" href="group__errorhandling.html#ga23fe9e1e8c1e5ade39256106044b6da4">drush_set_error</a>(<span class="stringliteral">&#39;DRUSH_SITE_SSH_COMMAND_REQUIRED&#39;</span>, <a class="code" href="group__outputfunctions.html#ga1218abcb1e27dd3bb412113d1e344d96">dt</a>(<span class="stringliteral">&#39;A command is required when multiple site aliases are specified.&#39;</span>));</div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;      <span class="keywordflow">return</span>;</div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;    }</div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;    <span class="keywordflow">foreach</span> ($site[<span class="stringliteral">&#39;site-list&#39;</span>] as $alias_single) {</div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;      <a class="code" href="context_8inc.html#af983acfe90e7d7bbdbd67c57f93708ba">drush_set_context</a>(<span class="stringliteral">&#39;DRUSH_TARGET_SITE_ALIAS&#39;</span>, $alias_single);</div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;      <a class="code" href="ssh_8drush_8inc.html#a82a89cae3f9cd4bb76b6e9ac5bddb1cc">drush_ssh_site_ssh</a>($command);</div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;    }</div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;    <a class="code" href="context_8inc.html#af983acfe90e7d7bbdbd67c57f93708ba">drush_set_context</a>(<span class="stringliteral">&#39;DRUSH_TARGET_SITE_ALIAS&#39;</span>, $alias);</div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;    <span class="keywordflow">return</span>;</div>
<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;  }</div>
<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;</div>
<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;  <span class="keywordflow">if</span> (!<a class="code" href="sitealias_8inc.html#a5437d4bdf307bcc37cd15e903b3d99a9">drush_sitealias_is_remote_site</a>($alias)) {</div>
<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;    <span class="comment">// Local sites run their bash without SSH.</span></div>
<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;    $return = <a class="code" href="group__dispatching.html#ga125471885af052278a0874446b332cf9">drush_invoke_process</a>(<span class="stringliteral">&#39;@self&#39;</span>, <span class="stringliteral">&#39;core-execute&#39;</span>, array($command), array(<span class="stringliteral">&#39;escape&#39;</span> =&gt; FALSE));</div>
<div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;    <span class="keywordflow">return</span> $return[<span class="stringliteral">&#39;object&#39;</span>];</div>
<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;  }</div>
<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;</div>
<div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;  <span class="comment">// We have a remote site - build ssh command and run.</span></div>
<div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;  $interactive = FALSE;</div>
<div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;  $cd = <a class="code" href="context_8inc.html#afe91fb3e5219ecb2208c3b036b1f0cb8">drush_get_option</a>(<span class="stringliteral">&#39;cd&#39;</span>, TRUE);</div>
<div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;  <span class="keywordflow">if</span> (empty($command)) {</div>
<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;    $command = <span class="stringliteral">&#39;bash -l&#39;</span>;</div>
<div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;    $interactive = TRUE;</div>
<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;  }</div>
<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;  $cmd = <a class="code" href="group__commandwrappers.html#ga78a7ff5045fa4fc20c8e24dd2ba8d777">drush_shell_proc_build</a>($site, $command, $cd, $interactive);</div>
<div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;  $status = <a class="code" href="group__commandwrappers.html#ga3a1bb3ae751f14749ce1dbe4ec9c3288">drush_shell_proc_open</a>($cmd);</div>
<div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;  <span class="keywordflow">if</span> ($status != 0) {</div>
<div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="group__errorhandling.html#ga23fe9e1e8c1e5ade39256106044b6da4">drush_set_error</a>(<span class="stringliteral">&#39;DRUSH_SITE_SSH_ERROR&#39;</span>, <a class="code" href="group__outputfunctions.html#ga1218abcb1e27dd3bb412113d1e344d96">dt</a>(<span class="stringliteral">&#39;An error @code occurred while running the command `@command`&#39;</span>, array(<span class="stringliteral">&#39;@command&#39;</span> =&gt; $cmd, <span class="stringliteral">&#39;@code&#39;</span> =&gt; $status)));</div>
<div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;  }</div>
<div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;}</div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Wed Nov 2 2016 07:28:54 for Drush by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.1.2
</small></address>
</body>
</html>