@@ -14,6 +14,7 @@ |
||
14 | 14 | * |
15 | 15 | * @param string $format The format. |
16 | 16 | * @param mixed $value,... The value(s). |
17 | + * @param string $value |
|
17 | 18 | * |
18 | 19 | * @return Exception The exception. |
19 | 20 | */ |
@@ -10,7 +10,6 @@ |
||
10 | 10 | use Deployer\Collection\PersistentCollection; |
11 | 11 | use Deployer\Deployer; |
12 | 12 | use Deployer\Exception\GracefulShutdownException; |
13 | -use Deployer\Exception\NonFatalException; |
|
14 | 13 | use Deployer\Task\Context; |
15 | 14 | use Symfony\Component\Console\Input\InputArgument; |
16 | 15 | use Symfony\Component\Console\Input\InputInterface; |
@@ -56,11 +56,17 @@ discard block |
||
56 | 56 | return $this->config->has($name); |
57 | 57 | } |
58 | 58 | |
59 | + /** |
|
60 | + * @param integer $default |
|
61 | + */ |
|
59 | 62 | public function get(string $name, $default = null) |
60 | 63 | { |
61 | 64 | return $this->config->get($name, $default); |
62 | 65 | } |
63 | 66 | |
67 | + /** |
|
68 | + * @return string |
|
69 | + */ |
|
64 | 70 | public function alias() |
65 | 71 | { |
66 | 72 | return $this->config->get('alias'); |
@@ -76,16 +82,25 @@ discard block |
||
76 | 82 | return $this->config->get('user'); |
77 | 83 | } |
78 | 84 | |
85 | + /** |
|
86 | + * @return null|string |
|
87 | + */ |
|
79 | 88 | public function port() |
80 | 89 | { |
81 | 90 | return $this->config->get('port'); |
82 | 91 | } |
83 | 92 | |
93 | + /** |
|
94 | + * @return null|string |
|
95 | + */ |
|
84 | 96 | public function configFile() |
85 | 97 | { |
86 | 98 | return $this->config->get('config_file'); |
87 | 99 | } |
88 | 100 | |
101 | + /** |
|
102 | + * @return null|string |
|
103 | + */ |
|
89 | 104 | public function identityFile() |
90 | 105 | { |
91 | 106 | return $this->config->get('identity_file'); |
@@ -122,6 +122,9 @@ |
||
122 | 122 | return $exitCode; |
123 | 123 | } |
124 | 124 | |
125 | + /** |
|
126 | + * @param \Closure $callable |
|
127 | + */ |
|
125 | 128 | public function catchIO($callable) |
126 | 129 | { |
127 | 130 | $this->catchIO = $callable; |
@@ -11,11 +11,8 @@ |
||
11 | 11 | use Deployer\Configuration\Configuration; |
12 | 12 | use Deployer\Console\Application; |
13 | 13 | use Deployer\Deployer; |
14 | -use Deployer\Exception\Exception; |
|
15 | -use Deployer\Exception\GracefulShutdownException; |
|
16 | 14 | use Deployer\Host\Host; |
17 | 15 | use Deployer\Host\Localhost; |
18 | -use Deployer\Host\Storage; |
|
19 | 16 | use Deployer\Component\Ssh\Client; |
20 | 17 | use Deployer\Task\Context; |
21 | 18 | use Deployer\Task\Task; |