Commit graph

26 commits

Author SHA1 Message Date
93820dc307
Some refactoring, and implement stat
Add convenience functions run and must to the context module, and remove
the similar functions from connection.

In the connection module, rename %run to connection-run now that that
function has moved to context.
2025-01-08 18:27:46 +00:00
3153469a2c
Validate play vars 2025-01-08 09:56:12 +00:00
7f73a9b7de
Clean up validation of play arguments 2025-01-08 09:35:22 +00:00
5360e73d60
Add macro to simplify task context references 2025-01-08 09:13:19 +00:00
b4cdfc341a
Support for context vars without macros 2025-01-07 18:09:10 +00:00
af16ee29b6
Test vars and overrides 2025-01-06 22:08:33 +00:00
12c45b628c
Update handlers to resolve context refs 2025-01-06 21:44:20 +00:00
b463a828be
Fix task action handling
Refactor actions to remove context
2025-01-06 21:38:32 +00:00
Ray Miller
f2f88ce0dc Try to make context vars nestable in task action args 2025-01-06 20:49:42 +00:00
Ray Miller
b7e4b9dc74 An attempt at a task macro.
This is not complete: need to resolve context references.
2025-01-06 17:47:43 +00:00
87f243b16a
Some notes on vars 2025-01-05 19:19:28 +00:00
679d2552a9
Delete obsolete implementation files 2025-01-05 19:12:53 +00:00
52f011267b
Some refactoring
* Don't export record field setters (unless required)
* Remove get- prefix from record getters
* Introduce handlers (simplified tasks)
2025-01-05 19:10:42 +00:00
297d779ea4
Implement trigger handlers 2025-01-05 18:24:33 +00:00
c290a5caea
Implement tasks and plays 2025-01-05 17:43:09 +00:00
d5593f4e3d
Rework connection handling
* Capture stderr from run
* Simplify remote file handling
2025-01-05 12:13:10 +00:00
428c6ed4a5
Shell quote zero-length strings. 2025-01-04 12:13:40 +00:00
61524f3e79
Implement utility for shell quoting.
This is a port of Perl's String::ShellQuote, see
https://metacpan.org/release/ROSCH/String-ShellQuote-1.04/source
2025-01-04 12:03:43 +00:00
d7b49f2b3b
Implement connection methods 2025-01-03 17:46:21 +00:00
Ray Miller
cac302e739 Make a start on connection 2025-01-03 11:32:23 +00:00
Ray Miller
6f217e006e Make a start on prerequisite data. 2024-08-15 16:16:53 +01:00
Ray Miller
2a8fb2ce5b Simplify call-with-temporary-directory. 2024-07-17 17:25:29 +01:00
Ray Miller
522f75ffac Fix exports for util/process. 2024-07-17 17:19:54 +01:00
Ray Miller
4ebd83491c Some refactoring and new functionality.
* Rename util/run to util/process.
* Rename `run` to `capture` to better reflect functionality.
* Implement `with-env`.
* Rename util/tmpdir to util/filesystem.
* Implement `delete-file-recursively`.
* Implement `call-with-temporary-directory`.
* Flesh out creation of tarball for transfer to remote system.
2024-07-17 17:12:36 +01:00
Ray Miller
b29156d557 Temporary directories and the start of play. 2024-07-16 16:26:09 +01:00
Ray Miller
3e1b3e3f37 Initial check-in. 2024-07-14 17:11:24 +01:00