Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use Clojure to run system administration and deployment tasks over SSH? [closed]

Python has the Fabric library to perform such actions, does Clojure have options like that ?

like image 496
Bruno Lee Avatar asked Dec 10 '25 23:12

Bruno Lee


1 Answers

You should take a look to stevedore, it's used extensively in pallet.

From the script reference:

(use '[pallet.stevedore :only [script with-script-language]])
(use '[pallet.script :only [with-script-context]])
(require 'pallet.stevedore.bash) ;; for bash output

(with-script-language :pallet.stevedore.bash/bash
  (with-script-context [:ubuntu]
    (script
      ("ls")))
like image 90
guilespi Avatar answered Dec 13 '25 04:12

guilespi



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!