You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -81,10 +119,10 @@ public function create($args, $assoc_args) {
81
119
$data = array();
82
120
$data['label'] = Input::string($assoc_args, 'label', "Human readable label for the site");
83
121
$slug = Utils\sanitize_name( $data['label'] );
84
-
// this ugly logic is temporarily if to handle the deprecated --name flag and preserve backward compatibility. it can be removed in the next major release.
122
+
// this ugly logic is temporarily if to handle the deprecated --name flag and preserve backward compatibility. it can be removed in the next major release.
85
123
if (array_key_exists('name',$assoc_args)) {
86
124
$data['site_name'] = $assoc_args['name'];
87
-
} elseif (array_key_exists('site',$assoc_args)) {
125
+
} elseif (array_key_exists('site',$assoc_args)) {
88
126
$data['site_name'] = $assoc_args['site'];
89
127
} else {
90
128
$data['site_name'] = Input::string($assoc_args, 'site', "Machine name of the site; used as part of the default URL [ if left blank will be $slug]", $slug);
@@ -105,7 +143,7 @@ public function create($args, $assoc_args) {
105
143
$workflow->refresh();
106
144
$details = $workflow->status();
107
145
if ($details->result !== 'failed'AND$details->result !== 'aborted') {
108
-
Terminus\Loggers\Regular::coloredOutput('%G'.vsprintf('New "site" %s now building with "UUID" %s', array($details->waiting_for_task->params->site_name, $details->waiting_for_task->params->site_id)));
146
+
Terminus\Loggers\Regular::coloredOutput('%G'.vsprintf('New "site" %s now building with "UUID" %s', array($details->waiting_for_task->params->site_name, $details->waiting_for_task->params->site_id)));
109
147
}
110
148
$workflow->wait();
111
149
Terminus::success("Pow! You created a new site!");
@@ -189,7 +227,7 @@ function delete($args, $assoc_args) {
0 commit comments