[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/ssh-deploy 8900586 163/173: Started working on support
From: |
Stefan Monnier |
Subject: |
[elpa] externals/ssh-deploy 8900586 163/173: Started working on support for deploy script |
Date: |
Sat, 20 Oct 2018 10:36:50 -0400 (EDT) |
branch: externals/ssh-deploy
commit 8900586a36449fbde31ed0ac78ee27bb632c1752
Author: Christian Johansson <address@hidden>
Commit: Christian Johansson <address@hidden>
Started working on support for deploy script
---
ssh-deploy.el | 30 ++++++++++++++++++++++++++++--
1 file changed, 28 insertions(+), 2 deletions(-)
diff --git a/ssh-deploy.el b/ssh-deploy.el
index 8635801..ddf9518 100644
--- a/ssh-deploy.el
+++ b/ssh-deploy.el
@@ -3,8 +3,8 @@
;; Author: Christian Johansson <github.com/cjohansson>
;; Maintainer: Christian Johansson <github.com/cjohansson>
;; Created: 5 Jul 2016
-;; Modified: 31 July 2018
-;; Version: 1.95
+;; Modified: 11 Aug 2018
+;; Version: 1.96
;; Keywords: tools, convenience
;; URL: https://github.com/cjohansson/emacs-ssh-deploy
@@ -194,6 +194,7 @@
(put 'ssh-deploy-debug 'permanent-local t)
(put 'ssh-deploy-debug 'safe-local-variable 'booleanp)
+;; TODO This flag needs to work better
(defcustom ssh-deploy-verbose t
"Boolean variable if debug messages should be shown, t by default."
:type 'boolean
@@ -271,6 +272,13 @@
(put 'ssh-deploy-remote-shell-executable 'permanent-local t)
(put 'ssh-deploy-remote-shell-executable 'safe-local-variable 'stringp)
+(defcustom ssh-deploy-script nil
+ "Lambda function to run with `funcall' when
`ssh-deploy-run-deploy-script-handler' is executed."
+ :type 'lambda
+ :group 'ssh-deploy)
+(put 'ssh-deploy-script 'permanent-local t)
+(put 'ssh-deploy-script 'safe-local-variable 'funcp)
+
(defconst ssh-deploy--status-idle 0
"The idle mode-line status.")
@@ -1305,12 +1313,21 @@
(let ((root-local (file-truename ssh-deploy-root-local)))
(ssh-deploy-browse-remote root-local root-local ssh-deploy-root-remote
ssh-deploy-exclude-list))))
+;;;### autoload
+(defun ssh-deploy-run-deploy-script-handler ()
+ "Run `ssh-deploy-script' with `funcall'."
+ (interactive)
+ (if (boundp 'ssh-deploy-script)
+ (funcall ssh-deploy-script)
+ (display-warning 'ssh-deploy (format "ssh-deploy-script lacks definition!"
type) :warning)))
+
;;; Menu-bar
;; Creating a new menu pane named Deployment in the menu-bar to the right of
“Tools” menu
;; This is particularly useful when key-bindings are not working because of
some mode
;; overriding them.
+
(define-key-after
global-map
[menu-bar sshdeploy]
@@ -1401,6 +1418,15 @@
(define-key
global-map
+ [menu-bar sshdeploy sc]
+ '("Run deploy script" . ssh-deploy-run-deploy-script-handler))
+(define-key
+ global-map
+ [menu-bar sshdeploy sep7]
+ '("--"))
+
+(Define-key
+ global-map
[menu-bar sshdeploy ulf]
'("Forced Upload" . ssh-deploy-upload-handler-forced))
(define-key
- [elpa] externals/ssh-deploy c84f56c 131/173: Added Open command to menu as well, (continued)
- [elpa] externals/ssh-deploy c84f56c 131/173: Added Open command to menu as well, Stefan Monnier, 2018/10/20
- [elpa] externals/ssh-deploy d0be946 124/173: Improved the salience of completion messages, Stefan Monnier, 2018/10/20
- [elpa] externals/ssh-deploy 53081a3 148/173: After downloading asynchronously associated buffer is reverted, Stefan Monnier, 2018/10/20
- [elpa] externals/ssh-deploy fd7abe9 143/173: Mode-line status update for asynchronously deleted file working, Stefan Monnier, 2018/10/20
- [elpa] externals/ssh-deploy e64a454 149/173: Starting ssh-deploy-mode-line on init, Stefan Monnier, 2018/10/20
- [elpa] externals/ssh-deploy 519939d 153/173: Fixes for mode-line status as stack, Stefan Monnier, 2018/10/20
- [elpa] externals/ssh-deploy 16a22f4 157/173: More (when (not to (unless conversions, Stefan Monnier, 2018/10/20
- [elpa] externals/ssh-deploy d9bc257 159/173: Updated version, Stefan Monnier, 2018/10/20
- [elpa] externals/ssh-deploy 5705104 155/173: Fixed issue were status list initialization was not working, Stefan Monnier, 2018/10/20
- [elpa] externals/ssh-deploy a1dbc2f 156/173: Using unless instead of (when (not, Stefan Monnier, 2018/10/20
- [elpa] externals/ssh-deploy 8900586 163/173: Started working on support for deploy script,
Stefan Monnier <=
- [elpa] externals/ssh-deploy e24f69d 127/173: Fixes 'display-warning throws 'wrong-type-argument error #39, Stefan Monnier, 2018/10/20
- [elpa] externals/ssh-deploy e869836 171/173: Added support for asynchronous deployment scripts, Stefan Monnier, 2018/10/20
- [elpa] externals/ssh-deploy 0ff0f77 152/173: Using a stack for buffer status instead, Stefan Monnier, 2018/10/20
- [elpa] externals/ssh-deploy 57f8638 167/173: Fixed issue were no run script was defined, Stefan Monnier, 2018/10/20
- [elpa] externals/ssh-deploy 8ed82d6 060/173: Added force upload handler, Stefan Monnier, 2018/10/20
- [elpa] externals/ssh-deploy b53b875 078/173: Improved remote eshell integration, Stefan Monnier, 2018/10/20
- [elpa] externals/ssh-deploy 08d5778 083/173: Added example hydra to README, Stefan Monnier, 2018/10/20
- [elpa] externals/ssh-deploy 5e0403c 085/173: Instructions for FTP in macOS 10.13, Stefan Monnier, 2018/10/20
- [elpa] externals/ssh-deploy 0d8b5de 095/173: Only open directory diff buffer if there was any differences, Stefan Monnier, 2018/10/20
- [elpa] externals/ssh-deploy 407402d 100/173: Improved documentation about interaction-free password-based authentication, Stefan Monnier, 2018/10/20