thinner 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.document +5 -0
- data/.gitignore +21 -0
- data/LICENSE +20 -0
- data/README +17 -0
- data/Rakefile +64 -0
- data/VERSION +1 -0
- data/bin/thinner +4 -0
- data/doc/Thinner/Client.html +602 -0
- data/doc/Thinner/CommandLine.html +291 -0
- data/doc/Thinner/Configuration.html +592 -0
- data/doc/Thinner/Purger.html +433 -0
- data/doc/Thinner.html +455 -0
- data/doc/_index.html +138 -0
- data/doc/class_list.html +36 -0
- data/doc/css/common.css +1 -0
- data/doc/css/full_list.css +53 -0
- data/doc/css/style.css +307 -0
- data/doc/file.README.html +71 -0
- data/doc/file_list.html +38 -0
- data/doc/frames.html +13 -0
- data/doc/index.html +71 -0
- data/doc/js/app.js +202 -0
- data/doc/js/full_list.js +149 -0
- data/doc/js/jquery.js +154 -0
- data/doc/method_list.html +211 -0
- data/doc/top-level-namespace.html +88 -0
- data/documentation/css/dawn.css +121 -0
- data/documentation/css/styles.css +53 -0
- data/documentation/examples/configure.rb +25 -0
- data/documentation/examples/purge.rb +5 -0
- data/documentation/images/proplogo.png +0 -0
- data/documentation/index.html.erb +64 -0
- data/index.html +87 -0
- data/lib/thinner/client.rb +88 -0
- data/lib/thinner/command_line.rb +80 -0
- data/lib/thinner/configuration.rb +37 -0
- data/lib/thinner/purger.rb +46 -0
- data/lib/thinner.rb +37 -0
- data/test/helper.rb +10 -0
- data/test/test_thinner.rb +32 -0
- data/thinner.gemspec +90 -0
- metadata +138 -0
@@ -0,0 +1,291 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
2
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
3
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
4
|
+
<head>
|
5
|
+
<meta name="Content-Type" content="text/html; charset=utf-8" />
|
6
|
+
<title>Class: Thinner::CommandLine</title>
|
7
|
+
<link rel="stylesheet" href="../css/style.css" type="text/css" media="screen" charset="utf-8" />
|
8
|
+
<link rel="stylesheet" href="../css/common.css" type="text/css" media="screen" charset="utf-8" />
|
9
|
+
|
10
|
+
<script type="text/javascript" charset="utf-8">
|
11
|
+
relpath = '..';
|
12
|
+
if (relpath != '') relpath += '/';
|
13
|
+
</script>
|
14
|
+
<script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
|
15
|
+
<script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
|
16
|
+
|
17
|
+
</head>
|
18
|
+
<body>
|
19
|
+
<script type="text/javascript" charset="utf-8">
|
20
|
+
if (window.top.frames.main) document.body.className = 'frames';
|
21
|
+
</script>
|
22
|
+
|
23
|
+
<div id="header">
|
24
|
+
<div id="menu">
|
25
|
+
|
26
|
+
<a href="../_index.html">Index (C)</a> »
|
27
|
+
<span class='title'><span class='object_link'><a href="../Thinner.html" title="Thinner (module)">Thinner</a></span></span>
|
28
|
+
»
|
29
|
+
<span class="title">CommandLine</span>
|
30
|
+
|
31
|
+
|
32
|
+
<div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
|
33
|
+
</div>
|
34
|
+
|
35
|
+
<div id="search">
|
36
|
+
<a id="class_list_link" href="#">Class List</a>
|
37
|
+
<a id="method_list_link" href="#">Method List</a>
|
38
|
+
<a id ="file_list_link" href="#">File List</a>
|
39
|
+
</div>
|
40
|
+
|
41
|
+
<div class="clear"></div>
|
42
|
+
</div>
|
43
|
+
|
44
|
+
<iframe id="search_frame"></iframe>
|
45
|
+
|
46
|
+
<div id="content"><h1>Class: Thinner::CommandLine
|
47
|
+
|
48
|
+
|
49
|
+
|
50
|
+
</h1>
|
51
|
+
|
52
|
+
<dl class="box">
|
53
|
+
|
54
|
+
<dt class="r1">Inherits:</dt>
|
55
|
+
<dd class="r1">
|
56
|
+
<span class="inheritName">Object</span>
|
57
|
+
|
58
|
+
<ul class="fullTree">
|
59
|
+
<li>Object</li>
|
60
|
+
|
61
|
+
<li class="next">Thinner::CommandLine</li>
|
62
|
+
|
63
|
+
</ul>
|
64
|
+
<a href="#" class="inheritanceTree">show all</a>
|
65
|
+
|
66
|
+
</dd>
|
67
|
+
|
68
|
+
|
69
|
+
|
70
|
+
|
71
|
+
|
72
|
+
|
73
|
+
|
74
|
+
|
75
|
+
|
76
|
+
<dt class="r2 last">Defined in:</dt>
|
77
|
+
<dd class="r2 last">lib/thinner/command_line.rb</dd>
|
78
|
+
|
79
|
+
</dl>
|
80
|
+
<div class="clear"></div>
|
81
|
+
|
82
|
+
|
83
|
+
<h2>Constant Summary</h2>
|
84
|
+
|
85
|
+
<dl class="constants">
|
86
|
+
|
87
|
+
<dt id="BANNER-constant" class="">BANNER =
|
88
|
+
<div class="docstring">
|
89
|
+
<div class="discussion">
|
90
|
+
<p>
|
91
|
+
Usage and summary
|
92
|
+
</p>
|
93
|
+
|
94
|
+
|
95
|
+
</div>
|
96
|
+
</div>
|
97
|
+
<div class="tags">
|
98
|
+
|
99
|
+
</div>
|
100
|
+
</dt>
|
101
|
+
<dd><pre class="code"><span class='string val'>"Thinner purges varnish caches as slowly as you need it to.\n\nDocumentation: http://propublica.github.com/thinner/\n\nUsage: thinner OPTIONS URL\n\nOptions:\n"</span>
|
102
|
+
</pre></dd>
|
103
|
+
|
104
|
+
</dl>
|
105
|
+
|
106
|
+
|
107
|
+
|
108
|
+
|
109
|
+
|
110
|
+
<h2>
|
111
|
+
Instance Method Summary
|
112
|
+
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
113
|
+
</h2>
|
114
|
+
|
115
|
+
<ul class="summary">
|
116
|
+
|
117
|
+
<li class="public ">
|
118
|
+
<span class="summary_signature">
|
119
|
+
|
120
|
+
<a href="#initialize-instance_method" title="#initialize (instance method)">- (CommandLine) <strong>initialize</strong> </a>
|
121
|
+
|
122
|
+
|
123
|
+
|
124
|
+
</span>
|
125
|
+
|
126
|
+
<span class="note title constructor">constructor</span>
|
127
|
+
|
128
|
+
|
129
|
+
|
130
|
+
|
131
|
+
|
132
|
+
|
133
|
+
|
134
|
+
|
135
|
+
<span class="summary_desc"><div class='inline'><p>
|
136
|
+
Create a Thinner::CommandLine, parse any associated options, grab a list of
|
137
|
+
urls and start the process.
|
138
|
+
</p>
|
139
|
+
</div></span>
|
140
|
+
|
141
|
+
</li>
|
142
|
+
|
143
|
+
|
144
|
+
<li class="public ">
|
145
|
+
<span class="summary_signature">
|
146
|
+
|
147
|
+
<a href="#run%21-instance_method" title="#run! (instance method)">- (Object) <strong>run!</strong> </a>
|
148
|
+
|
149
|
+
|
150
|
+
|
151
|
+
</span>
|
152
|
+
|
153
|
+
|
154
|
+
|
155
|
+
|
156
|
+
|
157
|
+
|
158
|
+
|
159
|
+
|
160
|
+
<span class="summary_desc"><div class='inline'><p>
|
161
|
+
Build a Thinner::Configuration instance from the passed in options and go
|
162
|
+
to the races.
|
163
|
+
</p>
|
164
|
+
</div></span>
|
165
|
+
|
166
|
+
</li>
|
167
|
+
|
168
|
+
|
169
|
+
</ul>
|
170
|
+
|
171
|
+
|
172
|
+
<div id="constructor_details" class="method_details_list">
|
173
|
+
<h2>Constructor Details</h2>
|
174
|
+
|
175
|
+
<div class="method_details first">
|
176
|
+
<p class="signature first" id="initialize-instance_method">
|
177
|
+
|
178
|
+
- (<tt><span class='object_link'><a href="" title="Thinner::CommandLine (class)">CommandLine</a></span></tt>) <strong>initialize</strong>
|
179
|
+
|
180
|
+
|
181
|
+
|
182
|
+
</p><div class="docstring">
|
183
|
+
<div class="discussion">
|
184
|
+
<p>
|
185
|
+
Create a Thinner::CommandLine, parse any associated options, grab a list of
|
186
|
+
urls and start the process
|
187
|
+
</p>
|
188
|
+
|
189
|
+
|
190
|
+
</div>
|
191
|
+
</div>
|
192
|
+
<div class="tags">
|
193
|
+
|
194
|
+
</div><table class="source_code">
|
195
|
+
<tr>
|
196
|
+
<td>
|
197
|
+
<pre class="lines">
|
198
|
+
|
199
|
+
|
200
|
+
21
|
201
|
+
22
|
202
|
+
23
|
203
|
+
24
|
204
|
+
25
|
205
|
+
26</pre>
|
206
|
+
</td>
|
207
|
+
<td>
|
208
|
+
<pre class="code"><span class="info file"># File 'lib/thinner/command_line.rb', line 21</span>
|
209
|
+
|
210
|
+
<span class='def def kw'>def</span> <span class='initialize identifier id'>initialize</span>
|
211
|
+
<span class='@urls ivar id'>@urls</span> <span class='assign token'>=</span> <span class='lbrack token'>[</span><span class='rbrack token'>]</span>
|
212
|
+
<span class='options! fid id'>options!</span>
|
213
|
+
<span class='@urls ivar id'>@urls</span> <span class='opasgn op'>||=</span> <span class='ARGV constant id'>ARGV</span>
|
214
|
+
<span class='run! fid id'>run!</span>
|
215
|
+
<span class='end end kw'>end</span>
|
216
|
+
</pre>
|
217
|
+
</td>
|
218
|
+
</tr>
|
219
|
+
</table>
|
220
|
+
</div>
|
221
|
+
|
222
|
+
</div>
|
223
|
+
|
224
|
+
|
225
|
+
<div id="instance_method_details" class="method_details_list">
|
226
|
+
<h2>Instance Method Details</h2>
|
227
|
+
|
228
|
+
|
229
|
+
<div class="method_details first">
|
230
|
+
<p class="signature first" id="run!-instance_method">
|
231
|
+
|
232
|
+
- (<tt>Object</tt>) <strong>run!</strong>
|
233
|
+
|
234
|
+
|
235
|
+
|
236
|
+
</p><div class="docstring">
|
237
|
+
<div class="discussion">
|
238
|
+
<p>
|
239
|
+
Build a Thinner::Configuration instance from the passed in options and go
|
240
|
+
to the races.
|
241
|
+
</p>
|
242
|
+
|
243
|
+
|
244
|
+
</div>
|
245
|
+
</div>
|
246
|
+
<div class="tags">
|
247
|
+
|
248
|
+
</div><table class="source_code">
|
249
|
+
<tr>
|
250
|
+
<td>
|
251
|
+
<pre class="lines">
|
252
|
+
|
253
|
+
|
254
|
+
30
|
255
|
+
31
|
256
|
+
32
|
257
|
+
33
|
258
|
+
34
|
259
|
+
35
|
260
|
+
36
|
261
|
+
37</pre>
|
262
|
+
</td>
|
263
|
+
<td>
|
264
|
+
<pre class="code"><span class="info file"># File 'lib/thinner/command_line.rb', line 30</span>
|
265
|
+
|
266
|
+
<span class='def def kw'>def</span> <span class='run! fid id'>run!</span>
|
267
|
+
<span class='Thinner constant id'>Thinner</span><span class='dot token'>.</span><span class='configure identifier id'>configure</span> <span class='do do kw'>do</span> <span class='bitor op'>|</span><span class='config identifier id'>config</span><span class='bitor op'>|</span>
|
268
|
+
<span class='@options ivar id'>@options</span><span class='dot token'>.</span><span class='each_pair identifier id'>each_pair</span> <span class='do do kw'>do</span> <span class='bitor op'>|</span><span class='key identifier id'>key</span><span class='comma token'>,</span> <span class='value identifier id'>value</span><span class='bitor op'>|</span>
|
269
|
+
<span class='config identifier id'>config</span><span class='dot token'>.</span><span class='send identifier id'>send</span><span class='lparen token'>(</span><span class='dstring node'>"#{key}="</span><span class='dot token'>.</span><span class='to_sym identifier id'>to_sym</span><span class='comma token'>,</span> <span class='value identifier id'>value</span><span class='rparen token'>)</span>
|
270
|
+
<span class='end end kw'>end</span>
|
271
|
+
<span class='end end kw'>end</span>
|
272
|
+
<span class='Thinner constant id'>Thinner</span><span class='dot token'>.</span><span class='purge! fid id'>purge!</span> <span class='@urls ivar id'>@urls</span>
|
273
|
+
<span class='end end kw'>end</span>
|
274
|
+
</pre>
|
275
|
+
</td>
|
276
|
+
</tr>
|
277
|
+
</table>
|
278
|
+
</div>
|
279
|
+
|
280
|
+
</div>
|
281
|
+
|
282
|
+
</div>
|
283
|
+
|
284
|
+
<div id="footer">
|
285
|
+
Generated on Tue Nov 2 14:25:50 2010 by
|
286
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
287
|
+
0.6.1 (ruby-1.8.7).
|
288
|
+
</div>
|
289
|
+
|
290
|
+
</body>
|
291
|
+
</html>
|