Drush: examples/sync_via_http.drush.inc File Reference

  1. 7.x doxygen/html/sync__via__http_8drush_8inc.html
  2. master doxygen/html/sync__via__http_8drush_8inc.html

Go to the source code of this file.

Functions

 sync_via_http_drush_help_alter (&$command)
 drush_sync_via_http_pre_sql_sync ($source=NULL, $destination=NULL)
 _drush_sync_via_http_download_file ($url, $user=FALSE, $password=FALSE, $destination=FALSE, $overwrite=TRUE)

Detailed Description

Example "Sync via HTTP" sql-sync command alter.

Sync_via_http allows you to sql-sync your database using HTTP (e.g. wget or curl) instead of rsync. This is helpful for exporting your database to colaborators without shell access to the production or staging server.

For example:

$aliases['staging'] = array (
'root' => '/srv/www/drupal',
'uri' => 'staging.site.com',
'source-command-specific' => array(
'sql-sync' => array(
'http-sync-user' => 'wwwadmin',
'http-sync-password' => 'secretsecret',
),
),
);

To use this feature, copy the 'source-command-specific' item from the example alias above, place it in your staging site aliases, and custom the access credentials as necessary. You must also copy the sync_via_http.drush.inc file to a location where Drush will find it, such as $HOME/.drush. See drush topic docs-commands for more information.

IMPORTANT NOTE: This example does not cause the sql dump to be performed; it is presumed that the dump file already exists at the provided URL. For a full solution, a web page that initiated an sql-dump (or perhaps a local sql-sync followed by an sql-sanitize and then an sql-dump) would be necessary.

Definition in file sync_via_http.drush.inc.

Function Documentation

_drush_sync_via_http_download_file (   $url,
  $user = FALSE,
  $password = FALSE,
  $destination = FALSE,
  $overwrite = TRUE 
)

Downloads a files.

Optionaly uses user authentication, using either wget or curl, as available.

Definition at line 89 of file sync_via_http.drush.inc.

References drush_file_not_empty(), drush_get_context(), drush_move_dir(), drush_shell_exec(), and drush_tempnam().

Referenced by drush_sync_via_http_pre_sql_sync().

Here is the call graph for this function:

Here is the caller graph for this function:

drush_sync_via_http_pre_sql_sync (   $source = NULL,
  $destination = NULL 
)

Implements drush_hook_pre_COMMAND().

During the pre hook, determine if the http-sync option has been specified. If it has been, then disable the normal ssh + rsync dump-and-transfer that sql-sync usually does, and transfer the database dump via an http download.

Definition at line 69 of file sync_via_http.drush.inc.

References _drush_sync_via_http_download_file(), drush_get_option(), drush_set_error(), drush_set_option(), and dt().

Here is the call graph for this function:

sync_via_http_drush_help_alter ( $command)

Implements hook_drush_help_alter().

When a hook extends a command with additional options, it must implement help alter and declare the option(s). Doing so will add the option to the help text for the modified command, and will also allow the new option to be specified on the command line. Without this, Drush will fail with an error when a user attempts to use the option.

Definition at line 53 of file sync_via_http.drush.inc.

File

