alpha_omega 1.3.20 → 1.3.21

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 CHANGED
@@ -1 +1 @@
1
- 1.3.20
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
- end if reviewed.nil?
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
- campfire if $deploy["notify"].member? "campfire"
11
- flowdock if $deploy["notify"].member? "flowdock"
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
@@ -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
@@ -138,6 +138,11 @@ function main {
138
138
  if [[ "$FLAGS_migrations" = "$FLAGS_TRUE" ]]; then
139
139
  export FLAGS_migrations
140
140
  fi
141
+
142
+ if [[ -n "$FLAGS_tag" ]]; then
143
+ export FLAGS_tag
144
+ fi
145
+
141
146
  aomain "$nm_pod" "$@"
142
147
  else
143
148
  if [[ "$#" > 0 ]]; then
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: 51
4
+ hash: 49
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 3
9
- - 20
10
- version: 1.3.20
9
+ - 21
10
+ version: 1.3.21
11
11
  platform: ruby
12
12
  authors:
13
13
  - David Nghiem