capistrano-maintenance 0.0.1 → 0.0.2
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/README.md +6 -2
- data/lib/capistrano/maintenance/version.rb +1 -1
- data/lib/capistrano/templates/maintenance.html.erb +16 -44
- metadata +2 -2
data/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
Capistrano
|
|
1
|
+
Capistrano Maintenance Extension
|
|
2
2
|
=================================
|
|
3
3
|
|
|
4
4
|
This gem simply offers the recently removed `deploy:web:disable` and `deploy:web:enable` tasks to your Capistrano deployment.
|
|
@@ -6,7 +6,11 @@ This gem simply offers the recently removed `deploy:web:disable` and `deploy:web
|
|
|
6
6
|
Usage
|
|
7
7
|
-----
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
Install the gem via rubygems:
|
|
10
|
+
|
|
11
|
+
`gem install capistrano-maintenance`
|
|
12
|
+
|
|
13
|
+
And put this line into your deploy.rb file:
|
|
10
14
|
|
|
11
15
|
`require 'capistrano/maintenance'`
|
|
12
16
|
|
|
@@ -1,53 +1,25 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
4
|
-
|
|
5
|
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
|
6
|
-
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html>
|
|
7
3
|
<head>
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
left: 50%;
|
|
15
|
-
top: 50%;
|
|
16
|
-
width: 500px;
|
|
17
|
-
height: 300px;
|
|
18
|
-
margin-left: -260px;
|
|
19
|
-
margin-top: -150px;
|
|
4
|
+
<title>Maintenance</title>
|
|
5
|
+
<style type="text/css">
|
|
6
|
+
body {
|
|
7
|
+
width: 400px;
|
|
8
|
+
margin: 100px auto;
|
|
9
|
+
font: 300 120% "OpenSans", "Helvetica Neue", "Helvetica", Arial, Verdana, sans-serif;
|
|
20
10
|
}
|
|
21
11
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
padding: 10px;
|
|
25
|
-
text-align: left;
|
|
26
|
-
border: 1px solid #ccc;
|
|
27
|
-
border-right: 1px solid #999;
|
|
28
|
-
border-bottom: 1px solid #999;
|
|
29
|
-
background-color: #fff;
|
|
12
|
+
h1 {
|
|
13
|
+
font-weight: 300;
|
|
30
14
|
}
|
|
31
|
-
|
|
32
|
-
body { background-color: #fff; }
|
|
33
|
-
</style>
|
|
15
|
+
</style>
|
|
34
16
|
</head>
|
|
35
|
-
|
|
36
17
|
<body>
|
|
18
|
+
<h1>Maintenance</h1>
|
|
37
19
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
<div style="text-align: center; width: 200px; margin: 0 auto;">
|
|
41
|
-
<p style="color: red; font-size: 16px; line-height: 20px;">
|
|
42
|
-
The system is down for <%= reason ? reason : "maintenance" %>
|
|
43
|
-
as of <%= Time.now.strftime("%H:%M %Z") %>.
|
|
44
|
-
</p>
|
|
45
|
-
<p style="color: #666;">
|
|
46
|
-
It'll be back <%= deadline ? deadline : "shortly" %>.
|
|
47
|
-
</p>
|
|
48
|
-
</div>
|
|
49
|
-
</div>
|
|
50
|
-
</div>
|
|
20
|
+
<p>The system is down for <%= reason ? reason : "maintenance" %><br>
|
|
21
|
+
as of <%= Time.now.strftime("%H:%M %Z") %>.</p>
|
|
51
22
|
|
|
23
|
+
<p>It'll be back <%= deadline ? deadline : "shortly" %>.</p>
|
|
52
24
|
</body>
|
|
53
|
-
</html>
|
|
25
|
+
</html>
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: capistrano-maintenance
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.2
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2012-
|
|
12
|
+
date: 2012-11-02 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: capistrano
|