如何使用Clojure通过SSH运行系统管理和部署任务?

Bru*_*uno 3 system-administration build clojure

Python有Fabric库来执行这样的操作,Clojure有这样的选择吗?

Gui*_*ler 6

你应该看看装卸工,它被广泛使用pallet.

从脚本参考:

(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")))
Run Code Online (Sandbox Code Playgroud)