forked from pjlegato/ring.middleware.logger
-
Notifications
You must be signed in to change notification settings - Fork 0
/
control.clj
14 lines (11 loc) · 870 Bytes
/
control.clj
1
2
3
4
5
6
7
8
9
10
11
12
13
14
(use '[control.commands])
(defcluster :lsmaven
:user ~(System/getenv "USER")
:addresses ["maven.likestream.net"])
(deftask :deploy "Deploy jar and pom to maven repo" []
(ssh "rm -f /home2/maven/maven2/net/likestream/ring.middleware.logger/0.2.1/ring.middleware.logger-0.2.1.jar" :sudo true)
(ssh "rm -f /home2/maven/maven2/net/likestream/ring.middleware.logger/0.2.1/ring.middleware.logger-0.2.1.pom" :sudo true)
(ssh "mkdir -p /home2/maven/maven2/net/likestream/ring.middleware.logger/0.2.1" :sudo true)
(scp "ring.middleware.logger-0.2.1.jar" "/home2/maven/maven2/net/likestream/ring.middleware.logger/0.2.1" :sudo true)
(scp "pom.xml" "/home2/maven/maven2/net/likestream/ring.middleware.logger/0.2.1/ring.middleware.logger-0.2.1.pom" :sudo true)
(ssh "chown -R maven:daemon /home2/maven/maven2/net/likestream/ring.middleware.logger" :sudo true))