lib/capistrano/bundle_rsync/bundler.rb in capistrano-bundle_rsync-0.2.5 vs lib/capistrano/bundle_rsync/bundler.rb in capistrano-bundle_rsync-0.2.6
- old
+ new
@@ -28,16 +28,9 @@
File.open(bundle_config_path, "w") {|file| file.print(lines) }
rsync_options = config.rsync_options
Parallel.each(hosts, in_threads: config.max_parallels(hosts)) do |host|
ssh = config.build_ssh_command(host)
- if config_files = config.config_files
- config_files.each do |config_file|
- basename = File.basename(config_file)
- execute :rsync, "#{rsync_options} --rsh='#{ssh}' #{config_file} #{host}:#{release_path}/config/#{basename}"
- end
- end
-
execute :rsync, "#{rsync_options} --rsh='#{ssh}' #{config.local_bundle_path}/ #{host}:#{shared_path}/bundle/"
execute :rsync, "#{rsync_options} --rsh='#{ssh}' #{bundle_config_path} #{host}:#{release_path}/.bundle/config"
end
# Do not remove if :bundle_rsync_local_release_path is directly specified.