Example #1
0
 /**
  * Displays error
  *
  * @return void
  */
 public static function messageError($message)
 {
     \Deployer\CLI::writeLn(array(array(\Deployer\Logger::stamp() . ' ', \Deployer\CLI::FG_BLUE), array('Error! ', \Deployer\CLI::FG_RED), array($message)));
 }
Example #2
0
 /**
  * Gets/sets log data
  *
  * @param array $data
  * @return mixed
  */
 public function data(array $data = null)
 {
     if ($data === null) {
         return $this->_data;
     }
     $this->_data['log'] = $data;
     $this->_data['start_time'] = \Deployer\Logger::startTime('Y-m-d H:i:s');
     return $this;
 }