capitate 0.2.11 → 0.2.13

Sign up to get free protection for your applications and to get access to all the features.
Files changed (52) hide show
  1. data/History.txt +9 -0
  2. data/Manifest.txt +11 -1
  3. data/lib/capitate/cap_ext/connections.rb +15 -8
  4. data/lib/capitate/cap_ext/run_via.rb +2 -0
  5. data/lib/capitate/cap_ext/variables.rb +9 -2
  6. data/lib/capitate/plugins/base.rb +17 -12
  7. data/lib/capitate/plugins/build.rb +14 -11
  8. data/lib/capitate/plugins/prompt.rb +6 -8
  9. data/lib/capitate/plugins/script.rb +6 -4
  10. data/lib/capitate/plugins/templates.rb +16 -7
  11. data/lib/capitate/plugins/upload.rb +2 -1
  12. data/lib/capitate/plugins/utils.rb +7 -5
  13. data/lib/capitate/task_node.rb +30 -32
  14. data/lib/capitate/version.rb +1 -1
  15. data/lib/recipes/backgroundrb.rb +18 -4
  16. data/lib/recipes/centos/backgroundrb.rb +10 -3
  17. data/lib/recipes/centos/centos.rb +21 -8
  18. data/lib/recipes/centos/imagemagick.rb +4 -1
  19. data/lib/recipes/centos/memcached.rb +26 -8
  20. data/lib/recipes/centos/mongrel_cluster.rb +33 -13
  21. data/lib/recipes/centos/monit.rb +32 -11
  22. data/lib/recipes/centos/mysql.rb +7 -2
  23. data/lib/recipes/centos/nginx.rb +29 -10
  24. data/lib/recipes/centos/ruby.rb +11 -2
  25. data/lib/recipes/centos/sphinx.rb +32 -10
  26. data/lib/recipes/docs.rb +12 -7
  27. data/lib/recipes/logrotate/backgroundrb.rb +25 -0
  28. data/lib/recipes/logrotated.rb +18 -12
  29. data/lib/recipes/memcached.rb +0 -25
  30. data/lib/recipes/monit/backgroundrb.rb +39 -0
  31. data/lib/recipes/monit/memcached.rb +22 -0
  32. data/lib/recipes/{mongrel_cluster.rb → monit/mongrel_cluster.rb} +22 -12
  33. data/lib/recipes/monit/mysql.rb +21 -0
  34. data/lib/recipes/monit/nginx.rb +34 -0
  35. data/lib/recipes/monit/sphinx.rb +29 -0
  36. data/lib/recipes/monit/sshd.rb +27 -0
  37. data/lib/recipes/monit.rb +18 -3
  38. data/lib/recipes/mysql.rb +22 -32
  39. data/lib/recipes/nginx.rb +15 -30
  40. data/lib/recipes/rails.rb +17 -6
  41. data/lib/recipes/sphinx.rb +11 -24
  42. data/lib/recipes/sshd.rb +4 -22
  43. data/lib/recipes/syslogd.rb +4 -0
  44. data/lib/templates/backgroundrb/backgroundrb.monitrc.erb +4 -0
  45. data/lib/templates/backgroundrb/backgroundrb.yml.erb +4 -0
  46. data/website/index.html +10 -2
  47. data/website/javascripts/code_highlighter.js +188 -0
  48. data/website/javascripts/ruby.js +18 -0
  49. data/website/stylesheets/screen.css +116 -23
  50. data/website/template.rhtml +9 -1
  51. data/website/template_recipe.rhtml +12 -1
  52. metadata +13 -3
@@ -38,6 +38,15 @@ blockquote {
38
38
  font-size: 80%;
39
39
  }
40
40
 
41
+ dt {
42
+ padding-top:20px;
43
+ font-weight:bold;
44
+ }
45
+
46
+ dd.default {
47
+ font-weight:italic;
48
+ }
49
+
41
50
  #main {
42
51
  width: 45em;
