implement-c4k-and-provs #1
1 changed files with 12 additions and 0 deletions
|
@ -11,3 +11,15 @@
|
|||
(println command))
|
||||
(when-not dry-run
|
||||
(apply t/shell command))))
|
||||
|
||||
(defn-spec execute-output! string?
|
||||
[command seq?
|
||||
devops ::d/devops]
|
||||
(let [{:keys [dry-run debug]} devops]
|
||||
(when debug
|
||||
(println command))
|
||||
(when-not dry-run
|
||||
(->> command
|
||||
(t/shell {:out :string})
|
||||
:out
|
||||
clojure.string/trim))))
|
Loading…
Reference in a new issue