Skip to content

Commit

Permalink
List Trac environments
Browse files Browse the repository at this point in the history
  • Loading branch information
foretspaisibles committed Sep 15, 2024
1 parent 2be4802 commit 0456926
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion libexec/lisp/operation.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
#:list-git-repositories
#:create-git-repository
#:delete-git-repository
#:list-trac-environments
))

(in-package #:org.melusina.cid/operation)
Expand Down Expand Up @@ -582,5 +583,21 @@ This is not to be confused with SAVE-PROJECT."
(run-console-program
(list "/bin/sh" "/opt/cid/bin/cid_repository" "-t" trac-environment "rm" name)
:project project))



;;;;
;;;; Administration of Trac Environments
;;;;

(defun list-trac-environments (&optional (project *project*))
"List trac environments."
(flet ((reserved-name-p (string)
(position string '("git" "www" "sites") :test #'string=))
(list-trac-directory ()
(run-console-program
(list "/bin/ls" "/var/trac")
:project project
:output :lines)))
(remove-if #'reserved-name-p (list-trac-directory))))

;;;; End of file `operation.lisp'

0 comments on commit 0456926

Please sign in to comment.