doxygen/html/sync__via__http_8drush_8inc.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: examples/sync_via_http.drush.inc File Reference</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="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</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>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Groups</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><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_d28a4824dc47e487b107a5db32ef43c4.html">examples</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">sync_via_http.drush.inc File Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><a href="sync__via__http_8drush_8inc_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a7a8de4401897f3c7305caee2b4b4de0a"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sync__via__http_8drush_8inc.html#a7a8de4401897f3c7305caee2b4b4de0a">sync_via_http_drush_help_alter</a> (&amp;$command)</td></tr>
<tr class="memitem:af6ab20694d94fb5c16ec975eb0b5aa0d"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sync__via__http_8drush_8inc.html#af6ab20694d94fb5c16ec975eb0b5aa0d">drush_sync_via_http_pre_sql_sync</a> ($source=NULL, $destination=NULL)</td></tr>
<tr class="memitem:ababb0956fc32b685a05e6ccef8347672"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sync__via__http_8drush_8inc.html#ababb0956fc32b685a05e6ccef8347672">_drush_sync_via_http_download_file</a> ($url, $user=FALSE, $password=FALSE, $destination=FALSE, $overwrite=TRUE)</td></tr>
</table>
<a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>Example "Sync via HTTP" sql-sync command alter.</p>
<p>Sync_via_http allows you to sql-sync your database using HTTP (e.g. wget or curl) instead of rsync. This is helpful for exporting your database to colaborators without shell access to the production or staging server.</p>
<p>For example:</p>
<div class="fragment"><div class="line">$aliases[<span class="stringliteral">&#39;staging&#39;</span>] = array (</div>
<div class="line">  <span class="stringliteral">&#39;root&#39;</span> =&gt; <span class="stringliteral">&#39;/srv/www/drupal&#39;</span>,</div>
<div class="line">  <span class="stringliteral">&#39;uri&#39;</span> =&gt; <span class="stringliteral">&#39;staging.site.com&#39;</span>,</div>
<div class="line">  <span class="stringliteral">&#39;source-command-specific&#39;</span> =&gt; array(</div>
<div class="line">    <span class="stringliteral">&#39;sql-sync&#39;</span>  =&gt; array(</div>
<div class="line">      <span class="stringliteral">&#39;http-sync&#39;</span>  =&gt; <span class="stringliteral">&#39;https://staging.site.com/protected-directory/site-database-dump.sql&#39;</span>,</div>
<div class="line">      <span class="stringliteral">&#39;http-sync-user&#39;</span> =&gt; <span class="stringliteral">&#39;wwwadmin&#39;</span>,</div>
<div class="line">      <span class="stringliteral">&#39;http-sync-password&#39;</span> =&gt; <span class="stringliteral">&#39;secretsecret&#39;</span>,</div>
<div class="line">    ),</div>
<div class="line">  ),</div>
<div class="line">);</div>
</div><!-- fragment --><p>To use this feature, copy the 'source-command-specific' item from the example alias above, place it in your staging site aliases, and custom the access credentials as necessary. You must also copy the <a class="el" href="sync__via__http_8drush_8inc.html">sync_via_http.drush.inc</a> file to a location where Drush will find it, such as $HOME/.drush. See <code>drush topic docs-commands</code> for more information.</p>
<p>IMPORTANT NOTE: This example does not cause the sql dump to be performed; it is presumed that the dump file already exists at the provided URL. For a full solution, a web page that initiated an sql-dump (or perhaps a local sql-sync followed by an sql-sanitize and then an sql-dump) would be necessary. </p>

<p>Definition in file <a class="el" href="sync__via__http_8drush_8inc_source.html">sync_via_http.drush.inc</a>.</p>
</div><h2>Function Documentation</h2>
<a class="anchor" id="ababb0956fc32b685a05e6ccef8347672"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">_drush_sync_via_http_download_file </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$url</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$user</em> = <code>FALSE</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$password</em> = <code>FALSE</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$destination</em> = <code>FALSE</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$overwrite</em> = <code>TRUE</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Downloads a files.</p>
<p>Optionaly uses user authentication, using either wget or curl, as available. </p>

<p>Definition at line <a class="el" href="sync__via__http_8drush_8inc_source.html#l00089">89</a> of file <a class="el" href="sync__via__http_8drush_8inc_source.html">sync_via_http.drush.inc</a>.</p>

<p>References <a class="el" href="filesystem_8inc_source.html#l00610">drush_file_not_empty()</a>, <a class="el" href="context_8inc_source.html#l00328">drush_get_context()</a>, <a class="el" href="filesystem_8inc_source.html#l00302">drush_move_dir()</a>, <a class="el" href="exec_8inc_source.html#l00078">drush_shell_exec()</a>, and <a class="el" href="filesystem_8inc_source.html#l00485">drush_tempnam()</a>.</p>

