Function: tramp-enable-nspawn-method
tramp-enable-nspawn-method is an autoloaded and byte-compiled function
defined in tramp-container.el.gz.
Signature
(tramp-enable-nspawn-method)
Documentation
Enable connection to nspawn containers.
Source Code
;; Defined in /usr/src/emacs/lisp/net/tramp-container.el.gz
;; todo: check tramp-async-args and tramp-direct-async
;;;###tramp-autoload
(defun tramp-enable-nspawn-method ()
"Enable connection to nspawn containers."
(add-to-list 'tramp-methods
`(,tramp-nspawn-method
(tramp-login-program ,tramp-nspawn-program)
(tramp-login-args (("shell")
("-q")
("--uid" "%u")
("%h")))
(tramp-remote-shell ,tramp-default-remote-shell)
(tramp-remote-shell-login ("-l"))
(tramp-remote-shell-args ("-i" "-c"))))
(add-to-list 'tramp-default-host-alist `(,tramp-nspawn-method nil ".host"))
(add-to-list 'tramp-completion-multi-hop-methods tramp-nspawn-method)
(tramp-set-completion-function
tramp-nspawn-method
`((tramp-nspawn--completion-function ,tramp-nspawn-method))))