lib/capistrano/bundle_rsync/scm.rb in capistrano-bundle_rsync-0.4.0 vs lib/capistrano/bundle_rsync/scm.rb in capistrano-bundle_rsync-0.4.1
- old
+ new
@@ -1,6 +1,7 @@
require 'capistrano/bundle_rsync/base'
+require 'capistrano/configuration/filter'
# Base class for SCM strategy providers.
#
# @abstract
class Capistrano::BundleRsync::SCM < Capistrano::BundleRsync::Base
@@ -86,10 +87,10 @@
#
# This is an additional task endpoint provided by capistrano-bundle_rsync
#
# @return void
def rsync_shared
- hosts = release_roles(:all)
+ hosts = ::Capistrano::Configuration.env.filter(release_roles(:all))
rsync_options = config.rsync_options
if config_files = config.config_files
Parallel.each(hosts, in_threads: config.max_parallels(hosts)) do |host|
ssh = config.build_ssh_command(host)