lib/capistrano/ops/capistrano.rb in capistrano-ops-0.2.3 vs lib/capistrano/ops/capistrano.rb in capistrano-ops-0.2.4

- old
+ new

@@ -6,8 +6,10 @@ load File.expand_path('capistrano/v3/tasks/whenever.rake', __dir__) load File.expand_path('capistrano/v3/tasks/backup.rake', __dir__) load File.expand_path('capistrano/v3/tasks/figaro_yml.rake', __dir__) load File.expand_path('capistrano/v3/tasks/logs.rake', __dir__) load File.expand_path('capistrano/v3/tasks/invoke.rake', __dir__) + path = File.expand_path(__dir__) + Dir.glob("#{path}/capistrano/v3/tasks/backup/**/*.rake").each { |f| load f } else puts 'Capistrano 3 is required to use this gem' end