-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpp-tool
executable file
·21 lines (16 loc) · 938 Bytes
/
pp-tool
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/env php
<?php
require __DIR__.'/vendor/autoload.php';
use Symfony\Component\Console\Application;
use Symfony\Component\Yaml\Yaml;
$configValues = Yaml::parse(file_get_contents(__DIR__.'/config.yml'));
$powerPanelClient = new \Cinamo\PowerPanel\PowerPanelClient($configValues['cinamo.powerpanel']['username'], $configValues['cinamo.powerpanel']['password']);
$application = new Application();
$application->setName('PowerPanel Tool');
$application->setVersion('0.1');
$application->add(new \Cinamo\PowerPanel\Command\DomainsListCommand($powerPanelClient));
$application->add(new \Cinamo\PowerPanel\Command\DnsAddCommand($powerPanelClient));
$application->add(new \Cinamo\PowerPanel\Command\DnsShowCommand($powerPanelClient));
$application->add(new \Cinamo\PowerPanel\Command\DnsUpdateCommand($powerPanelClient));
$application->add(new \Cinamo\PowerPanel\Command\DnsMigrateIPCommand($powerPanelClient));
$application->run();