Permalink
Browse files

remove slacker service

  • Loading branch information...
duck1123 committed Jul 11, 2012
1 parent b3464ca commit 23adde539c8cdfda2f6df34d244d7dd950988efd
Showing with 0 additions and 44 deletions.
  1. +0 −16 ciste-service-slacker/project.clj
  2. +0 −28 ciste-service-slacker/src/ciste/service/slacker.clj
@@ -1,16 +0,0 @@
-(defproject ciste/ciste-service-slacker "0.4.0-SNAPSHOT"
- :description "Slacker Connector Service for Ciste Applications"
- :url "http://github.com/duck1123/ciste"
- :author "Daniel E. Renfer <duck@kronkltd.net>"
- :min-lein-version "2.0.0"
- :dependencies [[ciste/ciste-core "0.4.0-SNAPSHOT"]
- [slacker "0.8.2"]]
- :profiles {:dev
- {:dependencies
- [[log4j "1.2.16"]
- [midje "1.4.0"]]}}
- :plugins [[lein-midje "2.0.0-SNAPSHOT"]]
- :autodoc {:name "Ciste Service Slacker"
- :copyright "2012 KRONK Ltd."}
- :warn-on-reflection true
- :jvm-opts ["-server"])
@@ -1,28 +0,0 @@
-(ns ciste.service.slacker
- (:use [ciste.config :only [config describe-config]]
- [slacker.client :only [defn-remote slackerc]]
- [slacker.server :only [start-slacker-server]]
- [slacker.client.common :only [invoke-slacker]])
- (:require [clojure.tools.logging :as log]))
-
-(describe-config [:slacker :port] :number
- "The port the slacker connection should run on")
-
-(describe-config [:slacker :use-zookeeper] :boolean
- "Should the zookeeper connection be used")
-
-(defn get-client
- ([host] (get-client host (config :slacker :port)))
- ([host port]
- (let [connect-str (str host ":" port)]
- (log/info (str "opening connection for " connect-str))
- (slackerc connect-str))))
-
-(defn send-command
- [client command]
- (invoke-slacker client ["ciste.commands" "parse-command" command]))
-
-(defn start
- []
- (log/info "Starting slacker server")
- (start-slacker-server (the-ns 'ciste.commands) (config :slacker :port)))

0 comments on commit 23adde5

Please sign in to comment.