43
52
  padding: 0;
@@ -76,15 +85,7 @@ td {
76
85
  .unknown {
77
86
  color: #995000;
78
87
  }
79
- pre, code {
80
- font-family: monospace;
81
- font-size: 90%;
82
- line-height: 1.4em;
83
- color: #ff8;
84
- background-color: #111;
85
- padding: 2px 10px 2px 10px;
86
- overflow: auto;
87
- }
88
+
88
89
  .comment { color: #aaa; font-style: italic; }
89
90
  .keyword { color: #eff; font-weight: bold; }
90
91
  .punct { color: #eee; font-weight: bold; }
@@ -108,28 +109,26 @@ pre, code {
108
109
  border: 3px solid #141331;
109
110
  }
110
111
 
111
- .landing h1 {
112
-
113
- }
114
-
115
- #recipes {
116
-
117
- }
118
-
119
- .recipes pre,
120
- .recipes code {
112
+ .recipes pre {
121
113
  margin: 0 30px;
122
114
  }
123
115
 
124
- .recipes code {
125
- display:block;
126
- }
127
-
128
116
  .recipes h3 {
117
+ margin: 0;
129
118
  padding: 4px;
130
119
  background-color: #E6E2AF;
131
120
  }
132
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
+
133
132
  #version {
134
133
  float: right;
135
134
  text-align: right;
@@ -166,3 +165,97 @@ pre, code {
166
165
  cursor: hand;
167
166
  }
168
167
 
168
+ /* Code highlighter */
169
+ pre, code {
170
+ font-family: "Bitstream Vera Sans Mono", monospace;
171
+ text-align: left;
172
+ font-size: 0.8em;
173
+ line-height: 1.4em;
174
+ background-color: #111;
175
+ padding: 2px 10px 2px 10px;
176
+ overflow: auto;
177
+ }
178
+
179
+ code {
180
+ color: #EEE;
181
+ }
182
+
183
+
184
+ pre {
185
+ font-family: "Bitstream Vera Sans Mono", monospace;
186
+ text-align: left;
187
+ font-size: 0.9em;
188
+ position: relative;
189
+ left: -38px;
190
+ width: 698px;
191
+ color: #eee;
192
+ }
193
+
194
+ dd pre {
195
+ left: 0;
196
+ width: auto;
197
+ }
198
+
199
+ code.ruby {
200
+ color: #eee;
201
+ }
202
+
203
+ .javascript .comment, .ruby .comment, .css .comment {
204
+ color: #707070;
205
+ border: 0 solid transparent;
206
+ }
207
+
208
+ .javascript .string, .ruby .string {
209
+ color: #8B9F67;
210
+ }
211
+
212
+ .ruby .symbol {
213
+ color: #DF6447;
214
+ }
215
+
216
+ .javascript .keywords, .ruby .keywords {
217
+ color: #D3A864;
218
+ font-weight: bold;
219
+ }
220
+
221
+ .javascript .global {
222
+ color : blue;
223
+ }
224
+
225
+ .javascript .brackets, .ruby .brackets {
226
+ color : #FFF;
227
+ }
228
+
229
+ .css .properties {
230
+ color: #999966;
231
+ }
232
+
233
+ .css .selectors {
234
+ color: #FF6600;
235
+ font-weight : bold;
236
+ }
237
+
238
+ .css .units {
239
+ color: black;
240
+ }
241
+
242
+ .css .urls {
243
+ color: black;
244
+ }
245
+
246
+ .html .tag {
247
+ color: purple;
248
+ }
249
+
250
+ .html .comment {
251
+ color : gray;
252
+ font-style: italic;
253
+ }
254
+
255
+ .html .string {
256
+ color : navy;
257
+ }
258
+
259
+ .html .doctype {
260
+ color : teal;
261
+ }
@@ -58,7 +58,15 @@
58
58
  </p>
59
59
  </div>
60
60
 
61
- <!-- insert site tracking codes here, like Google Urchin -->
61
+ <script type="text/javascript">
62
+ var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
63
+ document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
64
+ </script>
65
+ <script type="text/javascript">
66
+ var pageTracker = _gat._getTracker("UA-1286493-6");
67
+ pageTracker._initData();
68
+ pageTracker._trackPageview();
69
+ </script>
62
70
 
63
71
  </body>
64
72
  </html>
@@ -11,6 +11,8 @@
11
11
  Capistrano recipes
12
12
  <% end %>
13
13
  </title>
14
+ <script type="text/javascript" src="../javascripts/code_highlighter.js"></script>
15
+ <script type="text/javascript" src="../javascripts/ruby.js"></script>
14
16
  </head>
15
17
  <body>
16
18
  <div id="main" class="recipes">
@@ -23,7 +25,16 @@
23
25
  </p>
24
26
  </div>
25
27
 
26
- <!-- insert site tracking codes here, like Google Urchin -->
28
+
29
+ <script type="text/javascript">
30
+ var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
31
+ document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
32
+ </script>
33
+ <script type="text/javascript">
34
+ var pageTracker = _gat._getTracker("UA-1286493-6");
35
+ pageTracker._initData();
36
+ pageTracker._trackPageview();
37
+ </script>
27
38
 
28
39
  </body>
29
40
  </html>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capitate
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.11
4
+ version: 0.2.13
5
5
  platform: ""
6
6
  authors:
7
7
  - Gabriel Handford
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-03-25 00:00:00 -04:00
12
+ date: 2008-03-26 00:00:00 -04:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -75,6 +75,7 @@ files:
75
75
  - lib/recipes/centos/ruby.rb
76
76
  - lib/recipes/centos/sphinx.rb
77
77
  - lib/recipes/docs.rb
78
+ - lib/recipes/logrotate/backgroundrb.rb
78
79
  - lib/recipes/logrotate/mongrel_cluster.rb
79
80
  - lib/recipes/logrotate/monit.rb
80
81
  - lib/recipes/logrotate/nginx.rb
@@ -82,8 +83,14 @@ files:
82
83
  - lib/recipes/logrotate/sphinx.rb
83
84
  - lib/recipes/logrotated.rb
84
85
  - lib/recipes/memcached.rb
85
- - lib/recipes/mongrel_cluster.rb
86
86
  - lib/recipes/monit.rb
87
+ - lib/recipes/monit/backgroundrb.rb
88
+ - lib/recipes/monit/memcached.rb
89
+ - lib/recipes/monit/mongrel_cluster.rb
90
+ - lib/recipes/monit/mysql.rb
91
+ - lib/recipes/monit/nginx.rb
92
+ - lib/recipes/monit/sphinx.rb
93
+ - lib/recipes/monit/sshd.rb
87
94
  - lib/recipes/mysql.rb
88
95
  - lib/recipes/nginx.rb
89
96
  - lib/recipes/rails.rb
@@ -91,6 +98,7 @@ files:
91
98
  - lib/recipes/sshd.rb
92
99
  - lib/recipes/syslogd.rb
93
100
  - lib/templates/backgroundrb/backgroundrb.initd.centos.erb
101
+ - lib/templates/backgroundrb/backgroundrb.monitrc.erb
94
102
  - lib/templates/backgroundrb/backgroundrb.yml.erb
95
103
  - lib/templates/capistrano/Capfile
96
104
  - lib/templates/logrotated/conf.erb
@@ -129,7 +137,9 @@ files:
129
137
  - test/test_templates.rb
130
138
  - website/index.html
131
139
  - website/index.txt
140
+ - website/javascripts/code_highlighter.js
132
141
  - website/javascripts/rounded_corners_lite.inc.js
142
+ - website/javascripts/ruby.js
133
143
  - website/stylesheets/screen.css
134
144
  - website/template.rhtml
135
145
  - website/template_recipe.rhtml