Example #1
0
 /**
  * Validate configuration
  *
  * @return boolean
  */
 protected function validateConfiguration()
 {
     $ret = parent::validateConfiguration();
     $output = $this->output;
     // ##################
     // SSH (optional)
     // ##################
     if ($this->contextConfig->exists('ssh')) {
         // Check if one database is configured
         if (!$this->contextConfig->exists('ssh.hostname')) {
             $output->writeln('<p-error>No ssh hostname configuration found</p-error>');
             $ret = false;
         }
     }
     return $ret;
 }
Example #2
0
 /**
  * Startup task
  */
 protected function startup()
 {
     $this->output->writeln('<h2>Starting server deployment</h2>');
     parent::startup();
 }