lib/ash/zend_doctrine.rb in capistrano-ash-1.4.0 vs lib/ash/zend_doctrine.rb in capistrano-ash-1.4.1
- old
+ new
@@ -7,9 +7,24 @@
Capistrano::Configuration.instance(:must_exist) :
Capistrano.configuration(:must_exist)
configuration.load do
# --------------------------------------------
+ # try_sudo configuration
+ # --------------------------------------------
+ set :use_sudo, true # allow try_sudo methods to actually run via sudo
+ # set(:admin_runner) {"#{user}"} # specify the :admin_runner if you need to run it as another user other than root
+
+ # Clear out the default prompt (i.e., `sudo -p 'sudo password: '`) to fall back
+ # to just using `sudo` due to the concatenation in the sudo method.
+ #
+ # This assumes that you have set up your SSH user to have passwordless sudo
+ # setup for common commands (e.g., chmod, rm, rsync, etc.)
+ #
+ # (see: https://github.com/capistrano/capistrano/blob/legacy-v2/lib/capistrano/configuration/actions/invocation.rb#L229-L237)
+ set :sudo_prompt, ''
+
+ # --------------------------------------------
# Calling our Methods
# --------------------------------------------
after "deploy:setup", "deploy:setup_shared"
after "deploy:finalize_update", "ash:fixperms"