lib/cap_gun.rb in relevance-cap_gun-0.0.5 vs lib/cap_gun.rb in relevance-cap_gun-0.0.7
- old
+ new
@@ -25,11 +25,11 @@
#
# cap -s comment="fix for bug #303" deploy
#
# See README for full install/config instructions.
module CapGun
- VERSION = '0.0.5'
+ VERSION = '0.0.7'
module Helper
# Loads ActionMailer settings from a Capistrano variable called "cap_gun_action_mailer_config"
def load_mailer_config(cap)
@@ -114,10 +114,10 @@
def create_summary(capistrano)
%[#{capistrano[:application]} was deployed#{" to " << capistrano[:rails_env] if capistrano[:rails_env]} by #{current_user} at #{humanize_release_time(capistrano[:current_release])}.]
end
def deployed_to(capistrano)
- returning(s = "deployed") { s += " to #{capistrano[:rails_env]}" if capistrano[:rails_env] }
+ returning(deploy_msg = "deployed") { |msg| msg << " to #{capistrano[:rails_env]}" if capistrano[:rails_env] }
end
# Create the body of the message using a bunch of values from Capistrano
def create_body(capistrano)
<<-EOL
\ No newline at end of file