예제 #1
0
파일: TaskShell.php 프로젝트: denvolj/caked
 public function add($directory, $method = "DROPBOX", $exec_time = null)
 {
     $exec_time === null ?: ($exec_time = new \DateTime($exec_time));
     $task = Task::add($method, $directory, $exec_time);
     $this->out("Creating task with root directory: {$directory}. Method: {$method}", 1, Shell::QUIET);
     $this->out('Created new task with id: ' . $task["task_id"], 1, Shell::QUIET);
 }