/** * @param array $requestVars * @return TemplateRenderer * @todo: this needs some refactoring when we have more deployment methods */ private function getInventory(array $requestVars) { $ipAddress = $requestVars['vagrant_local']['vm']['ip']; $inventory = new TemplateRenderer(); $inventory->add('ipAddress', $ipAddress); $inventory->setTemplate('inventory.twig'); $inventory->setFilePath('ansible/inventories/dev'); return $inventory; }
/** * @param string $name */ public function __construct($name) { $this->name = $name; parent::__construct(); }