function drush_sitealias_site_get

8.0.x sitealias.inc drush_sitealias_site_get()
6.x sitealias.inc drush_sitealias_site_get()
7.x sitealias.inc drush_sitealias_site_get()
5.x sitealias.inc drush_sitealias_site_get()
master sitealias.inc drush_sitealias_site_get()

Read the tmp file where the persistent site setting is stored.

Return value

string A valid site specification.

1 call to drush_sitealias_site_get()

File

includes/sitealias.inc, line 1968
The site alias API.

Code

function drush_sitealias_site_get() {
  if (($filename = drush_sitealias_get_envar_filename()) && file_exists($filename)) {
    $site = file_get_contents($filename);
    return $site;
  }
  else {
    return FALSE;
  }
}