Commit fd02658885f543aab96444c73bc6abf15e366bdf

Authored by Ben Langfeld
1 parent bd17fa78
Exists in master and in 1 other branch production

Use bundler's built in capistrano integration

Showing 1 changed file with 2 additions and 13 deletions   Show diff stats
config/deploy.example.rb
@@ -6,6 +6,8 @@ @@ -6,6 +6,8 @@
6 # `cap deploy` whenever you would like to deploy Errbit. Refer 6 # `cap deploy` whenever you would like to deploy Errbit. Refer
7 # to the Readme for more information. 7 # to the Readme for more information.
8 8
  9 +require 'bundler/capistrano'
  10 +
9 set :application, "errbit" 11 set :application, "errbit"
10 set :repository, "http://github.com/jdpace/errbit.git" 12 set :repository, "http://github.com/jdpace/errbit.git"
11 13
@@ -39,19 +41,6 @@ namespace :deploy do @@ -39,19 +41,6 @@ namespace :deploy do
39 end 41 end
40 end 42 end
41 43
42 -namespace :bundler do  
43 - task :symlink_vendor, :roles => :app, :except => { :no_release => true } do  
44 - shared_gems = File.join(shared_path,'vendor','bundler_gems')  
45 - release_gems = "#{latest_release}/vendor/"  
46 - run("mkdir -p #{shared_gems} && ln -nfs #{shared_gems} #{release_gems}")  
47 - end  
48 -  
49 - task :install, :rolse => :app do  
50 - bundler.symlink_vendor  
51 - run("cd #{release_path} && bundle install vendor/bundler_gems --without development test")  
52 - end  
53 -end  
54 -  
55 namespace :errbit do 44 namespace :errbit do
56 task :setup_configs do 45 task :setup_configs do
57 shared_configs = File.join(shared_path,'config') 46 shared_configs = File.join(shared_path,'config')