Created
May 20, 2015 14:23
-
-
Save spk/75c05df4d91e1da7e268 to your computer and use it in GitHub Desktop.
Bundler check install capistrano 3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace :bundler do | |
task :check_install do | |
on roles(:app) do | |
with rails_env: fetch(:rails_env) do | |
execute 'gem query --local | grep bundler || gem install bundler' | |
end | |
end | |
end | |
end | |
before 'deploy:starting', 'bundler:check_install' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment