Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ## ./config/deploy/testing.rb
- namespace(:deploy) do
- desc "Enable mongrel config (custom)"
- task :mongrel_enable, :roles => :app do
- begin
- puts "Checking for existing symlink..."
- run "test -f /etc/mongrel_cluster/test.mongrel_cluster.yml"
- rescue
- puts "Creating symlink..."
- run "test -f #{current_path}/config/test.mongrel_cluster.yml"
- sudo "ln -s #{current_path}/config/test.mongrel_cluster.yml /etc/mongrel_cluster/"
- ensure
- puts "Verifying symlink exists..."
- run "test -f /etc/mongrel_cluster/test.mongrel_cluster.yml"
- end
- end
- end
Add Comment
Please, Sign In to add comment