| 1 | <?php |
||
| 10 | class DnsDock extends InstallerTask implements DependentChainProcessInterface |
||
| 11 | { |
||
| 12 | const IP = '172.17.42.1'; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @var ProcessRunner |
||
| 16 | */ |
||
| 17 | private $processRunner; |
||
| 18 | /** |
||
| 19 | * @var UserInteraction |
||
| 20 | */ |
||
| 21 | private $userInteraction; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @param UserInteraction $userInteraction |
||
| 25 | * @param ProcessRunner $processRunner |
||
| 26 | */ |
||
| 27 | public function __construct(UserInteraction $userInteraction, ProcessRunner $processRunner) |
||
| 28 | { |
||
| 29 | $this->userInteraction = $userInteraction; |
||
| 30 | $this->processRunner = $processRunner; |
||
| 31 | } |
||
| 32 | |||
| 33 | /** |
||
| 34 | * {@inheritdoc} |
||
| 35 | */ |
||
| 36 | public function dependsOn() |
||
| 40 | |||
| 41 | /** |
||
| 42 | * {@inheritdoc} |
||
| 43 | */ |
||
| 44 | public function getName() |
||
| 48 | |||
| 49 | public function run() |
||
| 55 | |||
| 56 | private function getDockerIp() |
||
| 63 | } |
||
| 64 |