diff options
author | Sean Whitton <spwhitton@spwhitton.name> | 2021-03-06 12:22:31 -0700 |
---|---|---|
committer | Sean Whitton <spwhitton@spwhitton.name> | 2021-03-06 12:22:36 -0700 |
commit | 6e15e8f3d71236461477175221d5f8e05a1d0ced (patch) | |
tree | 1628456ecd4402ad964d2fff9e999bb2880bc142 /src/connection.lisp | |
parent | 36cf911b88777db97088de48b8b35474f7503977 (diff) | |
download | consfigurator-6e15e8f3d71236461477175221d5f8e05a1d0ced.tar.gz |
move some definitions around
Pure code motion.
Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
Diffstat (limited to 'src/connection.lisp')
-rw-r--r-- | src/connection.lisp | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/src/connection.lisp b/src/connection.lisp index 079ef05..eeda6e3 100644 --- a/src/connection.lisp +++ b/src/connection.lisp @@ -24,6 +24,18 @@ "Object representing the currently active connection. Deployments dynamically bind this variable and then apply properties.") +(defvar *host* nil + "Object representing the host at the end of the current connection chain. +Deployments bind this variable. Its global value should remain nil. + +The main point of this is to allow properties to access the context in which +they're being applied.") + +(defvar *remote-lisp* nil + "Whether this Lisp is one started up within a call to DEPLOY*. +Currently only used within EVAL-PROPSPEC, and not exported. Try to avoid +assuming whether or not code is running in the root Lisp.") + ;; generic function operating on keywords which identify connection types (defgeneric establish-connection (type remaining &key) (:documentation @@ -291,10 +303,3 @@ start with RUN." ;; we may not be able to chown; that's okay (mrun :may-fail #?"chown ${uid}:${gid} ${path}"))) (connection-writefile *connection* path content umask))) - -(defvar *host* nil - "Object representing the host at the end of the current connection chain. -Deployments bind this variable. Its global value should remain nil. - -The main point of this is to allow properties to access the context in which -they're being applied.") |