Skip to content

Instantly share code, notes, and snippets.

@dnakov
Last active May 25, 2016 16:30
Show Gist options
  • Save dnakov/b57ae57828f84c06728ec48cb1a92820 to your computer and use it in GitHub Desktop.
Save dnakov/b57ae57828f84c06728ec48cb1a92820 to your computer and use it in GitHub Desktop.
spm-elisp
;; function
(defun sf-deploy ()
(interactive)
(message "Deploying")
(async-shell-command (format "spm deploy --rollbackOnError -F %s" buffer-file-name))
)
;; key binding
(global-set-key (kbd "M-S") 'sf-deploy)
;; expects there to be a .sf file in the root directory where the 'src' dir is
;; {
;; "username":"<sf_username>",
;; "password":"<sf_pass>",
;; "endpointUrl":"https://test.salesforce.com",
;; "apiVersion":"33.0"
;; }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment