greenonline_capistrano_recipes 0.0.21 → 0.0.22

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b4774ebaa5f7806738d5954d834bc3c20beea5f4
4
- data.tar.gz: 3e166e38b485a6d25f8e58624e11442df426f961
3
+ metadata.gz: 454770dec15e73c71b1e954f28a2d933e040643f
4
+ data.tar.gz: 3c71d913fb6f20110c6e3610cdecda944329f708
5
5
  SHA512:
6
- metadata.gz: 40a5b8cb0559bc419f90a387400fff96e5a8199ded22224e2c3ba78316041f91ee4dab7ac3b11aaebfa39dad6d356c0ddee2409e7809fc797f60d031f203e7b7
7
- data.tar.gz: 329c250cace6a6094c56e5d5afe091ec1d719cc389e4534bb14063be23c8b213768f388d34847ffccb6192e2166d4d71770f8eed5a30fa37f809bbc8b7a7ecb3
6
+ metadata.gz: 29dc8a8544719a7b2ea9c09751f803ef527b515f5a6898e27c23044b79642d5e0556834591bbd84ae9740f38655055c9bb3b1a1e65665b2a49bc2a1fbf67f1fb
7
+ data.tar.gz: 691631d02cd7dbb98207f23ec72254490721e1f63f6f5bc98043705e0029ad64c241bad7cce3b2eb792dfd9a20c7d8371cd2a1f32fd462b765d4a0c50f09fe97
@@ -1,5 +1,5 @@
1
1
  module Greenonline
2
2
  module CapistranoRecipes
3
- VERSION = "0.0.21"
3
+ VERSION = "0.0.22"
4
4
  end
5
5
  end
@@ -0,0 +1,26 @@
1
+ module Capistrano
2
+ Configuration.instance(true).load do
3
+ set_default(:ask_confirmation?, false)
4
+
5
+ before :deploy, :deploy_confirmation
6
+ task :deploy_confirmation do
7
+ next if !ask_confirmation?
8
+ set :confirmed, proc {
9
+ puts <<-WARN
10
+
11
+ ========================================================================
12
+ WARNING: You're about to deploy to #{stage}
13
+ ========================================================================
14
+
15
+ WARN
16
+ set(:answer, Capistrano::CLI.ui.ask("Are you sure you want to continue? Type '#{stage}'") )
17
+ if fetch(:answer) =~ /#{stage}/ then true else false end
18
+ }.call
19
+
20
+ if !fetch(:confirmed)
21
+ puts "\nDeploy halted!"
22
+ exit
23
+ end
24
+ end
25
+ end
26
+ end
@@ -114,7 +114,7 @@ server {
114
114
  # we don't want nginx trying to do something clever with
115
115
  # redirects, we set the Host: header above already.
116
116
  proxy_redirect off;
117
- proxy_intercept_errors on;
117
+
118
118
  proxy_pass http://unicorn_<%= application.downcase %>_<%= stage %>;
119
119
  }
120
120
 
@@ -172,7 +172,7 @@ server {
172
172
  # we don't want nginx trying to do something clever with
173
173
  # redirects, we set the Host: header above already.
174
174
  proxy_redirect off;
175
- proxy_intercept_errors on;
175
+
176
176
  proxy_pass http://unicorn_<%= application.downcase %>_<%= stage %>;
177
177
  }
178
178
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: greenonline_capistrano_recipes
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.21
4
+ version: 0.0.22
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pieter Visser
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-11-23 00:00:00.000000000 Z
11
+ date: 2015-01-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -56,6 +56,7 @@ files:
56
56
  - lib/greenonline/capistrano_recipes/version.rb
57
57
  - lib/greenonline/recipes.rb
58
58
  - lib/greenonline/recipes/base.rb
59
+ - lib/greenonline/recipes/confirmation.rb
59
60
  - lib/greenonline/recipes/nginx.rb
60
61
  - lib/greenonline/recipes/templates/nginx_unicorn.erb
61
62
  - lib/greenonline/recipes/templates/unicorn.rb.erb
@@ -81,7 +82,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
81
82
  version: '0'
82
83
  requirements: []
83
84
  rubyforge_project:
84
- rubygems_version: 2.0.14
85
+ rubygems_version: 2.0.7
85
86
  signing_key:
86
87
  specification_version: 4
87
88
  summary: Capistrano Recipes