-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove most of sitealias.inc. (#2979)
* Remove most of sitealias.inc. * Put back drush_convert_db_from_db_url(), as we are still using it. * Put back drush_sitealias_is_remote_site * Split DrupalDirectoryCommands out of CoreCommands, and fix bug with local directory paths.
- Loading branch information
1 parent
e9bd694
commit 7457172
Showing
13 changed files
with
223 additions
and
2,387 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -276,16 +276,6 @@ function legacy_drush_os($site_record = NULL) { | |
return $os; | ||
} | ||
|
||
/** | ||
* Determine the remote host ([email protected]) for | ||
* the specified site. | ||
*/ | ||
function drush_remote_host($site, $prefix = '') { | ||
$hostname = drush_escapeshellarg(drush_sitealias_get_option($site, 'remote-host', '', $prefix), "LOCAL"); | ||
$username = drush_escapeshellarg(drush_sitealias_get_option($site, 'remote-user', '', $prefix), "LOCAL"); | ||
return $username . (empty($username) ? '' : '@') . $hostname; | ||
} | ||
|
||
/** | ||
* Make an attempt to simply wrap the arg with the | ||
* kind of quote characters it does not already contain. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.