alpha_omega 1.3.20 → 1.3.21
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/alpha_omega/config/deploy_challenge.rb +6 -1
- data/lib/alpha_omega/config/deploy_notify.rb +7 -4
- data/lib/alpha_omega/deploy.rb +4 -0
- data/libexec/_ao +5 -0
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.3.
|
1
|
+
1.3.21
|
@@ -11,7 +11,12 @@ Capistrano::Configuration.instance(:must_exist).load do |config|
|
|
11
11
|
set :reviewed, who
|
12
12
|
sleep 3
|
13
13
|
end
|
14
|
-
|
14
|
+
|
15
|
+
unless ENV['FLAGS_tag'] && !ENV['FLAGS_tag'].empty?
|
16
|
+
puts "Did not specify a tag for production"
|
17
|
+
abort
|
18
|
+
end
|
19
|
+
end
|
15
20
|
end
|
16
21
|
end
|
17
22
|
|
@@ -4,11 +4,14 @@ Capistrano::Configuration.instance(:must_exist).load do |config|
|
|
4
4
|
task :default do
|
5
5
|
if $deploy["notify"]
|
6
6
|
unless dna["app_env"] == "development" || dna["env_pod"] == "dev"
|
7
|
-
airbrake if $deploy["notify"].member? "airbrake"
|
8
|
-
newrelic if $deploy["notify"].member? "newrelic"
|
9
7
|
email if $deploy["notify"].member? "email"
|
10
|
-
|
11
|
-
|
8
|
+
|
9
|
+
unless skip_notificationsj
|
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
|
12
15
|
end
|
13
16
|
end
|
14
17
|
end
|
data/lib/alpha_omega/deploy.rb
CHANGED
@@ -34,6 +34,7 @@ Capistrano::Configuration.instance(:must_exist).load do |config|
|
|
34
34
|
# =========================================================================
|
35
35
|
|
36
36
|
_cset :skip_scm, false
|
37
|
+
_cset :skip_notifications, false
|
37
38
|
_cset :scm, :git
|
38
39
|
_cset :deploy_via, :checkout
|
39
40
|
_cset(:branch) { AlphaOmega.what_branch }
|
@@ -53,6 +54,7 @@ Capistrano::Configuration.instance(:must_exist).load do |config|
|
|
53
54
|
_cset(:run_method) { fetch(:use_sudo, true) ? :sudo : :run }
|
54
55
|
|
55
56
|
_cset :last_pod, nil
|
57
|
+
_cset :success, false
|
56
58
|
|
57
59
|
_cset (:figlet) { [%x(which figlet).strip].reject {|f| !(File.executable? f)}.first || echo }
|
58
60
|
|
@@ -617,6 +619,8 @@ Capistrano::Configuration.instance(:must_exist).load do |config|
|
|
617
619
|
end
|
618
620
|
|
619
621
|
task :finished do
|
622
|
+
run "#{figlet} success | perl -pe 's{( +)}{chr(46) x length($1)}e'"
|
623
|
+
set :success, true
|
620
624
|
end
|
621
625
|
|
622
626
|
end # :deploy
|
data/libexec/_ao
CHANGED
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: 49
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 3
|
9
|
-
-
|
10
|
-
version: 1.3.
|
9
|
+
- 21
|
10
|
+
version: 1.3.21
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- David Nghiem
|