lib/capistrano/tasks/bundle_rsync.rake in capistrano-bundle_rsync-0.2.2 vs lib/capistrano/tasks/bundle_rsync.rake in capistrano-bundle_rsync-0.2.3
- old
+ new
@@ -3,10 +3,14 @@
require 'fileutils'
require 'parallel'
require 'capistrano/bundle_rsync/bundler'
namespace :bundle_rsync do
+ def config
+ Capistrano::BundleRsync::Config
+ end
+
def bundler
@bundler ||= Capistrano::BundleRsync::Bundler.new(self)
end
def scm
@@ -22,16 +26,24 @@
end
namespace :bundler do
task :install do
run_locally do
- bundler.install
+ if config.skip_bundle
+ info "Skip bundle"
+ else
+ bundler.install
+ end
end
end
task :rsync do
run_locally do
- bundler.rsync
+ if config.skip_bundle
+ info "Skip bundle rsync"
+ else
+ bundler.rsync
+ end
end
end
end
desc 'Check that the repository is reachable'