Conditions | 3 |
Paths | 3 |
Total Lines | 17 |
Code Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
27 | protected function doExecute() |
||
28 | { |
||
29 | $projectname = $this->dialogProvider->askFor("Please enter the name of the project", 'project'); |
||
30 | if ($this->fileSystemProvider->projectExists($projectname)) { |
||
31 | $project = $this->projectConfigProvider->loadProjectConfig($projectname); |
||
32 | $domains = array_merge(array($project['url']), $project['aliases']); |
||
33 | $results = array(); |
||
34 | foreach ($domains as $domain) { |
||
35 | $dnsSettings = $this->processProvider->executeCommand('dig +short ' . $domain); |
||
36 | $results[] = array($domain, trim($dnsSettings)."\n"); |
||
37 | } |
||
38 | |||
39 | $this->dialogProvider->renderTable(array('Project', 'DNS settings'), $results); |
||
40 | } else { |
||
41 | $this->dialogProvider->logError('Project not found'); |
||
42 | } |
||
43 | } |
||
44 | } |
||
45 |