예제 #1
0
 public function setup(array $requestVars, VagrantBundle $vagrantBundle)
 {
     parent::setup($requestVars, $vagrantBundle);
     // Add vagrant file
     $vagrantFile = $this->getVagrantfile($requestVars);
     $vagrantBundle->setVagrantFile($vagrantFile);
 }
예제 #2
0
 /**
  * {@inheritdoc}
  */
 public function setup(array $requestVars, VagrantBundle $vagrantBundle)
 {
     if (!$this->installRole($requestVars)) {
         return;
     }
     $playbook = $vagrantBundle->getPlaybook();
     $roleMap = $this->getRolePackageMap();
     foreach ($roleMap as $role => $package) {
         if ($playbook->hasRole($role)) {
             $this->addPhpPackage($package, $requestVars);
         }
     }
     parent::setup($requestVars, $vagrantBundle);
 }
예제 #3
0
 protected function installRole($requestVars)
 {
     return parent::installRole($requestVars) && $this->phpWillBeInstalled($requestVars);
 }