ordo/examples/uptime.scm
Ray Miller 78beb037e7
Fixes and simplifications
* Move remote-cmd from connection to an action module.
* Inventory now populates a global variable instead of returning a list.
* Added a `describe` method to connections.
* Cleaned up execute/continue-on-error etc.
* Removed workflow class.
2025-07-05 16:29:59 +01:00

12 lines
349 B
Scheme

(use-modules (ordo core)
(ordo inventory)
(ordo action remote-cmd)
(ordo logger)
(srfi srfi-26))
(define uptime (task #:name "uptime" #:action (cut remote-cmd <> "uptime" #:return car)))
;;(setup-logging! #:level 'DEBUG)
;;(load-inventory! "examples/inventory.scm")
;;(execute uptime 'all '())