lib/cap_gun.rb in cap_gun-0.0.5 vs lib/cap_gun.rb in cap_gun-0.0.9

- old
+ new

@@ -1,6 +1,5 @@ -require 'active_support' require 'action_mailer' require File.join(File.dirname(__FILE__), *%w[.. vendor action_mailer_tls lib smtp_tls]) # Tell everyone about your releases! Send email notification after Capistrano deployments! Rule the world! # @@ -25,11 +24,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.9' module Helper # Loads ActionMailer settings from a Capistrano variable called "cap_gun_action_mailer_config" def load_mailer_config(cap) @@ -114,10 +113,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