aboutsummaryrefslogtreecommitdiff
path: root/src/connection/ssh.lisp
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2021-03-26 14:48:37 -0700
committerSean Whitton <spwhitton@spwhitton.name>2021-03-27 14:29:20 -0700
commitb25ded67d9e9147922f827e8ca0620a79e0d2140 (patch)
tree228c4c2e3e30a022163de0f3f2c261401dd7a60b /src/connection/ssh.lisp
parent856d654f7cff0e2be1feea155303486b18cc8e3f (diff)
downloadconsfigurator-b25ded67d9e9147922f827e8ca0620a79e0d2140.tar.gz
rework uploading data to be in terms of CONNECTION-UPLOAD
Incremental updates of items of prerequisite data was not implemented, so the previous meaning of CONNECTION-UPLOAD was not achieving much. This simplifies the core implementation, should still allow connection types to implement the method to provide optimisations, and provides a way to implement copying items of prerequisite data into chroots. Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
Diffstat (limited to 'src/connection/ssh.lisp')
-rw-r--r--src/connection/ssh.lisp4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/connection/ssh.lisp b/src/connection/ssh.lisp
index 5b89e27..e885ba9 100644
--- a/src/connection/ssh.lisp
+++ b/src/connection/ssh.lisp
@@ -46,7 +46,3 @@
(format nil "ssh ~A ~A"
(ssh-host connection)
(escape-sh-token (format nil "sh -c ~A" (escape-sh-token cmd)))))
-
-;; rsync it straight to to its destination so rsync can do incremental updates
-(defmethod connection-upload ((c ssh-connection) from to)
- (mrun "rsync" "-Pavc" from (format nil "~A:~A" (ssh-host c) to)))