Skip to content

Instantly share code, notes, and snippets.

@spk
Created May 20, 2015 14:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save spk/75c05df4d91e1da7e268 to your computer and use it in GitHub Desktop.
Save spk/75c05df4d91e1da7e268 to your computer and use it in GitHub Desktop.
Bundler check install capistrano 3
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