lib/cap_gun.rb in xing-cap_gun-0.3.0 vs lib/cap_gun.rb in xing-cap_gun-0.3.1
- old
+ new
@@ -70,10 +70,10 @@
namespace :cap_gun do
desc "Send notification of the current release and the previous release via email."
task :email, :roles => :app do
CapGun::Mailer.load_mailer_config(self)
- CapGun::Mailer.deployment_notification(self).deliver
+ CapGun::Mailer.deployment_notification(self).deliver unless dry_run
end
end
end
end