lib/capistrano/bundle_rsync/config.rb in capistrano-bundle_rsync-0.1.0 vs lib/capistrano/bundle_rsync/config.rb in capistrano-bundle_rsync-0.1.1
- old
+ new
@@ -72,7 +72,12 @@
# Fetch the :bundle_rsync_max_parallels,
# where the default is the number of hosts
def self.max_parallels(hosts)
fetch(:bundle_rsync_max_parallels) || hosts.size
end
+
+ def self.rsync_options
+ bwlimit = fetch(:bundle_rsync_rsync_bwlimit) ? " --bwlimit #{fetch(:bundle_rsync_rsync_bwlimit)}" : ""
+ fetch(:bundle_rsync_rsync_options) || "-az --delete#{bwlimit}"
+ end
end
end