function registerApplicationDeployments($client, $moduleIds, $moduleNames, $localhostId)
{
    echo "#### Registering Application Deployments on Localhost ####\n";
    foreach ($moduleNames as $name) {
        $deployId = $client->registerApplicationDeployment(createApplicationDeployment($moduleIds[$name], $localhostId, getExecutablePath() . "/" . $name, ApplicationParallelismType::SERIAL, $name + " application description"));
        echo "Successfully registered " . $name . " application on localhost, application Id = " . $deployId . "\n";
    }
}
Beispiel #2
0
 function commandExists($cmd)
 {
     $returnVal = trim(getExecutablePath("which {$cmd}"));
     return empty($returnVal) ? false : true;
 }
Beispiel #3
0
 private function envoyIsAvailable()
 {
     $path = $this->config->get('envoy_executable_path');
     if ($path == 'automatic' || empty($path)) {
         $this->envoyPath = getExecutablePath('envoy');
     } else {
         $this->envoyPath = $path;
     }
     if (!empty($this->envoyPath)) {
         if (!is_executable($this->envoyPath)) {
             $this->message("Envoy file ({$this->envoyPath}) is not executable.");
             $this->envoyPath = '';
         } else {
             $this->message('Envoy executable found at: ' . $this->envoyPath);
         }
     } else {
         $this->message('Envoy was not found.');
     }
     return !empty($this->envoyPath);
 }