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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 454770dec15e73c71b1e954f28a2d933e040643f
|
4
|
+
data.tar.gz: 3c71d913fb6f20110c6e3610cdecda944329f708
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 29dc8a8544719a7b2ea9c09751f803ef527b515f5a6898e27c23044b79642d5e0556834591bbd84ae9740f38655055c9bb3b1a1e65665b2a49bc2a1fbf67f1fb
|
7
|
+
data.tar.gz: 691631d02cd7dbb98207f23ec72254490721e1f63f6f5bc98043705e0029ad64c241bad7cce3b2eb792dfd9a20c7d8371cd2a1f32fd462b765d4a0c50f09fe97
|
@@ -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
|
-
|
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
|
-
|
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.
|
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:
|
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.
|
85
|
+
rubygems_version: 2.0.7
|
85
86
|
signing_key:
|
86
87
|
specification_version: 4
|
87
88
|
summary: Capistrano Recipes
|