2011-04-16 15:45:37 -04:00
|
|
|
(in-package :coleslaw)
|
|
|
|
|
|
|
|
(defparameter *storage* nil
|
|
|
|
"A db-spec for postmodern or a hash-table cache. It is expected that
|
|
|
|
*storage* has methods for each Generic Function in coleslaw implemented.")
|
|
|
|
|
|
|
|
(defgeneric get-credentials (name)
|
|
|
|
(:documentation "Retrieve the credentials keyed by NAME from *storage*."))
|
|
|
|
|
|
|
|
(defgeneric set-credentials (name credentials)
|
|
|
|
(:documentation "Store the given CREDENTIALS in *storage* under NAME."))
|
2012-08-18 16:40:51 -04:00
|
|
|
|
|
|
|
(defun load-config ()
|
|
|
|
nil)
|
|
|
|
|
|
|
|
(defun exit-handler ()
|
|
|
|
nil)
|
|
|
|
|
|
|
|
(defun compile-blog ()
|
2012-08-18 16:51:07 -04:00
|
|
|
(with-current-directory *temporary-directory*
|
|
|
|
nil))
|
2012-08-18 16:40:51 -04:00
|
|
|
|
2012-08-18 16:51:07 -04:00
|
|
|
;; TODO: Make update interval a config option.
|
2012-08-18 16:40:51 -04:00
|
|
|
(defun main ()
|
|
|
|
(load-config)
|
|
|
|
(unwind-protect
|
|
|
|
(loop do (if (blog-update-p)
|
|
|
|
(compile-blog)
|
|
|
|
(sleep 600)))
|
|
|
|
(exit-handler)))
|