* 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.
12 lines
349 B
Scheme
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 '())
|