Skip to content

Commit

Permalink
Merge pull request #157 from pantheon-systems/site-wake
Browse files Browse the repository at this point in the history
update validation / execution process to insure that the variables are a...
  • Loading branch information
Josh Koenig committed Aug 8, 2014
2 parents d00bd65 + 689643a commit 9af42a8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion terminus.drush.inc
Original file line number Diff line number Diff line change
Expand Up @@ -1010,6 +1010,7 @@ function drush_terminus_pantheon_site_wake_validate($site_uuid = FALSE, $environ
if (!$site_uuid = terminus_site_input($site_uuid, TRUE, TRUE)) {
return drush_set_error('DRUSH_PSITE_WAKE_INVALID_UUID', 'You must specify a valid site UUID.');
}
drush_set_option('site_uuid', $site_uuid);

if (!$site_name = terminus_pantheon_site_name($site_uuid)) {
return drush_set_error('DRUSH_PSITE_WAKE_NO_SITENAME', 'Unable to determine site name from UUID.');
Expand All @@ -1027,7 +1028,8 @@ function drush_terminus_pantheon_site_wake_validate($site_uuid = FALSE, $environ
/**
* Wake a Pantheon site.
*/
function drush_terminus_pantheon_site_wake($site_uuid = FALSE, $environment = FALSE) {
function drush_terminus_pantheon_site_wake() {
$site_uuid = drush_get_option('site_uuid');
$site_name = drush_get_option('site_name');
$environment = drush_get_option('environment');

Expand Down

0 comments on commit 9af42a8

Please sign in to comment.