aboutsummaryrefslogtreecommitdiffstats
path: root/hypoctl
diff options
context:
space:
mode:
authorGravatar Tom Willemse2013-11-18 01:03:10 +0100
committerGravatar Tom Willemse2013-11-18 01:03:10 +0100
commit9788df48a9638c6bf37bc161abefcee7f583b64c (patch)
tree985ab921bc370df3449d3f248451591b2718684b /hypoctl
parent96bfb88a5e348c7bfad56d34eebaa891b68e2773 (diff)
downloadhypo-9788df48a9638c6bf37bc161abefcee7f583b64c.tar.gz
hypo-9788df48a9638c6bf37bc161abefcee7f583b64c.zip
Use git and filesystem as data back-end
Diffstat (limited to 'hypoctl')
-rwxr-xr-xhypoctl17
1 files changed, 0 insertions, 17 deletions
diff --git a/hypoctl b/hypoctl
index 40a69a5..e57e9eb 100755
--- a/hypoctl
+++ b/hypoctl
@@ -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