capitate 0.3.5 → 0.3.6
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +10 -0
- data/Manifest.txt +3 -9
- data/lib/capitate.rb +14 -0
- data/lib/capitate/cap_ext/namespace.rb +34 -0
- data/lib/capitate/cap_ext/task_definition.rb +22 -0
- data/lib/capitate/task_node.rb +21 -1
- data/lib/capitate/version.rb +1 -1
- data/lib/recipes/active_record.rb +7 -36
- data/lib/recipes/backgroundrb.rb +4 -19
- data/lib/recipes/centos/backgroundjob.rb +5 -26
- data/lib/recipes/centos/backgroundrb.rb +2 -13
- data/lib/recipes/centos/centos.rb +4 -26
- data/lib/recipes/centos/imagemagick.rb +8 -9
- data/lib/recipes/centos/memcached.rb +12 -53
- data/lib/recipes/centos/merb.rb +7 -33
- data/lib/recipes/centos/mongrel_cluster.rb +15 -51
- data/lib/recipes/centos/monit.rb +10 -36
- data/lib/recipes/centos/mysql.rb +1 -10
- data/lib/recipes/centos/nginx.rb +14 -42
- data/lib/recipes/centos/ruby.rb +6 -15
- data/lib/recipes/centos/sphinx.rb +13 -36
- data/lib/recipes/docs.rb +2 -14
- data/lib/recipes/logrotated.rb +20 -40
- data/lib/recipes/memcached.rb +10 -41
- data/lib/recipes/merb.rb +3 -4
- data/lib/recipes/monit.rb +4 -23
- data/lib/recipes/monit/merb.rb +7 -12
- data/lib/recipes/monit/mysql.rb +3 -19
- data/lib/recipes/monit/nginx.rb +2 -16
- data/lib/recipes/monit/sphinx.rb +20 -11
- data/lib/recipes/mysql.rb +13 -53
- data/lib/recipes/nginx.rb +9 -65
- data/lib/recipes/rails.rb +0 -58
- data/lib/recipes/sphinx.rb +20 -46
- data/lib/recipes/sshd.rb +6 -15
- data/lib/recipes/syslogd.rb +3 -43
- data/lib/templates/backgroundjob/backgroundjob.initd.centos.erb +4 -4
- data/lib/templates/merb/merb-no-http.monitrc.erb +13 -0
- data/lib/templates/merb/merb.initd.centos.erb +3 -3
- metadata +5 -12
- data/docs/nginx.README +0 -12
- data/website/index.html +0 -154
- data/website/index.txt +0 -69
- data/website/javascripts/code_highlighter.js +0 -188
- data/website/javascripts/rounded_corners_lite.inc.js +0 -285
- data/website/javascripts/ruby.js +0 -18
- data/website/stylesheets/screen.css +0 -265
- data/website/template.rhtml +0 -69
- data/website/template_recipe.rhtml +0 -44
data/website/javascripts/ruby.js
DELETED
@@ -1,18 +0,0 @@
|
|
1
|
-
CodeHighlighter.addStyle("ruby",{
|
2
|
-
comment : {
|
3
|
-
exp : /#[^\n]+/
|
4
|
-
},
|
5
|
-
brackets : {
|
6
|
-
exp : /\(|\)/
|
7
|
-
},
|
8
|
-
string : {
|
9
|
-
exp : /'[^']*'|"[^"]*"/
|
10
|
-
},
|
11
|
-
keywords : {
|
12
|
-
exp : /\b(do|end|self|class|def|if|module|yield|then|else|for|until|unless|while|elsif|case|when|break|retry|redo|rescue|require|raise)\b/
|
13
|
-
},
|
14
|
-
/* Added by Shelly Fisher (shelly@agileevolved.com) */
|
15
|
-
symbol : {
|
16
|
-
exp : /([^:])(:[A-Za-z0-9_!?]+)/
|
17
|
-
}
|
18
|
-
});
|
@@ -1,265 +0,0 @@
|
|
1
|
-
body {
|
2
|
-
background-color: #EFECCA;
|
3
|
-
font-family: "Georgia", sans-serif;
|
4
|
-
font-size: 16px;
|
5
|
-
line-height: 1.6em;
|
6
|
-
padding: 1.6em 0 0 0;
|
7
|
-
color: #333;
|
8
|
-
}
|
9
|
-
h1, h2, h3, h4, h5, h6 {
|
10
|
-
color: #444;
|
11
|
-
}
|
12
|
-
h1 {
|
13
|
-
font-family: sans-serif;
|
14
|
-
font-weight: normal;
|
15
|
-
font-size: 4em;
|
16
|
-
line-height: 0.8em;
|
17
|
-
letter-spacing: -0.1ex;
|
18
|
-
margin: 5px;
|
19
|
-
}
|
20
|
-
li {
|
21
|
-
padding: 0;
|
22
|
-
margin: 0;
|
23
|
-
list-style-type: square;
|
24
|
-
}
|
25
|
-
a {
|
26
|
-
color: #046380;
|
27
|
-
background-color: #E6E2AF;
|
28
|
-
font-weight: normal;
|
29
|
-
text-decoration: underline;
|
30
|
-
}
|
31
|
-
blockquote {
|
32
|
-
font-size: 90%;
|
33
|
-
font-style: italic;
|
34
|
-
border-left: 1px solid #111;
|
35
|
-
padding-left: 1em;
|
36
|
-
}
|
37
|
-
.caps {
|
38
|
-
font-size: 80%;
|
39
|
-
}
|
40
|
-
|
41
|
-
dt {
|
42
|
-
padding-top:20px;
|
43
|
-
font-weight:bold;
|
44
|
-
}
|
45
|
-
|
46
|
-
dd.default {
|
47
|
-
font-weight:italic;
|
48
|
-
}
|
49
|
-
|
50
|
-
#main {
|
51
|
-
width: 45em;
|
52
|
-
padding: 0;
|
53
|
-
margin: 0 auto;
|
54
|
-
}
|
55
|
-
.coda {
|
56
|
-
text-align: right;
|
57
|
-
font-size: smaller;
|
58
|
-
}
|
59
|
-
|
60
|
-
table {
|
61
|
-
font-size: 90%;
|
62
|
-
line-height: 1.4em;
|
63
|
-
color: #ff8;
|
64
|
-
background-color: #111;
|
65
|
-
padding: 2px 10px 2px 10px;
|
66
|
-
border-style: dashed;
|
67
|
-
}
|
68
|
-
|
69
|
-
th {
|
70
|
-
color: #fff;
|
71
|
-
}
|
72
|
-
|
73
|
-
td {
|
74
|
-
padding: 2px 10px 2px 10px;
|
75
|
-
}
|
76
|
-
|
77
|
-
.success {
|
78
|
-
color: #0CC52B;
|
79
|
-
}
|
80
|
-
|
81
|
-
.failed {
|
82
|
-
color: #E90A1B;
|
83
|
-
}
|
84
|
-
|
85
|
-
.unknown {
|
86
|
-
color: #995000;
|
87
|
-
}
|
88
|
-
|
89
|
-
.comment { color: #aaa; font-style: italic; }
|
90
|
-
.keyword { color: #eff; font-weight: bold; }
|
91
|
-
.punct { color: #eee; font-weight: bold; }
|
92
|
-
.symbol { color: #0bb; }
|
93
|
-
.string { color: #6b4; }
|
94
|
-
.ident { color: #ff8; }
|
95
|
-
.constant { color: #66f; }
|
96
|
-
.regex { color: #ec6; }
|
97
|
-
.number { color: #F99; }
|
98
|
-
.expr { color: #227; }
|
99
|
-
|
100
|
-
|
101
|
-
.box {
|
102
|
-
font-family: sans-serif;
|
103
|
-
font-weight: normal;
|
104
|
-
background-color: #445878;
|
105
|
-
color: #000;
|
106
|
-
padding: 15px 20px 10px 20px;
|
107
|
-
margin: 0 auto;
|
108
|
-
margin-top: 15px;
|
109
|
-
border: 3px solid #141331;
|
110
|
-
}
|
111
|
-
|
112
|
-
.recipes pre {
|
113
|
-
margin: 0 30px;
|
114
|
-
}
|
115
|
-
|
116
|
-
.recipes h3 {
|
117
|
-
margin: 0;
|
118
|
-
padding: 4px;
|
119
|
-
background-color: #E6E2AF;
|
120
|
-
}
|
121
|
-
|
122
|
-
.recipe {
|
123
|
-
margin: 0 0 40px 0;
|
124
|
-
padding: 8px;
|
125
|
-
border: 1px dashed #555;
|
126
|
-
}
|
127
|
-
|
128
|
-
h2+ul {
|
129
|
-
padding-bottom: 20px;
|
130
|
-
}
|
131
|
-
|
132
|
-
#version {
|
133
|
-
float: right;
|
134
|
-
text-align: right;
|
135
|
-
clear:right;
|
136
|
-
}
|
137
|
-
|
138
|
-
#version .numbers {
|
139
|
-
display: block;
|
140
|
-
font-size: 4em;
|
141
|
-
line-height: 0.8em;
|
142
|
-
letter-spacing: -0.1ex;
|
143
|
-
margin-bottom: 15px;
|
144
|
-
}
|
145
|
-
|
146
|
-
#version p {
|
147
|
-
text-decoration: none;
|
148
|
-
color: #FFF;
|
149
|
-
background-color: #445878;
|
150
|
-
margin: 0;
|
151
|
-
padding: 0;
|
152
|
-
}
|
153
|
-
|
154
|
-
#version a {
|
155
|
-
color: #FFF;
|
156
|
-
background-color: #445878;
|
157
|
-
}
|
158
|
-
|
159
|
-
#version a {
|
160
|
-
text-decoration: none;
|
161
|
-
}
|
162
|
-
|
163
|
-
.clickable {
|
164
|
-
cursor: pointer;
|
165
|
-
cursor: hand;
|
166
|
-
}
|
167
|
-
|
168
|
-
.options {
|
169
|
-
font-size: 0.8em;
|
170
|
-
}
|
171
|
-
|
172
|
-
/* Code highlighter */
|
173
|
-
pre, code {
|
174
|
-
font-family: "Bitstream Vera Sans Mono", monospace;
|
175
|
-
text-align: left;
|
176
|
-
font-size: 0.8em;
|
177
|
-
line-height: 1.4em;
|
178
|
-
background-color: #111;
|
179
|
-
padding: 2px 10px 2px 10px;
|
180
|
-
overflow: auto;
|
181
|
-
}
|
182
|
-
|
183
|
-
code {
|
184
|
-
color: #EEE;
|
185
|
-
}
|
186
|
-
|
187
|
-
|
188
|
-
pre {
|
189
|
-
font-family: "Bitstream Vera Sans Mono", monospace;
|
190
|
-
text-align: left;
|
191
|
-
font-size: 0.9em;
|
192
|
-
position: relative;
|
193
|
-
left: -38px;
|
194
|
-
width: 698px;
|
195
|
-
color: #eee;
|
196
|
-
}
|
197
|
-
|
198
|
-
dd pre {
|
199
|
-
left: 0;
|
200
|
-
width: auto;
|
201
|
-
}
|
202
|
-
|
203
|
-
code.ruby {
|
204
|
-
color: #eee;
|
205
|
-
}
|
206
|
-
|
207
|
-
.javascript .comment, .ruby .comment, .css .comment {
|
208
|
-
color: #707070;
|
209
|
-
border: 0 solid transparent;
|
210
|
-
}
|
211
|
-
|
212
|
-
.javascript .string, .ruby .string {
|
213
|
-
color: #8B9F67;
|
214
|
-
}
|
215
|
-
|
216
|
-
.ruby .symbol {
|
217
|
-
color: #DF6447;
|
218
|
-
}
|
219
|
-
|
220
|
-
.javascript .keywords, .ruby .keywords {
|
221
|
-
color: #D3A864;
|
222
|
-
font-weight: bold;
|
223
|
-
}
|
224
|
-
|
225
|
-
.javascript .global {
|
226
|
-
color : blue;
|
227
|
-
}
|
228
|
-
|
229
|
-
.javascript .brackets, .ruby .brackets {
|
230
|
-
color : #FFF;
|
231
|
-
}
|
232
|
-
|
233
|
-
.css .properties {
|
234
|
-
color: #999966;
|
235
|
-
}
|
236
|
-
|
237
|
-
.css .selectors {
|
238
|
-
color: #FF6600;
|
239
|
-
font-weight : bold;
|
240
|
-
}
|
241
|
-
|
242
|
-
.css .units {
|
243
|
-
color: black;
|
244
|
-
}
|
245
|
-
|
246
|
-
.css .urls {
|
247
|
-
color: black;
|
248
|
-
}
|
249
|
-
|
250
|
-
.html .tag {
|
251
|
-
color: purple;
|
252
|
-
}
|
253
|
-
|
254
|
-
.html .comment {
|
255
|
-
color : gray;
|
256
|
-
font-style: italic;
|
257
|
-
}
|
258
|
-
|
259
|
-
.html .string {
|
260
|
-
color : navy;
|
261
|
-
}
|
262
|
-
|
263
|
-
.html .doctype {
|
264
|
-
color : teal;
|
265
|
-
}
|
data/website/template.rhtml
DELETED
@@ -1,69 +0,0 @@
|
|
1
|
-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
2
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
3
|
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
4
|
-
<head>
|
5
|
-
<link rel="stylesheet" href="stylesheets/screen.css" type="text/css" media="screen" />
|
6
|
-
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
7
|
-
<title>
|
8
|
-
<%= title %>: Capistrano recipes, plugins and templates.
|
9
|
-
</title>
|
10
|
-
<script src="javascripts/rounded_corners_lite.inc.js" type="text/javascript"></script>
|
11
|
-
<script type="text/javascript">
|
12
|
-
window.onload = function() {
|
13
|
-
settings = {
|
14
|
-
tl: { radius: 10 },
|
15
|
-
tr: { radius: 10 },
|
16
|
-
bl: { radius: 10 },
|
17
|
-
br: { radius: 10 },
|
18
|
-
antiAlias: true,
|
19
|
-
autoPad: true,
|
20
|
-
validTags: ["div"]
|
21
|
-
};
|
22
|
-
|
23
|
-
curvy_ids = [ "version" ];
|
24
|
-
for(id in curvy_ids) {
|
25
|
-
var box = new curvyCorners(settings, document.getElementById(curvy_ids[id]));
|
26
|
-
box.applyCornersToAll();
|
27
|
-
}
|
28
|
-
}
|
29
|
-
</script>
|
30
|
-
</head>
|
31
|
-
<body>
|
32
|
-
<div id="main" class="landing">
|
33
|
-
|
34
|
-
<h1><%= title %></h1>
|
35
|
-
|
36
|
-
<div id="version" class="clickable box" onclick='document.location = "<%= download %>"; return false'>
|
37
|
-
<p>Get Version</p>
|
38
|
-
<a href="<%= download %>" class="numbers"><%= version %></a>
|
39
|
-
</div>
|
40
|
-
|
41
|
-
<div id="recipes">
|
42
|
-
<p>Documentation:
|
43
|
-
<a href="recipes/index.html">Recipes</a> →
|
44
|
-
<a href="http://github.com/gabriel/capitate/tree/master/lib/capitate/plugins">Plugins</a> →
|
45
|
-
<a href="http://github.com/gabriel/capitate/tree/master/lib/templates">Templates</a>
|
46
|
-
</p>
|
47
|
-
</div>
|
48
|
-
|
49
|
-
<div>
|
50
|
-
<%= body %>
|
51
|
-
</div>
|
52
|
-
<p class="coda">
|
53
|
-
<a href="http://ducktyper.com">ducktyper.com</a>, <%= modified.pretty %><br>
|
54
|
-
Theme extended from <a href="http://rb2js.rubyforge.org/">Paul Battley</a>
|
55
|
-
</p>
|
56
|
-
</div>
|
57
|
-
|
58
|
-
<script type="text/javascript">
|
59
|
-
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
|
60
|
-
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
|
61
|
-
</script>
|
62
|
-
<script type="text/javascript">
|
63
|
-
var pageTracker = _gat._getTracker("UA-1286493-6");
|
64
|
-
pageTracker._initData();
|
65
|
-
pageTracker._trackPageview();
|
66
|
-
</script>
|
67
|
-
|
68
|
-
</body>
|
69
|
-
</html>
|
@@ -1,44 +0,0 @@
|
|
1
|
-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
2
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
3
|
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
4
|
-
<head>
|
5
|
-
<link rel="stylesheet" href="../stylesheets/screen.css" type="text/css" media="screen" />
|
6
|
-
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
7
|
-
<title>
|
8
|
-
<% if title != "Recipes" %>
|
9
|
-
Capistrano recipes: <%= title %>
|
10
|
-
<% else %>
|
11
|
-
Capistrano recipes
|
12
|
-
<% end %>
|
13
|
-
</title>
|
14
|
-
<script type="text/javascript" src="../javascripts/code_highlighter.js"></script>
|
15
|
-
<script type="text/javascript" src="../javascripts/ruby.js"></script>
|
16
|
-
</head>
|
17
|
-
<body>
|
18
|
-
<div id="main" class="recipes">
|
19
|
-
|
20
|
-
<h1><%= title %></h1>
|
21
|
-
|
22
|
-
<div>
|
23
|
-
<%= body %>
|
24
|
-
</div>
|
25
|
-
|
26
|
-
<p class="coda">
|
27
|
-
<a href="http://ducktyper.com">ducktyper.com</a>, <%= modified.pretty %><br>
|
28
|
-
Theme extended from <a href="http://rb2js.rubyforge.org/">Paul Battley</a>
|
29
|
-
</p>
|
30
|
-
</div>
|
31
|
-
|
32
|
-
|
33
|
-
<script type="text/javascript">
|
34
|
-
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
|
35
|
-
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
|
36
|
-
</script>
|
37
|
-
<script type="text/javascript">
|
38
|
-
var pageTracker = _gat._getTracker("UA-1286493-6");
|
39
|
-
pageTracker._initData();
|
40
|
-
pageTracker._trackPageview();
|
41
|
-
</script>
|
42
|
-
|
43
|
-
</body>
|
44
|
-
</html>
|