<p>Referenced by <a class="el" href="sync__via__http_8drush_8inc_source.html#l00069">drush_sync_via_http_pre_sql_sync()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="sync__via__http_8drush_8inc_ababb0956fc32b685a05e6ccef8347672_cgraph.png" border="0" usemap="#sync__via__http_8drush_8inc_ababb0956fc32b685a05e6ccef8347672_cgraph" alt=""/></div>
<map name="sync__via__http_8drush_8inc_ababb0956fc32b685a05e6ccef8347672_cgraph" id="sync__via__http_8drush_8inc_ababb0956fc32b685a05e6ccef8347672_cgraph">
<area shape="rect" id="node3" href="group__filesystemfunctions.html#ga0d795889ef507c45abb793b8685b36d0" title="drush_file_not_empty" alt="" coords="203,5,349,35"/><area shape="rect" id="node5" href="context_8inc.html#ad25559f8d7d753f636fbeac347c29fc5" title="drush_get_context" alt="" coords="1455,488,1583,517"/><area shape="rect" id="node7" href="group__filesystemfunctions.html#gaac7379e8cfa2163a874542fc021bf521" title="drush_move_dir" alt="" coords="219,209,333,239"/><area shape="rect" id="node43" href="group__commandwrappers.html#gafd358ceac1286dbdd141ff2b8eb7d556" title="drush_shell_exec" alt="" coords="215,689,337,719"/><area shape="rect" id="node71" href="group__filesystemfunctions.html#ga01729c5c432a2f30974966d888146d09" title="drush_tempnam" alt="" coords="219,565,333,595"/><area shape="rect" id="node9" href="drush_8inc.html#a903c36790dbe5525fe9369c8476780af" title="drush_op" alt="" coords="585,131,660,160"/><area shape="rect" id="node17" href="group__outputfunctions.html#ga1218abcb1e27dd3bb412113d1e344d96" title="dt" alt="" coords="817,280,855,309"/><area shape="rect" id="node29" href="group__errorhandling.html#ga23fe9e1e8c1e5ade39256106044b6da4" title="drush_set_error" alt="" coords="780,437,892,467"/><area shape="rect" id="node37" href="group__filesystemfunctions.html#ga1d86ac8e2e56a75acb0abcdc8e0dcf09" title="drush_copy_dir" alt="" coords="399,235,508,264"/><area shape="rect" id="node11" href="group__logging.html#gad820f489a93518301794ada4ff7816b6" title="drush_log" alt="" coords="1037,332,1115,361"/><area shape="rect" id="node27" href="drush_8inc.html#a2dd83647cc42a2dfcde54dc38f54827d" title="drush_call_user_func\l_array" alt="" coords="764,109,908,155"/><area shape="rect" id="node14" href="backend_8inc.html#a38490210d77373f3d8492caf4e9a3190" title="drush_backend_packet" alt="" coords="1217,436,1372,465"/><area shape="rect" id="node19" href="includes_2drupal_8inc.html#ad2ccab77d4bc8e7355186f26cd328ac0" title="drush_drupal_major\l_version" alt="" coords="1009,109,1143,155"/><area shape="rect" id="node21" href="includes_2drupal_8inc.html#a203e989fd043d054d774954e2b2dff21" title="drush_drupal_version" alt="" coords="1223,121,1367,151"/><area shape="rect" id="node23" href="includes_2drupal_8inc.html#aa7ac001ed15d678fa533b54d962eb5bc" title="drush_drupal_load_autoloader" alt="" coords="1421,121,1616,151"/><area shape="rect" id="node32" href="includes_2command_8inc.html#a19eba9666aba673a64fbd78a2c5ef4f9" title="drush_command_invoke_all" alt="" coords="985,385,1167,415"/><area shape="rect" id="node45" href="group__commandwrappers.html#ga0eed47c4d6d19d386936ad57f34b10b2" title="_drush_shell_exec" alt="" coords="557,781,688,811"/><area shape="rect" id="node47" href="group__commandwrappers.html#gafc52f7e769d935b4d2462467cdf8d5ee" title="drush_escapeshellarg" alt="" coords="763,693,909,723"/><area shape="rect" id="node56" href="group__outputfunctions.html#ga63acbb94925d6d2693e235e966bba740" title="drush_print" alt="" coords="1033,901,1119,931"/><area shape="rect" id="node65" href="group__commandwrappers.html#ga3a1bb3ae751f14749ce1dbe4ec9c3288" title="drush_shell_proc_open" alt="" coords="759,851,913,880"/><area shape="rect" id="node69" href="group__commandwrappers.html#gac21dc9409bff5197d255978c3cf6e761" title="_drush_shell_exec_output_set" alt="" coords="737,747,935,776"/><area shape="rect" id="node49" href="includes_2environment_8inc.html#a88114295372bcb0ca8dbb5f10b36368e" title="drush_is_windows" alt="" coords="1012,608,1140,637"/><area shape="rect" id="node51" href="group__commandwrappers.html#gac60b4740ceccf95b8e60d1896d93d2ab" title="_drush_escapeshellarg\l_windows" alt="" coords="999,661,1153,707"/><area shape="rect" id="node53" href="group__commandwrappers.html#ga561ce790cc15caa5e1f0bfebc2546529" title="_drush_escapeshellarg\l_linux" alt="" coords="999,730,1153,777"/><area shape="rect" id="node58" href="context_8inc.html#afe91fb3e5219ecb2208c3b036b1f0cb8" title="drush_get_option" alt="" coords="1235,901,1355,931"/><area shape="rect" id="node60" href="context_8inc.html#aee5781894bf828bfa508d9052553f809" title="_drush_get_option" alt="" coords="1455,875,1583,904"/><area shape="rect" id="node63" href="context_8inc.html#a9f6272c1a68141ce873c07aae3a316ac" title="drush_context_names" alt="" coords="1444,928,1593,957"/><area shape="rect" id="node73" href="group__filesystemfunctions.html#gad1036a8fb12d105b55de87b4f3fe8002" title="drush_find_tmp" alt="" coords="399,565,508,595"/><area shape="rect" id="node88" href="group__filesystemfunctions.html#ga7557e035207db8d2dbe475e6a52c579c" title="drush_register_file\l_for_deletion" alt="" coords="559,693,687,739"/><area shape="rect" id="node76" href="includes_2environment_8inc.html#a339c57f584d4f3d910d8c36763d054c2" title="drush_cwd" alt="" coords="1033,555,1119,584"/><area shape="rect" id="node82" href="group__filesystemfunctions.html#ga6027285d97028ad3299d3aa262be8c2f" title="drush_mkdir" alt="" coords="576,437,669,467"/><area shape="rect" id="node79" href="context_8inc.html#af983acfe90e7d7bbdbd67c57f93708ba" title="drush_set_context" alt="" coords="1231,591,1359,620"/></map>
</div>
</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="sync__via__http_8drush_8inc_ababb0956fc32b685a05e6ccef8347672_icgraph.png" border="0" usemap="#sync__via__http_8drush_8inc_ababb0956fc32b685a05e6ccef8347672_icgraph" alt=""/></div>
<map name="sync__via__http_8drush_8inc_ababb0956fc32b685a05e6ccef8347672_icgraph" id="sync__via__http_8drush_8inc_ababb0956fc32b685a05e6ccef8347672_icgraph">
<area shape="rect" id="node3" href="sync__via__http_8drush_8inc.html#af6ab20694d94fb5c16ec975eb0b5aa0d" title="drush_sync_via_http\l_pre_sql_sync" alt="" coords="204,5,345,51"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="af6ab20694d94fb5c16ec975eb0b5aa0d"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">drush_sync_via_http_pre_sql_sync </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$source</em> = <code>NULL</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$destination</em> = <code>NULL</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Implements <a class="el" href="group__hooks.html#ga4467ad5336f96af65c0fe3ec14f934f7">drush_hook_pre_COMMAND()</a>.</p>
<p>During the pre hook, determine if the http-sync option has been specified. If it has been, then disable the normal ssh + rsync dump-and-transfer that sql-sync usually does, and transfer the database dump via an http download. </p>

