This repository has been archived by the owner on Jun 15, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
48 additions
and
2 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,9 @@ | |
(:require [lambdacd.steps.shell :as shell] | ||
[lambdacd.steps.git :as git] | ||
[lambdacd.steps.manualtrigger :as manualtrigger] | ||
[lambdacd.steps.support :as support])) | ||
[lambdacd.steps.support :as support] | ||
[clojure.core.async :as async] | ||
[clojure.tools.logging :as log])) | ||
|
||
;; Let's define some constants | ||
(def backend-repo "[email protected]:flosell/todo-backend-compojure.git") | ||
|
@@ -42,6 +44,26 @@ | |
(defn wait-for-greeting [args ctx] | ||
(manualtrigger/parameterized-trigger {:greeting { :desc "some greeting"}} ctx)) | ||
|
||
(defn log-lots-of-output [args ctx] | ||
(support/capture-output ctx | ||
(doall (for [i (range 800)] | ||
(support/if-not-killed ctx | ||
(do | ||
(log/info (str "trying write to " (:result-channel ctx) " " i)) | ||
(async/>!! (:result-channel ctx) [:xyz i]) | ||
(log/info (str "tried write to " (:result-channel ctx) " " i))) | ||
))) | ||
{:status :success})) | ||
|
||
(defn log-lots-of-output-in-chaining [args ctx] | ||
(support/chaining args ctx | ||
(log-lots-of-output support/injected-args support/injected-ctx))) | ||
|
||
(defn log-lots-of-output-in-more-chaining [args ctx] | ||
(support/chaining args ctx | ||
(log-lots-of-output-in-chaining support/injected-args support/injected-ctx))) | ||
|
||
|
||
(defn demonstrate-ansi [args ctx] | ||
(shell/bash ctx "/" | ||
"printf \"\\033[0mAll attributes off\\033[0m\\n\"" | ||
|
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