Esempio n. 1
0
 /**
  * @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;
 }
Esempio n. 2
0
 /**
  * @param string $name
  */
 public function __construct($name)
 {
     $this->name = $name;
     parent::__construct();
 }