1 | <?php |
||
12 | class Local implements ServerInterface |
||
13 | { |
||
14 | const TIMEOUT = 300; |
||
15 | |||
16 | /** |
||
17 | * @var Configuration |
||
18 | */ |
||
19 | 1 | private $configuration; |
|
20 | |||
21 | /** |
||
22 | 1 | * Local constructor. |
|
23 | * @param $config |
||
24 | */ |
||
25 | public function __construct(Configuration $config = null) |
||
33 | 12 | ||
34 | /** |
||
35 | 12 | * @return Configuration |
|
36 | */ |
||
37 | public function getConfiguration() |
||
41 | |||
42 | /** |
||
43 | * {@inheritdoc} |
||
44 | */ |
||
45 | public function connect() |
||
49 | |||
50 | /** |
||
51 | * {@inheritdoc} |
||
52 | */ |
||
53 | public function run($command) |
||
57 | |||
58 | /** |
||
59 | * @param string $command |
||
60 | * @param callable $callback |
||
61 | * @return string |
||
62 | */ |
||
63 | public function mustRun($command, $callback = null) |
||
73 | |||
74 | /** |
||
75 | * {@inheritdoc} |
||
76 | */ |
||
77 | public function upload($local, $remote) |
||
81 | |||
82 | /** |
||
83 | * {@inheritdoc} |
||
84 | */ |
||
85 | public function download($local, $remote) |
||
89 | } |
||
90 |