Created
February 26, 2012 22:58
-
-
Save hugoduncan/1919487 to your computer and use it in GitHub Desktop.
outline for with-ssh-tunnel
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(action/def-clj-action post-to-port | |
[session port] | |
;; forward port remote port `port` to local port `local-port` | |
(execute/with-ssh-tunnel session {local-port port} | |
(let [endpoint (format "http://localhost:%s%s" local-port url-path)] | |
(comment do something here) | |
session))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment