lib/capistrano/tasks/bundle_rsync.rake in capistrano-bundle_rsync-0.2.1 vs lib/capistrano/tasks/bundle_rsync.rake in capistrano-bundle_rsync-0.2.2
- old
+ new
@@ -21,15 +21,20 @@
end
end
namespace :bundler do
task :install do
- bundler.prepare
run_locally do
bundler.install
end
end
+
+ task :rsync do
+ run_locally do
+ bundler.rsync
+ end
+ end
end
desc 'Check that the repository is reachable'
task :check do
run_locally do
@@ -56,15 +61,25 @@
run_locally do
scm.create_release
end
end
+ # additional extra tasks of bundle_rsync scm
+ desc 'Rsync releases'
+ task :rsync_release do
+ run_locally do
+ scm.rsync_release
+ end
+ end
+
desc 'Determine the revision that will be deployed'
task :set_current_revision do
run_locally do
scm.set_current_revision
end
end
- before 'deploy:updated', 'bundle_rsync:bundler:install'
+ after 'bundle_rsync:create_release', 'bundle_rsync:bundler:install'
+ after 'bundle_rsync:bundler:install', 'bundle_rsync:rsync_release'
+ after 'bundle_rsync:rsync_release', 'bundle_rsync:bundler:rsync'
end
end