lib/shuttle/deployment/rails.rb in shuttle-deploy-0.2.0.beta5 vs lib/shuttle/deployment/rails.rb in shuttle-deploy-0.2.0.beta6

- old
+ new

@@ -104,11 +104,15 @@ ssh.run("ln -s #{shared_path('log')} #{release_path('log')}") if config.rails if config.rails.shared_paths config.rails.shared_paths.each_pair do |name, path| - log "Linking shared path: #{name}" - ssh.run("ln -s #{shared_path}/#{name} #{release_path}/#{path}") + if ssh.file_exists?(path) + log "Linking shared path: #{name}" + ssh.run("ln -s #{shared_path}/#{name} #{release_path}/#{path}") + else + error "Shared path does not exist: #{path}" + end end end end end end \ No newline at end of file