Implement tasks and plays

This commit is contained in:
Ray Miller 2025-01-05 17:43:09 +00:00
parent d5593f4e3d
commit c290a5caea
Signed by: ray
GPG key ID: 043F786C4CD681B8
6 changed files with 191 additions and 65 deletions

21
tryme.scm Normal file
View file

@ -0,0 +1,21 @@
(use-modules
(ordo connection)
(ordo action filesystem)
(ordo play)
(ordo task))
(define (tryme)
(play (local-connection)
(list
(task "Create test directory"
(install-directory "/home/ray/ordo-test"))
(task "Create test file from string content"
(install-file "/home/ray/ordo-test/foo" #:content "Hello, world!\n"))
(task "Create test file from local source"
(install-file "/home/ray/ordo-test/bar" #:local-src "/home/ray/ordo-test/foo"))
(task "Create test file from remote source"
(install-file "/home/ray/ordo-test/baz" #:remote-src "/home/ray/ordo-test/bar"))
(task "Expect this to fail"
(install-file "/root/ordo.txt" #:content "Hello from Ordo!")))))
(tryme)