aboutsummaryrefslogtreecommitdiff
path: root/src/data.lisp
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2021-02-24 10:07:56 -0700
committerSean Whitton <spwhitton@spwhitton.name>2021-02-24 10:08:07 -0700
commitb07c6b345c0459f829a9792e49b321615c203c4e (patch)
tree4bf3341e513e94344474c59c99995ddba5e2c8d8 /src/data.lisp
parentabcde492596564dbc69ee0fc7f5cb0380937c9b2 (diff)
downloadconsfigurator-b07c6b345c0459f829a9792e49b321615c203c4e.tar.gz
add some output as Consfigurator executes deployments
Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
Diffstat (limited to 'src/data.lisp')
-rw-r--r--src/data.lisp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/data.lisp b/src/data.lisp
index 5ec2c2a..5f9846c 100644
--- a/src/data.lisp
+++ b/src/data.lisp
@@ -274,14 +274,14 @@ appropriate. Falls back to CONNECTION-WRITEFILE."
(when (subtypep (class-of *connection*)
'consfigurator.connection.local:local-connection)
(error "Attempt to upload data to the root Lisp; this is not allowed"))
- (let ((*dest* (remote-data-pathname (iden1 data)
- (iden2 data)
- (data-version data))))
- (declare (special *dest*))
- (run "mkdir" "-p" (pathname-directory-pathname *dest*))
- (call-next-method)
- (push (list (iden1 data) (iden2 data) *dest*)
- (getf *this-hop-info* :cached-data))))
+ (with-slots (iden1 iden2 data-version) data
+ (let ((*dest* (remote-data-pathname iden1 iden2 data-version)))
+ (declare (special *dest*))
+ (mrun "mkdir" "-p" (pathname-directory-pathname *dest*))
+ (format t "Uploading (~@{~S~^ ~}) ... " iden1 iden2 data-version)
+ (call-next-method)
+ (push (list iden1 iden2 *dest*) (getf *this-hop-info* :cached-data))
+ (format t "done.~%"))))
(defmethod connection-upload-data ((data file-data))
(declare (special *dest*))