alpha_omega 1.3.34 → 1.3.35

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.3.34
1
+ 1.3.35
@@ -3,21 +3,19 @@ Capistrano::Configuration.instance(:must_exist).load do |config|
3
3
  namespace :notify do
4
4
  task :default do
5
5
  if $deploy["notify"]
6
- unless dna["app_env"] == "development" || dna["env_pod"] == "dev"
7
- email if $deploy["notify"].member? "email"
6
+ email if $deploy["notify"].member? "email"
8
7
 
9
- unless skip_notifications
10
- airbrake if $deploy["notify"].member? "airbrake"
11
- newrelic if $deploy["notify"].member? "newrelic"
12
- campfire if $deploy["notify"].member? "campfire"
13
- flowdock if $deploy["notify"].member? "flowdock"
14
- end
8
+ unless skip_notifications
9
+ airbrake if $deploy["notify"].member? "airbrake"
10
+ newrelic if $deploy["notify"].member? "newrelic"
11
+ campfire if $deploy["notify"].member? "campfire"
12
+ flowdock if $deploy["notify"].member? "flowdock"
15
13
  end
16
14
  end
17
15
  end
18
16
 
19
17
  task :email do
20
- run_locally "echo '#{notify_message}' | mail -s '#{notify_message}' #{$deploy["notify"]["email"]["recipients"].join(" ")}"
18
+ run_locally "echo '#{notify_message}' | mail -s '#{notify_message_abbr}' #{$deploy["notify"]["email"]["recipients"].join(" ")}"
21
19
  end
22
20
 
23
21
  task :campfire do
@@ -79,7 +77,11 @@ Capistrano::Configuration.instance(:must_exist).load do |config|
79
77
  end
80
78
 
81
79
  def notify_message
82
- "#{ENV['_AO_USER']} deployed #{application} (#{current_revision}@#{repository}) to #{dna['app_env']}"
80
+ "#{ENV['_AO_USER']} deployed #{application} to #{dna['app_env']}: #{repository}: #{current_revision}"
81
+ end
82
+
83
+ def notify_message_abbr
84
+ "#{ENV['_AO_USER']} deployed #{application} to #{dna['app_env']}: #{current_revision}"
83
85
  end
84
86
  end
85
87
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: alpha_omega
3
3
  version: !ruby/object:Gem::Version
4
- hash: 95
4
+ hash: 93
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 3
9
- - 34
10
- version: 1.3.34
9
+ - 35
10
+ version: 1.3.35
11
11
  platform: ruby
12
12
  authors:
13
13
  - David Nghiem