Tidy up the AWS CLI interceptor example.

This commit is contained in:
Ray Miller 2025-01-26 14:02:19 +00:00
parent 7cf4e5a4df
commit dd885ce559
Signed by: ray
GPG key ID: 043F786C4CD681B8
6 changed files with 90 additions and 45 deletions

View file

@ -7,6 +7,7 @@
(ordo interceptor create-tmp-dir)
(ordo interceptor stat-file)
(ordo interceptor user-info)
(ordo interceptor command)
(ordo interceptor debug))
(playbook
@ -22,10 +23,12 @@
(install-file
"install-hello"
#:path (let-vars (tmp-dir) (file-name-join* tmp-dir "hello.txt"))
#:content (let-vars (file-content) file-content)
#:content (var file-content)
#:register 'hello)
(stat-file
"stat-hello"
#:path (let-vars (hello) hello)
#:path (var hello)
#:register 'hello-stat)
(command "list-tmp-dir" (list "ls" "-l" (var tmp-dir) #:check? #t) #:register 'dir-list)
(command "list-root-dir" (list "ls" "-l" "/root" #:check? #f) #:register 'root-list)
(debug-vars)))))