Skip to content

Commit

Permalink
Merge pull request #4 from diasjorge/update-gems
Browse files Browse the repository at this point in the history
Ability to update only certain gems
  • Loading branch information
endofunky committed Jan 25, 2013
2 parents 4d830f9 + 52350ae commit 224d9e5
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions bundler.el
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,16 @@
(bundle-command "bundle install"))

;;;###autoload
(defun bundle-update ()
(defun bundle-update (&optional update-cmd-args)
"Run bundle update for the current bundle."
(interactive)
(bundle-command "bundle update"))
(interactive "P")
(let ((command "bundle update"))
;; For customization of the command with prefix arg.
(setq command (if update-cmd-args
(read-string "Run: " (concat command " "))
command))

(bundle-command command)))

(defun bundle-command (cmd)
"Run cmd in an async buffer."
Expand Down Expand Up @@ -143,7 +149,7 @@
(save-excursion
(let* ((bundle-out (shell-command-to-string "bundle list"))
(bundle-lines (split-string bundle-out "\n")))

(defun parse-bundle-list-line (line)
(if (string-match "^ \\* \\([^\s]+\\).*$" line)
(match-string 1 line)
Expand Down

0 comments on commit 224d9e5

Please sign in to comment.
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy