[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/ssh-deploy 861f1c7 013/133: Updated documentation
From: |
Stefan Monnier |
Subject: |
[elpa] externals/ssh-deploy 861f1c7 013/133: Updated documentation |
Date: |
Sat, 27 Mar 2021 14:48:34 -0400 (EDT) |
branch: externals/ssh-deploy
commit 861f1c78f6300a859c70cd78f6c6c73e5ae4d77c
Author: Christian Johansson <christian@cvj.se>
Commit: Christian Johansson <christian@cvj.se>
Updated documentation
---
README.md | 32 +++++++++++---------------------
ssh-deploy.el | 8 ++++----
2 files changed, 15 insertions(+), 25 deletions(-)
diff --git a/README.md b/README.md
index 9e2e2a3..ef0fd70 100644
--- a/README.md
+++ b/README.md
@@ -34,28 +34,18 @@ Here is a list of other variables you can set globally or
per directory:
* `ssh-deploy-automatically-detect-remote-changes` Enables automatic detection
of remote changes *(integer)*
* `ssh-deploy-on-explicit-save` Enabled automatic uploads on save *(integer)*
* `ssh-deploy-exclude-list` A list defining what paths to exclude from
deployment *(list)*
-<<<<<<< HEAD
* `ssh-deploy-async` Enables asynchronous transfers (you need to have
`(make-thread)` or `async.el` installed as well) *(integer)*
-=======
-* `ssh-deploy-async` Enables asynchronous transfers (you need to have
`(make-thread)` or `async.el` installed as well) *(boolean)*
->>>>>>> b93b94469ef7f00c87367b16c371596683065343
* `ssh-deploy-remote-sql-database` Default database when connecting to remote
SQL database *(string)*
* `ssh-deploy-remote-sql-password` Default password when connecting to remote
SQL database *(string)*
* `ssh-deploy-remote-sql-port` - Default port when connecting to remote SQL
database *(integer)*
* `ssh-deploy-remote-sql-server` Default server when connecting to remote SQL
database *(string)*
* `ssh-deploy-remote-sql-user` Default user when connecting to remote SQL
database *(string)*
* `ssh-deploy-remote-shell-executable` Default remote shell executable when
launching shell on remote host *(string)*
-<<<<<<< HEAD
* `ssh-deploy-verbose` Show messages in message buffer when starting and
ending actions, default t *(integer)*
* `ssh-deploy-script` - Your custom lambda function that will be called using
(funcall) when running deploy script handler *(function)*
* `ssh-deploy-async-with-threads` - Whether to use threads (make threads)
instead of processes (async-start) for asynchronous operations, default nil
*(integer)*
When integers are used as booleans, above zero equals true and otherwise it's
false.
-=======
-* `ssh-deploy-verbose` Show messages in message buffer when starting and
ending actions, default t *(boolean)*
-* `ssh-deploy-script` - Your custom lambda function that will be called using
(funcall) when running deploy script handler
-* `ssh-deploy-async-with-threads` - Whether to use threads (make threads)
instead of processes (async-start) for asynchronous operations, default nil
*(boolean)*
->>>>>>> b93b94469ef7f00c87367b16c371596683065343
## Deployment configuration examples
@@ -70,7 +60,7 @@ You really need to do a bit of research about how to connect
via different proto
((nil . (
(ssh-deploy-root-local . "/Users/username/Web/MySite/")
(ssh-deploy-root-remote . "/ssh:myuser@myserver.com:/var/www/MySite/")
- (ssh-deploy-on-explicit-save . t)
+ (ssh-deploy-on-explicit-save . 1)
(ssh-deploy-remote-sql-database . "myuser")
(ssh-deploy-remote-sql-password . "mypassword")
(ssh-deploy-remote-sql-user . "myuser")
@@ -83,7 +73,7 @@ You really need to do a bit of research about how to connect
via different proto
((nil . (
(ssh-deploy-root-local . "/Users/username/Web/MySite/")
(ssh-deploy-root-remote . "/sftp:myuser@myserver.com:/var/www/MySite/")
- (ssh-deploy-on-explicit-save . t)
+ (ssh-deploy-on-explicit-save . 1)
)))
```
@@ -93,8 +83,8 @@ You really need to do a bit of research about how to connect
via different proto
((nil . (
(ssh-deploy-root-local . "/Users/username/Web/MySite/")
(ssh-deploy-root-remote . "/ssh:myuser@myserver.com#2120:/var/www/MySite/")
- (ssh-deploy-on-explicit-save . nil)
- (ssh-deploy-async . nil)
+ (ssh-deploy-on-explicit-save . 0)
+ (ssh-deploy-async . 0)
)))
```
@@ -106,8 +96,8 @@ You can pipe remote connections as well like this:
((nil . (
(ssh-deploy-root-local . "/Users/username/Web/MySite/")
(ssh-deploy-root-remote .
"/ssh:myuser@myserver.com|sudo:web@myserver.com:/var/www/MySite/")
- (ssh-deploy-async . nil)
- (ssh-deploy-on-explicit-save . t)
+ (ssh-deploy-async . 0)
+ (ssh-deploy-on-explicit-save . 1)
(ssh-deploy-script . (lambda() (let ((default-directory
ssh-deploy-root-remote))(shell-command "bash compile.sh"))))
)))
```
@@ -120,7 +110,7 @@ If you have a password-less sudo on your remote host you
should be to do this as
((nil . (
(ssh-deploy-root-local . "/Users/username/Web/MySite/")
(ssh-deploy-root-remote . "/ftp:myuser@myserver.com:/MySite/")
- (ssh-deploy-on-explicit-save . t)
+ (ssh-deploy-on-explicit-save . 1)
)))
```
@@ -153,7 +143,7 @@ Set your user and group as owner and file permissions to
`600`. Emacs should now
## Interaction-free SSH setup using public-key password-based authorization
-By combining a `~/.netrc`, `~/.authinfo` or `~/.authinfo.gpg` setup and a
`public-key` setup you should be able to have a interaction-free public-key
password-based authorization that can be used asynchronously.
+By combining a `~/.authinfo.gpg` setup and a `public-key` setup you should be
able to have a interaction-free public-key password-based authorization that
can be used asynchronously.
## Emacs configuration example
@@ -190,8 +180,8 @@ By combining a `~/.netrc`, `~/.authinfo` or
`~/.authinfo.gpg` setup and a `publi
:ensure t
:demand
:bind (("C-c C-z" . hydra-ssh-deploy/body))
- :hook ((after-save . (lambda() (if (and (boundp
'ssh-deploy-on-explicit-save) ssh-deploy-on-explicit-save)
(ssh-deploy-upload-handler)) ))
- (find-file . (lambda() (if (and (boundp
'ssh-deploy-automatically-detect-remote-changes)
ssh-deploy-automatically-detect-remote-changes)
(ssh-deploy-remote-changes-handler)) )))
+ :hook ((after-save . (lambda() (if (and (boundp
'ssh-deploy-on-explicit-save) (> ssh-deploy-on-explicit-save 0)
(ssh-deploy-upload-handler)) ))
+ (find-file . (lambda() (if (and (boundp
'ssh-deploy-automatically-detect-remote-changes) (>
ssh-deploy-automatically-detect-remote-changes 0)
(ssh-deploy-remote-changes-handler)) )))
:config
(ssh-deploy-line-mode) ;; If you want mode-line feature
(defhydra hydra-ssh-deploy (:color red :hint nil)
@@ -266,7 +256,7 @@ macOS 10.13 removed the Darwin port of BSD `ftp` which is
needed for `ange-ftp`,
## TRAMP FTP doesn't read my ~/.authinfo.gpg
-Ange-FTP defaults to ~/.netrc so you need to add this to your init script:
+Ange-FTP defaults to `~/.netrc` so you need to add this to your init script:
``` elisp
(setq ange-ftp-netrc-filename "~/.authinfo.gpg")
diff --git a/ssh-deploy.el b/ssh-deploy.el
index ea75278..04406a6 100644
--- a/ssh-deploy.el
+++ b/ssh-deploy.el
@@ -127,16 +127,16 @@
;; ((nil . (
;; (ssh-deploy-root-local . "/Users/Chris/Web/Site1/")
;; (ssh-deploy-root-remote . "/ssh:myuser@myserver.com:/var/www/site1/")
-;; (ssh-deploy-on-explicit-save . t)
-;; (ssh-deploy-async . t)
+;; (ssh-deploy-on-explicit-save . 1)
+;; (ssh-deploy-async . 1)
;; )))
;;
;; Here is an example for SFTP deployment,
/Users/Chris/Web/Site2/.dir-locals.el:
;; ((nil . (
;; (ssh-deploy-root-local . "/Users/Chris/Web/Site2/")
;; (ssh-deploy-root-remote . "/sftp:myuser@myserver.com:/var/www/site2/")
-;; (ssh-deploy-on-explicit-save . nil)
-;; (ssh-deploy-async . nil)
+;; (ssh-deploy-on-explicit-save . 0)
+;; (ssh-deploy-async . 0)
;; (ssh-deploy-script . (lambda() (let ((default-directory
ssh-deploy-root-remote))(shell-command "bash compile.sh"))))
;; )))
;;
- [elpa] externals/ssh-deploy 20ce7f2 026/133: Created a pred-fined prefix map and hydra map, (continued)
- [elpa] externals/ssh-deploy 20ce7f2 026/133: Created a pred-fined prefix map and hydra map, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy a12e59f 027/133: Updated comments, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy c1f8837 029/133: Updated documentation with pre-defined hydra and pre-fix map, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy d548011 036/133: Fixed bug with constant definition, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy d853e2f 040/133: Fixed issue with passing local variables to diff-mode, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy 98c00bb 042/133: Fixed bug with synchronous forced uploads, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy 103588b 050/133: Running custom script asynchronously loads ssh-deploy library, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy 2b3a531 012/133: Updated date, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy d7a42fe 015/133: Replaced (concat) with (expand-file-name), Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy 80cd448 011/133: Merge branch 'master' of https://github.com/cjohansson/emacs-ssh-deploy, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy 861f1c7 013/133: Updated documentation,
Stefan Monnier <=
- [elpa] externals/ssh-deploy 2e3cf30 016/133: Fixed issue with directory differences, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy d5386ab 018/133: Renamed internal argument with-threads to async-with-threads, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy cb4c6ff 020/133: Using (expand-file-name) instead of (concat), Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy e0bd19c 022/133: Removed obsolete arguments from directory-diff operations, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy 102943f 028/133: Added pre-defined prefix key map, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy afbcc70 030/133: mode-line now shows whether current file is under deployment, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy 0e7c608 031/133: Deployment menu only shows when current buffer is deployment, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy 8dadac5 032/133: Made menu-bar feature optional, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy b409812 033/133: Started on implementing changes to diff-mode, Stefan Monnier, 2021/03/27