lib/capistrano-redeploy.rb in capistrano-redeploy-0.0.1 vs lib/capistrano-redeploy.rb in capistrano-redeploy-0.1.0
- old
+ new
@@ -64,10 +64,11 @@
set(:strategy) { ::Capistrano::Deploy::Strategy.new(deploy_via, self) }
# merge variables
redeploy_variables.each do |key, val|
set(key, val)
end
+ logger.debug("Fetching source for re-deployment from #{repository} (#{scm}) via #{deploy_via}.")
strategy.deploy!
end
run("rsync -lrpt #{(release_path + "/").dump} #{destination.dump}", options)
ensure
run("rm -rf #{releases_path.dump}", options)
@@ -89,10 +90,10 @@
end
def redeploy!(source, destination, options={})
exclusions = redeploy_exclusions.map { |e| "--exclude=#{e.dump}" }.join(" ")
absolute_path_map(source, destination).each do |s, d|
- logger.info("redeploy: #{s} -> #{d}")
+ logger.debug("Re-deploying from `#{s}' to `#{d}'.")
run("mkdir -p #{s.dump} #{d.dump}", options)
run("rsync -lrpt #{exclusions} #{(s + "/").dump} #{d.dump}", options)
end
end