Skip to content

Instantly share code, notes, and snippets.

@jamiecobbett
Forked from uniglam/gist:268497
Created February 11, 2010 16:32
Show Gist options
  • Save jamiecobbett/301673 to your computer and use it in GitHub Desktop.
Save jamiecobbett/301673 to your computer and use it in GitHub Desktop.
Bundler/capistrano task
after "deploy:update_code", "bundler:bundle"
namespace :bundler do
task :bundle do
run "mkdir -p #{%w(cache doc gems specifications).map { |x| "#{shared_path}/bundler_gems/#{x}" }.join(' ')} #{release_path}/vendor/bundler_gems; rm -R #{release_path}/vendor/bundler_gems/*; ln -s #{shared_path}/bundler_gems/* #{release_path}/vendor/bundler_gems/; cd #{release_path}; gem bundle"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment