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