example/Capfile in capistrano-bundle_rsync-0.4.9 vs example/Capfile in capistrano-bundle_rsync-0.5.0
- old
+ new
@@ -4,9 +4,15 @@
# Includes default deployment tasks
require 'capistrano/deploy'
# Includes tasks from other gems included in your Gemfile
require 'capistrano/rbenv'
-require 'capistrano/bundle_rsync'
+
+if Gem::Version.new(Capistrano::VERSION) < Gem::Version.new('3.7.0')
+ require 'capistrano/bundle_rsync'
+else
+ require 'capistrano/bundle_rsync/plugin'
+ install_plugin Capistrano::BundleRsync::Plugin
+end
# Loads custom tasks from `lib/capistrano/tasks' if you have any defined.
Dir.glob('lib/capistrano/tasks/*.rake').each { |r| import r }