move constructor to command base class
[shpub.git] / src / shpub / Command / Server.php
1 <?php
2 namespace shpub;
3
4 class Command_Server
5 {
6     public function __construct(Config $cfg)
7     {
8         $this->cfg = $cfg;
9     }
10
11     public function run($verbose)
12     {
13         foreach ($this->cfg->hosts as $key => $host) {
14             Log::msg($key);
15             if ($verbose) {
16                 Log::msg('  URL:  ' . $host->server);
17                 Log::msg('  User: ' . $host->user);
18             }
19         }
20     }
21 }
22 ?>