git.cweiske.de
/
shpub.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
debug option to print curl requests
[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
echo $key . "\n";
15
if ($verbose) {
16
echo ' URL: ' . $host->server . "\n";
17
echo ' User: ' . $host->user . "\n";
18
}
19
}
20
}
21
}
22
?>