diff options
author | 2013-11-18 01:03:10 +0100 | |
---|---|---|
committer | 2013-11-18 01:03:10 +0100 | |
commit | 9788df48a9638c6bf37bc161abefcee7f583b64c (patch) | |
tree | 985ab921bc370df3449d3f248451591b2718684b /hypoctl | |
parent | 96bfb88a5e348c7bfad56d34eebaa891b68e2773 (diff) | |
download | hypo-9788df48a9638c6bf37bc161abefcee7f583b64c.tar.gz hypo-9788df48a9638c6bf37bc161abefcee7f583b64c.zip |
Use git and filesystem as data back-end
Diffstat (limited to 'hypoctl')
-rwxr-xr-x | hypoctl | 17 |
1 files changed, 0 insertions, 17 deletions
@@ -18,21 +18,6 @@ (import pycommand sys web os [hypo [hypo-start]]) -(try (import [config [*]]) - (catch [ImportError] - (print "Please copy the config.example.hy to config.hy and set" - "the values to your preference.") - (sys.exit 1))) - -(def db - (kwapply (web.database) - {"dbn" "postgres" "user" *dbuser* "pw" *dbpw* "db" *dbname*})) - -(defun hypo-purge [argv] - (db.delete "hfile" "TRUE") - (foreach [f (os.listdir "files/")] - (os.remove (os.path.join "files" f)))) - (defclass hypoctl-command (pycommand.CommandBase) [[usagestr "usage: hypoctl <command> [<args]"] [description "Control hypo"] @@ -40,8 +25,6 @@ (cond ((not self.args) (progn (print self.usage) 2)) - ((= (car self.args) "purge") - (hypo-purge (cdr self.args))) ((= (car self.args) "start") (hypo-start (cdr self.args))) (True |