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); }
public function taskDestroyServer($id) { return new DestroyTask($id, AdapterFactory::make(new Configuration())); }