Created
July 29, 2010 16:02
-
-
Save indirect/498515 to your computer and use it in GitHub Desktop.
cap tasks to invoke bundler
This file contains 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 :create_symlink, :roles => :app do | |
set :bundle_dir, File.join(release_path, 'vendor/bundle') | |
shared_dir = File.join(shared_path, 'bundle') | |
run "rm -rf #{bundle_dir}" # in the event it already exists..? | |
run("mkdir -p #{shared_dir} && ln -s #{shared_dir} #{bundle_dir}") | |
end | |
task :bundle_new_release, :roles => :app do | |
bundler.create_symlink | |
run "cd #{release_path} ; bundle install #{bundle_dir} --disable-shared-gems --without test" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment