From f33dc0b17b4525d2c68488421eb933ec1adb2586 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roger=20L=C3=B3pez?= Date: Sat, 1 Oct 2011 22:43:07 -0400 Subject: [PATCH] better message on feather-add --- feather.drush.inc | 2 ++ includes/conf-file.inc | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/feather.drush.inc b/feather.drush.inc index 85b8299..8b71e03 100644 --- a/feather.drush.inc +++ b/feather.drush.inc @@ -219,6 +219,8 @@ function drush_feather_add($alias = NULL) { } $vhost->save(); + drush_log("[Added] {$vhost->name} -> {$vhost->doc_root}", 'ok'); + if ($server->is_running()) { $server->stop(); $server->start(); diff --git a/includes/conf-file.inc b/includes/conf-file.inc index eece2eb..5acde9f 100644 --- a/includes/conf-file.inc +++ b/includes/conf-file.inc @@ -131,9 +131,10 @@ class FeatherVhostConfFile extends FeatherConfFile { $this->uri = $uri; $this->host = parse_url($uri, PHP_URL_HOST); $this->port = parse_url($uri, PHP_URL_PORT); + $this->name = $this->host .':'. $this->port; $server = feather_get_server(); - $filepath = "{$server->conf_path}/sites/{$this->host}:{$this->port}.conf"; + $filepath = "{$server->conf_path}/sites/{$this->name}.conf"; parent::__construct($filepath, 'vhost.tpl.php'); }