File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 94
94
<dependency >
95
95
<groupId >slingshot</groupId >
96
96
<artifactId >slingshot</artifactId >
97
- <version >0.10.0 </version >
97
+ <version >${slingshot.version} </version >
98
98
</dependency >
99
99
<dependency >
100
100
<groupId >org.clojure</groupId >
155
155
<properties >
156
156
<project .build.sourceEncoding>UTF-8</project .build.sourceEncoding>
157
157
<clojure .version>1.2.0</clojure .version>
158
+ <slingshot .version>0.2.0</slingshot .version>
158
159
</properties >
159
160
</project >
Original file line number Diff line number Diff line change @@ -43,12 +43,16 @@ Licensed under EPL (http://www.eclipse.org/legal/epl-v10.html)"
43
43
[clojure.java.io :as io]
44
44
[clojure.string :as string]
45
45
[clojure.tools.logging :as logging])
46
- (:use
47
- [slingshot.slingshot :only [throw+]])
48
46
(:import [com.jcraft.jsch
49
47
JSch Session Channel ChannelShell ChannelExec ChannelSftp
50
48
Identity IdentityFile Logger KeyPair]))
51
49
50
+ ; ; slingshot version compatability
51
+ (try
52
+ (use '[slingshot.slingshot :only [throw+]])
53
+ (catch Exception _
54
+ (use '[slingshot.core :only [throw+]])))
55
+
52
56
(def ^{:doc " SSH agent used to manage identities." :dynamic true }
53
57
*ssh-agent*)
54
58
You can’t perform that action at this time.
0 commit comments