示例#1
0
 public function unset_file($file)
 {
     $this->connect();
     $this->recursive_remove($file, false);
     Helpers::logmessage("Deleted: {$file}");
 }
示例#2
0
 public static function log($msg)
 {
     parent::logmessage($msg);
 }
示例#3
0
 public static function println($msg)
 {
     Helpers::logmessage($msg);
 }
示例#4
0
 protected function set_current_commit($target_commit, $list_only = false)
 {
     if (!$list_only) {
         $this->set_file('REVISION', $target_commit);
         $this->set_file('PREVIOUS_REVISION', empty($this->current_commit) ? $target_commit : $this->current_commit);
     }
     if (isset($this->server['maintenance_file'])) {
         $this->set_file($this->server['maintenance_file'], $this->server['maintenance_off_value']);
         Helpers::logmessage("Turned maintenance mode off.");
     }
     Helpers::logmessage("Finished working on: {$this->host}");
     $this->disconnect();
 }