reflection 0.4.0 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,411 @@
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: Reflection::Directory::Stash</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
+ <div id="header">
20
+ <div id="menu">
21
+
22
+ <a href="../../_index.html">Index (S)</a> &raquo;
23
+ <a title="Reflection" href="../../Reflection.html">Reflection</a> &raquo; <a title="Directory" href="../Directory.html">Directory</a>
24
+ &raquo;
25
+ <span class="title">Stash</span>
26
+
27
+ </div>
28
+
29
+ <div id="search">
30
+ <a id="class_list_link" href="#">Namespace List</a>
31
+ <a id="method_list_link" href="#">Method List</a>
32
+ <a id ="file_list_link" href="#">File List</a>
33
+ </div>
34
+
35
+ <div class="clear"></div>
36
+ </div>
37
+
38
+ <iframe id="search_frame"></iframe>
39
+
40
+ <div id="content"><h1>Class: Reflection::Directory::Stash
41
+
42
+
43
+ </h1>
44
+
45
+ <dl class="box">
46
+
47
+ <dt class="r1">Inherits:</dt>
48
+ <dd class="r1">
49
+ <span class="inheritName"><a title="Reflection::Directory::Base" href="Base.html">Reflection::Directory::Base</a></span>
50
+
51
+ <ul class="fullTree">
52
+ <li>Object</li>
53
+
54
+ <li class="next"><a title="Reflection::Directory::Base" href="Base.html">Reflection::Directory::Base</a></li>
55
+
56
+ <li class="next">Reflection::Directory::Stash</li>
57
+
58
+ </ul>
59
+ <a href="#" class="inheritanceTree">show all</a>
60
+
61
+ </dd>
62
+
63
+
64
+
65
+
66
+
67
+
68
+
69
+
70
+ <dt class="r2 last">Defined in:</dt>
71
+ <dd class="r2 last">lib/reflection/directory/stash.rb</dd>
72
+
73
+ </dl>
74
+ <div class="clear"></div>
75
+
76
+
77
+
78
+
79
+
80
+
81
+
82
+ <h2>Attribute Summary</h2>
83
+ <ul class="summary">
84
+
85
+ <li class="public ">
86
+ <span class="summary_signature"><a title="#repository (instance method)" href="#repository-instance_method">- (Object) <strong>repository</strong> </a>
87
+
88
+ </span>
89
+
90
+
91
+
92
+
93
+
94
+
95
+
96
+
97
+
98
+ <span class="summary_desc">
99
+ Returns the value of attribute <tt>repository</tt>.
100
+
101
+ </span>
102
+
103
+ </li>
104
+
105
+
106
+ </ul>
107
+
108
+
109
+ <h2>Method Summary</h2>
110
+ <ul class="summary">
111
+
112
+ <li class="public ">
113
+ <span class="summary_signature"><a title="#clone_repository (instance method)" href="#clone_repository-instance_method">- (Object) <strong>clone_repository</strong> </a>
114
+
115
+ </span>
116
+
117
+
118
+
119
+
120
+
121
+
122
+ <span class="summary_desc"></span>
123
+
124
+ </li>
125
+
126
+
127
+ <li class="public ">
128
+ <span class="summary_signature"><a title="#initialize (instance method)" href="#initialize-instance_method">- (Stash) <strong>initialize</strong>(repository, identifier_prefix) </a>
129
+
130
+ </span>
131
+
132
+
133
+
134
+
135
+
136
+
137
+ <span class="summary_desc">
138
+ A new instance of <tt>Stash</tt>.
139
+
140
+ </span>
141
+
142
+ </li>
143
+
144
+
145
+ <li class="public ">
146
+ <span class="summary_signature"><a title="#path (instance method)" href="#path-instance_method">- (Object) <strong>path</strong> </a>
147
+
148
+ </span>
149
+
150
+
151
+
152
+
153
+
154
+
155
+ <span class="summary_desc"></span>
156
+
157
+ </li>
158
+
159
+
160
+ <li class="public ">
161
+ <span class="summary_signature"><a title="#validate_repository (instance method)" href="#validate_repository-instance_method">- (Object) <strong>validate_repository</strong> </a>
162
+
163
+ </span>
164
+
165
+
166
+
167
+
168
+
169
+
170
+ <span class="summary_desc"></span>
171
+
172
+ </li>
173
+
174
+
175
+ </ul>
176
+
177
+
178
+
179
+
180
+
181
+
182
+
183
+ <h3 class="inherited">Methods inherited from <a title="Reflection::Directory::Base" href="Base.html">Reflection::Directory::Base</a></h3>
184
+ <p class="inherited"><a title="#clean!" href="Base.html#clean%21-instance_method">#clean!</a>, <a title="#copy_git_index_to" href="Base.html#copy_git_index_to-instance_method">#copy_git_index_to</a>, <a title="#exists?" href="Base.html#exists%3F-instance_method">#exists?</a>, <a title="#get_git_index_from" href="Base.html#get_git_index_from-instance_method">#get_git_index_from</a>, <a title="#git_index" href="Base.html#git_index-instance_method">#git_index</a>, <a title="#move_content_to" href="Base.html#move_content_to-instance_method">#move_content_to</a>, <a title="#name" href="Base.html#name-instance_method">#name</a>, <a title="#parent" href="Base.html#parent-instance_method">#parent</a>, <a title="#to_s" href="Base.html#to_s-instance_method">#to_s</a></p>
185
+ <div id="constructor_details">
186
+ <h2>Constructor Details</h2>
187
+
188
+ <div class="method_details first">
189
+ <p class="signature first" id="initialize-instance_method">
190
+
191
+ - (<tt><a title="Stash" href="">Stash</a></tt>) <strong>initialize</strong>(repository, identifier_prefix)
192
+
193
+
194
+
195
+ </p><div class="docstring">
196
+ <div class="discussion">
197
+ <p>
198
+ A new instance of <tt>Stash</tt>
199
+ </p>
200
+
201
+
202
+ </div>
203
+ </div>
204
+ <div class="tags">
205
+ <h3>Returns:</h3>
206
+ <ul class="return">
207
+
208
+ <li>
209
+
210
+ <span class='type'>(<tt><a title="Stash" href="">Stash</a></tt>)</span>
211
+
212
+
213
+
214
+
215
+ &mdash;
216
+
217
+ a new instance of <tt>Stash</tt>
218
+
219
+
220
+
221
+ </li>
222
+
223
+ </ul>
224
+
225
+ </div><table class="source_code">
226
+ <tr>
227
+ <td>
228
+ <pre class="lines">
229
+
230
+
231
+ 7
232
+ 8
233
+ 9
234
+ 10</pre>
235
+ </td>
236
+ <td>
237
+ <pre class="code"><span class="info file"># File 'lib/reflection/directory/stash.rb', line 7</span>
238
+
239
+ <span class='def def kw'>def</span> <span class='initialize identifier id'>initialize</span><span class='lparen token'>(</span><span class='repository identifier id'>repository</span><span class='comma token'>,</span> <span class='identifier_prefix identifier id'>identifier_prefix</span><span class='rparen token'>)</span>
240
+ <span class='@repository ivar id'>@repository</span> <span class='assign token'>=</span> <span class='repository identifier id'>repository</span>
241
+ <span class='@identifier_prefix ivar id'>@identifier_prefix</span> <span class='assign token'>=</span> <span class='identifier_prefix identifier id'>identifier_prefix</span>
242
+ <span class='end end kw'>end</span>
243
+ </pre>
244
+ </td>
245
+ </tr>
246
+ </table>
247
+ </div>
248
+
249
+ </div>
250
+
251
+ <div id="attr_details">
252
+ <h2>Attribute Details</h2>
253
+
254
+
255
+ <span id="repository=-instance_method"></span>
256
+ <span id="repository-instance_method"></span>
257
+ <div class="method_details first">
258
+ <p class="signature first" id="repository-instance_method">
259
+
260
+ - (<tt>Object</tt>) <strong>repository</strong>
261
+
262
+
263
+
264
+ </p><div class="docstring">
265
+ <div class="discussion">
266
+ <p>
267
+ Returns the value of attribute <tt>repository</tt>
268
+ </p>
269
+
270
+
271
+ </div>
272
+ </div>
273
+ <div class="tags">
274
+
275
+ </div><table class="source_code">
276
+ <tr>
277
+ <td>
278
+ <pre class="lines">
279
+
280
+
281
+ 5
282
+ 6
283
+ 7</pre>
284
+ </td>
285
+ <td>
286
+ <pre class="code"><span class="info file"># File 'lib/reflection/directory/stash.rb', line 5</span>
287
+
288
+ <span class='def def kw'>def</span> <span class='repository identifier id'>repository</span>
289
+ <span class='@repository ivar id'>@repository</span>
290
+ <span class='end end kw'>end</span>
291
+ </pre>
292
+ </td>
293
+ </tr>
294
+ </table>
295
+ </div>
296
+
297
+ </div>
298
+
299
+
300
+ <div id="method_details">
301
+ <h2>Method Details</h2>
302
+
303
+ <div class="method_details first">
304
+ <p class="signature first" id="clone_repository-instance_method">
305
+
306
+ - (<tt>Object</tt>) <strong>clone_repository</strong>
307
+
308
+
309
+
310
+ </p><table class="source_code">
311
+ <tr>
312
+ <td>
313
+ <pre class="lines">
314
+
315
+
316
+ 24
317
+ 25
318
+ 26
319
+ 27</pre>
320
+ </td>
321
+ <td>
322
+ <pre class="code"><span class="info file"># File 'lib/reflection/directory/stash.rb', line 24</span>
323
+
324
+ <span class='def def kw'>def</span> <span class='clone_repository identifier id'>clone_repository</span>
325
+ <span class='Reflection constant id'>Reflection</span><span class='dot token'>.</span><span class='log identifier id'>log</span><span class='dot token'>.</span><span class='debug identifier id'>debug</span> <span class='dstring node'>&quot;Cloning repository '#{self.repository.url}' to '#{self.path}'&quot;</span>
326
+ <span class='@repository ivar id'>@repository</span><span class='dot token'>.</span><span class='clone identifier id'>clone</span><span class='lparen token'>(</span><span class='self self kw'>self</span><span class='dot token'>.</span><span class='path identifier id'>path</span><span class='rparen token'>)</span>
327
+ <span class='end end kw'>end</span>
328
+ </pre>
329
+ </td>
330
+ </tr>
331
+ </table>
332
+ </div>
333
+
334
+ <div class="method_details ">
335
+ <p class="signature " id="path-instance_method">
336
+
337
+ - (<tt>Object</tt>) <strong>path</strong>
338
+
339
+
340
+
341
+ </p><table class="source_code">
342
+ <tr>
343
+ <td>
344
+ <pre class="lines">
345
+
346
+
347
+ 12
348
+ 13
349
+ 14</pre>
350
+ </td>
351
+ <td>
352
+ <pre class="code"><span class="info file"># File 'lib/reflection/directory/stash.rb', line 12</span>
353
+
354
+ <span class='def def kw'>def</span> <span class='path identifier id'>path</span>
355
+ <span class='@path ivar id'>@path</span> <span class='assign token'>=</span> <span class='File constant id'>File</span><span class='dot token'>.</span><span class='join identifier id'>join</span><span class='lparen token'>(</span><span class='Reflection constant id'>Reflection</span><span class='dot token'>.</span><span class='home identifier id'>home</span><span class='dot token'>.</span><span class='path identifier id'>path</span><span class='comma token'>,</span> <span class='@identifier_prefix ivar id'>@identifier_prefix</span><span class='comma token'>,</span> <span class='repository identifier id'>repository</span><span class='dot token'>.</span><span class='identifier identifier id'>identifier</span><span class='rparen token'>)</span>
356
+ <span class='end end kw'>end</span>
357
+ </pre>
358
+ </td>
359
+ </tr>
360
+ </table>
361
+ </div>
362
+
363
+ <div class="method_details ">
364
+ <p class="signature " id="validate_repository-instance_method">
365
+
366
+ - (<tt>Object</tt>) <strong>validate_repository</strong>
367
+
368
+
369
+
370
+ </p><table class="source_code">
371
+ <tr>
372
+ <td>
373
+ <pre class="lines">
374
+
375
+
376
+ 16
377
+ 17
378
+ 18
379
+ 19
380
+ 20
381
+ 21
382
+ 22</pre>
383
+ </td>
384
+ <td>
385
+ <pre class="code"><span class="info file"># File 'lib/reflection/directory/stash.rb', line 16</span>
386
+
387
+ <span class='def def kw'>def</span> <span class='validate_repository identifier id'>validate_repository</span>
388
+ <span class='if if kw'>if</span> <span class='Reflection constant id'>Reflection</span><span class='colon2 op'>::</span><span class='Repository constant id'>Repository</span><span class='dot token'>.</span><span class='exists? fid id'>exists?</span><span class='lparen token'>(</span><span class='self self kw'>self</span><span class='dot token'>.</span><span class='path identifier id'>path</span><span class='rparen token'>)</span> <span class='andop op'>&amp;&amp;</span> <span class='notop op'>!</span><span class='@repository ivar id'>@repository</span><span class='dot token'>.</span><span class='same_in_path? fid id'>same_in_path?</span><span class='lparen token'>(</span><span class='self self kw'>self</span><span class='dot token'>.</span><span class='path identifier id'>path</span><span class='rparen token'>)</span>
389
+ <span class='Reflection constant id'>Reflection</span><span class='colon2 op'>::</span><span class='Support constant id'>Support</span><span class='dot token'>.</span><span class='exit_with_error identifier id'>exit_with_error</span> <span class='dstring node'>&quot;The stash directory '#{self.path}' is a repository, but not the one you specified (--repository).&quot;</span>
390
+ <span class='else else kw'>else</span>
391
+ <span class='Reflection constant id'>Reflection</span><span class='dot token'>.</span><span class='log identifier id'>log</span><span class='dot token'>.</span><span class='debug identifier id'>debug</span> <span class='dstring node'>&quot;Directory '#{self.path}' valid.&quot;</span>
392
+ <span class='end end kw'>end</span>
393
+ <span class='end end kw'>end</span>
394
+ </pre>
395
+ </td>
396
+ </tr>
397
+ </table>
398
+ </div>
399
+
400
+ </div>
401
+
402
+ </div>
403
+
404
+ <div id="footer">
405
+ Generated on Wed Nov 18 18:17:11 2009 by
406
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool">yard</a>
407
+ 0.4.0 (ruby-1.8.7).
408
+ </div>
409
+
410
+ </body>
411
+ </html>
@@ -0,0 +1,85 @@
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>Module: Reflection::Directory</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
+ <div id="header">
20
+ <div id="menu">
21
+
22
+ <a href="../_index.html">Index (D)</a> &raquo;
23
+ <a title="Reflection" href="../Reflection.html">Reflection</a>
24
+ &raquo;
25
+ <span class="title">Directory</span>
26
+
27
+ </div>
28
+
29
+ <div id="search">
30
+ <a id="class_list_link" href="#">Namespace List</a>
31
+ <a id="method_list_link" href="#">Method List</a>
32
+ <a id ="file_list_link" href="#">File List</a>
33
+ </div>
34
+
35
+ <div class="clear"></div>
36
+ </div>
37
+
38
+ <iframe id="search_frame"></iframe>
39
+
40
+ <div id="content"><h1>Module: Reflection::Directory
41
+
42
+
43
+ </h1>
44
+
45
+ <dl class="box">
46
+
47
+
48
+
49
+
50
+
51
+
52
+
53
+ <dt class="r1 last">Defined in:</dt>
54
+ <dd class="r1 last">lib/reflection/directory.rb<span class="defines">,<br />
55
+ lib/reflection/directory/base.rb,<br /> lib/reflection/directory/stash.rb</span>
56
+ </dd>
57
+
58
+ </dl>
59
+ <div class="clear"></div>
60
+
61
+ <h2>Defined Under Namespace</h2>
62
+ <p class="children">
63
+
64
+
65
+
66
+
67
+ <strong class="classes">Classes:</strong> <a title="Base" href="Directory/Base.html">Base</a>, <a title="Stash" href="Directory/Stash.html">Stash</a>
68
+
69
+
70
+ </p>
71
+
72
+
73
+
74
+
75
+
76
+ </div>
77
+
78
+ <div id="footer">
79
+ Generated on Wed Nov 18 18:17:12 2009 by
80
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool">yard</a>
81
+ 0.4.0 (ruby-1.8.7).
82
+ </div>
83
+
84
+ </body>
85
+ </html>