예제 #1
0
 public function taskProvisionServer($hostname, $region, $size, $image, $backups, $ipv6, $privateNetworking)
 {
     $configuration = new Configuration();
     $sshKeys = $configuration->sshKeys();
     $userData = $configuration->userData();
     return new ProvisionTask($hostname, $region, $size, $image, $backups, $ipv6, $privateNetworking, $sshKeys, AdapterFactory::make($configuration), $userData);
 }
예제 #2
0
 public function taskDestroyServer($id)
 {
     return new DestroyTask($id, AdapterFactory::make(new Configuration()));
 }