capistrano-af83 0.4.1 → 0.4.2
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: e3795cf5c06ba2e7a330d60f5581089640638717
|
4
|
+
data.tar.gz: 1c20772c07450b4e4feaef27afa55d466a1b5c8b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e86bdf33cfb6c8dcce77ec0e18f00c84dce4d92f6d2722dd455bde314553acb506d180ba9c1c4ed772d4c7f6d421a42b904be7dcfaacf02d584b9a060b436fa2
|
7
|
+
data.tar.gz: 7b2a3e7b0ebcd3b53822f07df891406be14276cca50d8b5305970442e3421f6b675ebcb59b7303084d3f02a6c278f910aac999767e107f0360f4fe6ee57fe93f
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano-af83
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bruno Michel
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-06-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capistrano
|
@@ -39,19 +39,19 @@ dependencies:
|
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0.1'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
|
-
name: capistrano-maintenance
|
42
|
+
name: capistrano-custom-maintenance
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - ~>
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 0.0
|
47
|
+
version: 0.1.0
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - ~>
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 0.0
|
54
|
+
version: 0.1.0
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: shout-bot
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -91,7 +91,6 @@ files:
|
|
91
91
|
- lib/capistrano/af83.rb
|
92
92
|
- lib/capistrano/af83/bower.rb
|
93
93
|
- lib/capistrano/af83/bundler.rb
|
94
|
-
- lib/capistrano/af83/custom_maintenance_page.rb
|
95
94
|
- lib/capistrano/af83/database.rb
|
96
95
|
- lib/capistrano/af83/default.rb
|
97
96
|
- lib/capistrano/af83/deploy/assets.rb
|
@@ -1,19 +0,0 @@
|
|
1
|
-
# Use a custom maintenance page
|
2
|
-
# See http://ariejan.net/2011/09/19/capistrano-and-the-custom-maintenance-page
|
3
|
-
|
4
|
-
namespace :deploy do
|
5
|
-
namespace :web do
|
6
|
-
desc "Web disable"
|
7
|
-
task :disable, :roles => :web, :except => { :no_release => true } do
|
8
|
-
on_rollback { run "rm #{shared_path}/system/maintenance.html" }
|
9
|
-
require 'erb'
|
10
|
-
reason, deadline = ENV['REASON'], ENV['deadline']
|
11
|
-
template = File.read(File.join(File.dirname(__FILE__), "templates", "maintenance.rhtml"))
|
12
|
-
result = ERB.new(template).result(binding)
|
13
|
-
put result, "#{shared_path}/system/maintenance.html", :mode => 0644
|
14
|
-
end
|
15
|
-
end
|
16
|
-
end
|
17
|
-
|
18
|
-
before "deploy:cold", "deploy:web:disable"
|
19
|
-
after "deploy:cold", "deploy:web:enable"
|