示例#1
0
 /**
  * {@inheritdoc}
  */
 public function setup(array $requestVars, VagrantBundle $vagrantBundle)
 {
     if (!array_key_exists($this->getSlug(), $requestVars)) {
         return;
     }
     if (!$this->installRole($requestVars)) {
         return;
     }
     $config = $requestVars[$this->getSlug()];
     if (!is_null($this->role)) {
         $vagrantBundle->getPlaybook()->addRole($this->role);
     }
     $vagrantBundle->getVarsFile()->addMultipleVars([$this->getSlug() => $config]);
 }