moved some files to archive
This commit is contained in:
parent
ef4b4b7736
commit
db9fadcb0a
25 changed files with 15 additions and 0 deletions
|
@ -1,18 +0,0 @@
|
|||
;; lab/core.scm - Core infrastructure operations (impure)
|
||||
|
||||
(define-module (lab core)
|
||||
#:use-module (utils config)
|
||||
#:use-module (utils ssh)
|
||||
#:use-module (utils logging)
|
||||
#:export (get-infrastructure-status))
|
||||
|
||||
;; Impure function: Get infrastructure status with side effects
|
||||
(define (get-infrastructure-status)
|
||||
"Get status of all machines (impure - has logging side effects)"
|
||||
(log-info "Checking infrastructure status...")
|
||||
(let ((machines (get-all-machines)))
|
||||
(map (lambda (machine)
|
||||
(let ((status (test-ssh-connection machine)))
|
||||
`((machine . ,machine)
|
||||
(status . ,(if status 'online 'offline)))))
|
||||
machines)))
|
Loading…
Add table
Add a link
Reference in a new issue