lib/fulmar/infrastructure/model/transfer/rsync_with_versions.rb in fulmar-2.2.5 vs lib/fulmar/infrastructure/model/transfer/rsync_with_versions.rb in fulmar-2.2.6

- old
+ new

@@ -177,10 +177,11 @@ # Copies the data from the sync temp to the actual release directory # @return [true, false] success def copy_temp_to_release @remote_shell.run [ - "cp -pR #{@config[:temp_dir]} #{release_dir}", + "mkdir -p #{release_dir}", + "rsync -a --delete #{@config[:temp_dir]}/ #{release_dir}/", "touch #{release_dir}" ] end # Set the symlink to the given release or the return value of release_dir() otherwise