Permalink
Browse files

Use bundler's built in capistrano integration

  • Loading branch information...
1 parent bd17fa7 commit fd02658885f543aab96444c73bc6abf15e366bdf @benlangfeld benlangfeld committed Apr 13, 2011
Showing with 2 additions and 13 deletions.
  1. +2 −13 config/deploy.example.rb
View
@@ -6,6 +6,8 @@
# `cap deploy` whenever you would like to deploy Errbit. Refer
# to the Readme for more information.
+require 'bundler/capistrano'
+
set :application, "errbit"
set :repository, "http://github.com/jdpace/errbit.git"
@@ -39,19 +41,6 @@
end
end
-namespace :bundler do
- task :symlink_vendor, :roles => :app, :except => { :no_release => true } do
- shared_gems = File.join(shared_path,'vendor','bundler_gems')
- release_gems = "#{latest_release}/vendor/"
- run("mkdir -p #{shared_gems} && ln -nfs #{shared_gems} #{release_gems}")
- end
-
- task :install, :rolse => :app do
- bundler.symlink_vendor
- run("cd #{release_path} && bundle install vendor/bundler_gems --without development test")
- end
-end
-
namespace :errbit do
task :setup_configs do
shared_configs = File.join(shared_path,'config')

0 comments on commit fd02658

Please sign in to comment.