(lame-db:defdbstruct project name src)
(lame-db:defdbstruct job status sha when-run (project :join project))
+
+(defun project-dir (project)
+ (format nil "~Arepos/~A/" *candle-dir* (project-name project)))
(when
(not (git nil "ls-remote" src))
(error "Project uri is not a valid git repository"))
- (make-project :name name :src src)
+ (when
+ (find name *all-project* :test #'string= :key #'project-name)
+ (error "Project name already taken"))
+ (let
+ ((project (make-project :name name :src src)))
+ (ensure-directories-exist (project-dir project))
+ (git project "clone" src "."))
t)
(defun add-job (project-name sha)