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

- old
+ new

@@ -104,14 +104,14 @@ 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| - if ssh.file_exists?(path) + if ssh.directory_exists?("#{shared_path}/#{name}") log "Linking shared path: #{name}" ssh.run("ln -s #{shared_path}/#{name} #{release_path}/#{path}") else - error "Shared path does not exist: #{path}" + error "Shared path does not exist: #{shared_path}/#{name}" end end end end end \ No newline at end of file