alpha_omega 1.3.34 → 1.3.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/VERSION +1 -1
- data/lib/alpha_omega/config/deploy_notify.rb +12 -10
- metadata +3 -3
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.3.
|
|
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
|
-
|
|
7
|
-
email if $deploy["notify"].member? "email"
|
|
6
|
+
email if $deploy["notify"].member? "email"
|
|
8
7
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
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 '#{
|
|
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}
|
|
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:
|
|
4
|
+
hash: 93
|
|
5
5
|
prerelease:
|
|
6
6
|
segments:
|
|
7
7
|
- 1
|
|
8
8
|
- 3
|
|
9
|
-
-
|
|
10
|
-
version: 1.3.
|
|
9
|
+
- 35
|
|
10
|
+
version: 1.3.35
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- David Nghiem
|