Permalink
Browse files

fixing symlink command

  • Loading branch information...
1 parent d28ac54 commit 97f4d3bad84ebbc81a4bab05fb276115696cc2f5 @asceth committed May 17, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 lib/ors/commands/symlink.rb
@@ -10,10 +10,11 @@ def execute
info "symlinking #{ORS.config[:name]} #{ORS.config[:environment]}..."
execute_in_parallel(ORS.config[:ruby_servers]) do |server|
+ info "[#{server}] symlinking..."
execute_command(server,
prepare_environment,
- %(if [ -f config/deploy ]; then cd config/deploy; for i in `find ./ -type f`; do ln -nfs `pwd`/$i ../../$i; done; cd ../../; fi),
- :exec => true)
+ #%(if [ -d config/deploy ]; then cd config/deploy; for i in ./**/*; do if [ -f \\\$i ]; then echo \\\$i; fi; done; cd ../../; fi))
+ %(if [ -d config/deploy ]; then cd config/deploy; for i in ./**/*; do if [ -f \\\$i ]; then ln -nfs #{ORS.config[:deploy_directory]}/config/deploy/\\\$i ../../\\\$i; fi; done; cd ../../; fi))
end
end

0 comments on commit 97f4d3b

Please sign in to comment.