<p>Definition at line <a class="el" href="sync__via__http_8drush_8inc_source.html#l00069">69</a> of file <a class="el" href="sync__via__http_8drush_8inc_source.html">sync_via_http.drush.inc</a>.</p>

<p>References <a class="el" href="sync__via__http_8drush_8inc_source.html#l00089">_drush_sync_via_http_download_file()</a>, <a class="el" href="context_8inc_source.html#l00405">drush_get_option()</a>, <a class="el" href="drush_8inc_source.html#l01723">drush_set_error()</a>, <a class="el" href="context_8inc_source.html#l00591">drush_set_option()</a>, and <a class="el" href="output_8inc_source.html#l00145">dt()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="sync__via__http_8drush_8inc_af6ab20694d94fb5c16ec975eb0b5aa0d_cgraph.png" border="0" usemap="#sync__via__http_8drush_8inc_af6ab20694d94fb5c16ec975eb0b5aa0d_cgraph" alt=""/></div>
<map name="sync__via__http_8drush_8inc_af6ab20694d94fb5c16ec975eb0b5aa0d_cgraph" id="sync__via__http_8drush_8inc_af6ab20694d94fb5c16ec975eb0b5aa0d_cgraph">
<area shape="rect" id="node3" href="sync__via__http_8drush_8inc.html#ababb0956fc32b685a05e6ccef8347672" title="_drush_sync_via_http\l_download_file" alt="" coords="197,408,347,455"/><area shape="rect" id="node19" href="group__outputfunctions.html#ga1218abcb1e27dd3bb412113d1e344d96" title="dt" alt="" coords="1075,971,1112,1001"/><area shape="rect" id="node31" href="group__errorhandling.html#ga23fe9e1e8c1e5ade39256106044b6da4" title="drush_set_error" alt="" coords="1037,711,1149,741"/><area shape="rect" id="node60" href="context_8inc.html#afe91fb3e5219ecb2208c3b036b1f0cb8" title="drush_get_option" alt="" coords="1251,185,1371,214"/><area shape="rect" id="node95" href="context_8inc.html#aa4b55e2f6174c8b6efaa8f23a0f9e0af" title="drush_set_option" alt="" coords="212,22,332,51"/><area shape="rect" id="node5" href="group__filesystemfunctions.html#ga0d795889ef507c45abb793b8685b36d0" title="drush_file_not_empty" alt="" coords="395,417,541,446"/><area shape="rect" id="node7" href="context_8inc.html#ad25559f8d7d753f636fbeac347c29fc5" title="drush_get_context" alt="" coords="1689,523,1817,553"/><area shape="rect" id="node9" href="group__filesystemfunctions.html#gaac7379e8cfa2163a874542fc021bf521" title="drush_move_dir" alt="" coords="411,945,525,974"/><area shape="rect" id="node45" href="group__commandwrappers.html#gafd358ceac1286dbdd141ff2b8eb7d556" title="drush_shell_exec" alt="" coords="407,338,529,367"/><area shape="rect" id="node73" href="group__filesystemfunctions.html#ga01729c5c432a2f30974966d888146d09" title="drush_tempnam" alt="" coords="411,570,525,599"/><area shape="rect" id="node11" href="drush_8inc.html#a903c36790dbe5525fe9369c8476780af" title="drush_op" alt="" coords="831,1123,905,1153"/><area shape="rect" id="node39" href="group__filesystemfunctions.html#ga1d86ac8e2e56a75acb0abcdc8e0dcf09" title="drush_copy_dir" alt="" coords="600,945,709,974"/><area shape="rect" id="node13" href="group__logging.html#gad820f489a93518301794ada4ff7816b6" title="drush_log" alt="" coords="1272,763,1349,793"/><area shape="rect" id="node29" href="drush_8inc.html#a2dd83647cc42a2dfcde54dc38f54827d" title="drush_call_user_func\l_array" alt="" coords="1021,1024,1165,1071"/><area shape="rect" id="node16" href="backend_8inc.html#a38490210d77373f3d8492caf4e9a3190" title="drush_backend_packet" alt="" coords="1452,711,1607,741"/><area shape="rect" id="node21" href="includes_2drupal_8inc.html#ad2ccab77d4bc8e7355186f26cd328ac0" title="drush_drupal_major\l_version" alt="" coords="1244,1019,1377,1065"/><area shape="rect" id="node23" href="includes_2drupal_8inc.html#a203e989fd043d054d774954e2b2dff21" title="drush_drupal_version" alt="" coords="1457,1195,1601,1225"/><area shape="rect" id="node25" href="includes_2drupal_8inc.html#aa7ac001ed15d678fa533b54d962eb5bc" title="drush_drupal_load_autoloader" alt="" coords="1656,1195,1851,1225"/><area shape="rect" id="node34" href="includes_2command_8inc.html#a19eba9666aba673a64fbd78a2c5ef4f9" title="drush_command_invoke_all" alt="" coords="1220,607,1401,637"/><area shape="rect" id="node47" href="group__commandwrappers.html#ga0eed47c4d6d19d386936ad57f34b10b2" title="_drush_shell_exec" alt="" coords="589,313,720,342"/><area shape="rect" id="node49" href="group__commandwrappers.html#gafc52f7e769d935b4d2462467cdf8d5ee" title="drush_escapeshellarg" alt="" coords="795,182,941,211"/><area shape="rect" id="node58" href="group__outputfunctions.html#ga63acbb94925d6d2693e235e966bba740" title="drush_print" alt="" coords="1051,393,1136,422"/><area shape="rect" id="node67" href="group__commandwrappers.html#ga3a1bb3ae751f14749ce1dbe4ec9c3288" title="drush_shell_proc_open" alt="" coords="791,441,945,470"/><area shape="rect" id="node71" href="group__commandwrappers.html#gac21dc9409bff5197d255978c3cf6e761" title="_drush_shell_exec_output_set" alt="" coords="769,235,967,265"/><area shape="rect" id="node51" href="includes_2environment_8inc.html#a88114295372bcb0ca8dbb5f10b36368e" title="drush_is_windows" alt="" coords="1029,339,1157,369"/><area shape="rect" id="node53" href="group__commandwrappers.html#gac60b4740ceccf95b8e60d1896d93d2ab" title="_drush_escapeshellarg\l_windows" alt="" coords="1016,149,1171,196"/><area shape="rect" id="node55" href="group__commandwrappers.html#ga561ce790cc15caa5e1f0bfebc2546529" title="_drush_escapeshellarg\l_linux" alt="" coords="1016,219,1171,265"/><area shape="rect" id="node62" href="context_8inc.html#aee5781894bf828bfa508d9052553f809" title="_drush_get_option" alt="" coords="1465,185,1593,214"/><area shape="rect" id="node65" href="context_8inc.html#a9f6272c1a68141ce873c07aae3a316ac" title="drush_context_names" alt="" coords="1455,131,1604,161"/><area shape="rect" id="node75" href="group__filesystemfunctions.html#gad1036a8fb12d105b55de87b4f3fe8002" title="drush_find_tmp" alt="" coords="600,570,709,599"/><area shape="rect" id="node90" href="group__filesystemfunctions.html#ga7557e035207db8d2dbe475e6a52c579c" title="drush_register_file\l_for_deletion" alt="" coords="804,699,932,745"/><area shape="rect" id="node78" href="includes_2environment_8inc.html#a339c57f584d4f3d910d8c36763d054c2" title="drush_cwd" alt="" coords="1268,497,1353,526"/><area shape="rect" id="node84" href="group__filesystemfunctions.html#ga6027285d97028ad3299d3aa262be8c2f" title="drush_mkdir" alt="" coords="821,595,915,625"/><area shape="rect" id="node81" href="context_8inc.html#af983acfe90e7d7bbdbd67c57f93708ba" title="drush_set_context" alt="" coords="1465,497,1593,526"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a7a8de4401897f3c7305caee2b4b4de0a"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">sync_via_http_drush_help_alter </td>
          <td>(</td>
          <td class="paramtype">&amp;&#160;</td>
          <td class="paramname"><em>$command</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Implements <a class="el" href="group__hooks.html#ga013c29fff5780421e512662dffb3ee6c">hook_drush_help_alter()</a>.</p>
<p>When a hook extends a command with additional options, it must implement help alter and declare the option(s). Doing so will add the option to the help text for the modified command, and will also allow the new option to be specified on the command line. Without this, Drush will fail with an error when a user attempts to use the option. </p>

<p>Definition at line <a class="el" href="sync__via__http_8drush_8inc_source.html#l00053">53</a> of file <a class="el" href="sync__via__http_8drush_8inc_source.html">sync_via_http.drush.inc</a>.</p>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Wed Oct 8 2014 09:04:59 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>