reflection 0.4.0 → 0.4.1
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/.yardoc +0 -0
- data/README.rdoc +105 -7
- data/Reflection.gemspec +32 -1
- data/VERSION +1 -1
- data/doc/Reflection/CLI.html +153 -0
- data/doc/Reflection/Command/Apply.html +266 -0
- data/doc/Reflection/Command/Base.html +385 -0
- data/doc/Reflection/Command/Stash.html +342 -0
- data/doc/Reflection/Command.html +85 -0
- data/doc/Reflection/Config.html +902 -0
- data/doc/Reflection/ConfigArgumentError.html +92 -0
- data/doc/Reflection/Directory/Base.html +657 -0
- data/doc/Reflection/Directory/Stash.html +411 -0
- data/doc/Reflection/Directory.html +85 -0
- data/doc/Reflection/Rails.html +409 -0
- data/doc/Reflection/Repository.html +745 -0
- data/doc/Reflection/Support/Home.html +182 -0
- data/doc/Reflection/Support/Log.html +222 -0
- data/doc/Reflection/Support.html +141 -0
- data/doc/Reflection/Validations.html +135 -0
- data/doc/Reflection.html +285 -0
- data/doc/_index.html +267 -0
- data/doc/class_list.html +197 -0
- data/doc/css/common.css +1 -0
- data/doc/css/full_list.css +23 -0
- data/doc/css/style.css +261 -0
- data/doc/file.README.html +200 -0
- data/doc/file_list.html +29 -0
- data/doc/index.html +200 -0
- data/doc/js/app.js +91 -0
- data/doc/js/full_list.js +39 -0
- data/doc/js/jquery.js +19 -0
- data/doc/method_list.html +572 -0
- data/doc/top-level-namespace.html +80 -0
- metadata +32 -1
@@ -0,0 +1,745 @@
|
|
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::Repository</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 (R)</a> »
|
23
|
+
<a title="Reflection" href="../Reflection.html">Reflection</a>
|
24
|
+
»
|
25
|
+
<span class="title">Repository</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::Repository
|
41
|
+
|
42
|
+
|
43
|
+
</h1>
|
44
|
+
|
45
|
+
<dl class="box">
|
46
|
+
|
47
|
+
<dt class="r1">Inherits:</dt>
|
48
|
+
<dd class="r1">
|
49
|
+
<span class="inheritName">Object</span>
|
50
|
+
|
51
|
+
</dd>
|
52
|
+
|
53
|
+
|
54
|
+
|
55
|
+
|
56
|
+
|
57
|
+
|
58
|
+
|
59
|
+
|
60
|
+
<dt class="r2 last">Defined in:</dt>
|
61
|
+
<dd class="r2 last">lib/reflection/repository.rb</dd>
|
62
|
+
|
63
|
+
</dl>
|
64
|
+
<div class="clear"></div>
|
65
|
+
|
66
|
+
|
67
|
+
|
68
|
+
<h2>Attribute Summary</h2>
|
69
|
+
<ul class="summary">
|
70
|
+
|
71
|
+
<li class="public ">
|
72
|
+
<span class="summary_signature"><a title="#path (instance method)" href="#path-instance_method">- (Object) <strong>path</strong> </a>
|
73
|
+
|
74
|
+
</span>
|
75
|
+
|
76
|
+
|
77
|
+
|
78
|
+
|
79
|
+
|
80
|
+
|
81
|
+
|
82
|
+
|
83
|
+
|
84
|
+
<span class="summary_desc">
|
85
|
+
Returns the value of attribute <tt>path</tt>.
|
86
|
+
|
87
|
+
</span>
|
88
|
+
|
89
|
+
</li>
|
90
|
+
|
91
|
+
|
92
|
+
<li class="public ">
|
93
|
+
<span class="summary_signature"><a title="#url (instance method)" href="#url-instance_method">- (Object) <strong>url</strong> </a>
|
94
|
+
|
95
|
+
</span>
|
96
|
+
|
97
|
+
|
98
|
+
|
99
|
+
|
100
|
+
|
101
|
+
|
102
|
+
|
103
|
+
|
104
|
+
|
105
|
+
<span class="summary_desc">
|
106
|
+
Returns the value of attribute <tt>url</tt>.
|
107
|
+
|
108
|
+
</span>
|
109
|
+
|
110
|
+
</li>
|
111
|
+
|
112
|
+
|
113
|
+
</ul>
|
114
|
+
|
115
|
+
|
116
|
+
<h2>Method Summary</h2>
|
117
|
+
<ul class="summary">
|
118
|
+
|
119
|
+
<li class="public ">
|
120
|
+
<span class="summary_signature"><a title="exists? (class method)" href="#exists%3F-class_method">+ (Object) <strong>exists?</strong>(path) </a>
|
121
|
+
|
122
|
+
</span>
|
123
|
+
|
124
|
+
|
125
|
+
|
126
|
+
|
127
|
+
|
128
|
+
|
129
|
+
<span class="summary_desc"></span>
|
130
|
+
|
131
|
+
</li>
|
132
|
+
|
133
|
+
|
134
|
+
<li class="public ">
|
135
|
+
<span class="summary_signature"><a title="new_from_path (class method)" href="#new_from_path-class_method">+ (Object) <strong>new_from_path</strong>(path) </a>
|
136
|
+
|
137
|
+
</span>
|
138
|
+
|
139
|
+
|
140
|
+
|
141
|
+
|
142
|
+
|
143
|
+
|
144
|
+
<span class="summary_desc"></span>
|
145
|
+
|
146
|
+
</li>
|
147
|
+
|
148
|
+
|
149
|
+
<li class="public ">
|
150
|
+
<span class="summary_signature"><a title="#clone (instance method)" href="#clone-instance_method">- (Object) <strong>clone</strong>(path) </a>
|
151
|
+
|
152
|
+
</span>
|
153
|
+
|
154
|
+
|
155
|
+
|
156
|
+
|
157
|
+
|
158
|
+
|
159
|
+
<span class="summary_desc"></span>
|
160
|
+
|
161
|
+
</li>
|
162
|
+
|
163
|
+
|
164
|
+
<li class="public ">
|
165
|
+
<span class="summary_signature"><a title="#commit_all_new_files (instance method)" href="#commit_all_new_files-instance_method">- (Object) <strong>commit_all_new_files</strong> </a>
|
166
|
+
|
167
|
+
</span>
|
168
|
+
|
169
|
+
|
170
|
+
|
171
|
+
|
172
|
+
|
173
|
+
|
174
|
+
<span class="summary_desc"></span>
|
175
|
+
|
176
|
+
</li>
|
177
|
+
|
178
|
+
|
179
|
+
<li class="public ">
|
180
|
+
<span class="summary_signature"><a title="#identifier (instance method)" href="#identifier-instance_method">- (Object) <strong>identifier</strong> </a>
|
181
|
+
|
182
|
+
</span>
|
183
|
+
|
184
|
+
|
185
|
+
|
186
|
+
|
187
|
+
|
188
|
+
|
189
|
+
<span class="summary_desc"></span>
|
190
|
+
|
191
|
+
</li>
|
192
|
+
|
193
|
+
|
194
|
+
<li class="public ">
|
195
|
+
<span class="summary_signature"><a title="#initialize (instance method)" href="#initialize-instance_method">- (Repository) <strong>initialize</strong>(new_url, path = nil) </a>
|
196
|
+
|
197
|
+
</span>
|
198
|
+
|
199
|
+
|
200
|
+
|
201
|
+
|
202
|
+
|
203
|
+
|
204
|
+
<span class="summary_desc">
|
205
|
+
A new instance of <tt>Repository</tt>.
|
206
|
+
|
207
|
+
</span>
|
208
|
+
|
209
|
+
</li>
|
210
|
+
|
211
|
+
|
212
|
+
<li class="public ">
|
213
|
+
<span class="summary_signature"><a title="#pull (instance method)" href="#pull-instance_method">- (Object) <strong>pull</strong> </a>
|
214
|
+
|
215
|
+
</span>
|
216
|
+
|
217
|
+
|
218
|
+
|
219
|
+
|
220
|
+
|
221
|
+
|
222
|
+
<span class="summary_desc"></span>
|
223
|
+
|
224
|
+
</li>
|
225
|
+
|
226
|
+
|
227
|
+
<li class="public ">
|
228
|
+
<span class="summary_signature"><a title="#push (instance method)" href="#push-instance_method">- (Object) <strong>push</strong> </a>
|
229
|
+
|
230
|
+
</span>
|
231
|
+
|
232
|
+
|
233
|
+
|
234
|
+
|
235
|
+
|
236
|
+
|
237
|
+
<span class="summary_desc"></span>
|
238
|
+
|
239
|
+
</li>
|
240
|
+
|
241
|
+
|
242
|
+
<li class="public ">
|
243
|
+
<span class="summary_signature"><a title="#reset! (instance method)" href="#reset%21-instance_method">- (Object) <strong>reset!</strong> </a>
|
244
|
+
|
245
|
+
</span>
|
246
|
+
|
247
|
+
|
248
|
+
|
249
|
+
|
250
|
+
|
251
|
+
|
252
|
+
<span class="summary_desc"></span>
|
253
|
+
|
254
|
+
</li>
|
255
|
+
|
256
|
+
|
257
|
+
<li class="public ">
|
258
|
+
<span class="summary_signature"><a title="#same_in_path? (instance method)" href="#same_in_path%3F-instance_method">- (Object) <strong>same_in_path?</strong>(path) </a>
|
259
|
+
|
260
|
+
</span>
|
261
|
+
|
262
|
+
|
263
|
+
|
264
|
+
|
265
|
+
|
266
|
+
|
267
|
+
<span class="summary_desc"></span>
|
268
|
+
|
269
|
+
</li>
|
270
|
+
|
271
|
+
|
272
|
+
</ul>
|
273
|
+
|
274
|
+
<div id="constructor_details">
|
275
|
+
<h2>Constructor Details</h2>
|
276
|
+
|
277
|
+
<div class="method_details first">
|
278
|
+
<p class="signature first" id="initialize-instance_method">
|
279
|
+
|
280
|
+
- (<tt><a title="Repository" href="">Repository</a></tt>) <strong>initialize</strong>(new_url, path = nil)
|
281
|
+
|
282
|
+
|
283
|
+
|
284
|
+
</p><div class="docstring">
|
285
|
+
<div class="discussion">
|
286
|
+
<p>
|
287
|
+
A new instance of <tt>Repository</tt>
|
288
|
+
</p>
|
289
|
+
|
290
|
+
|
291
|
+
</div>
|
292
|
+
</div>
|
293
|
+
<div class="tags">
|
294
|
+
<h3>Returns:</h3>
|
295
|
+
<ul class="return">
|
296
|
+
|
297
|
+
<li>
|
298
|
+
|
299
|
+
<span class='type'>(<tt><a title="Repository" href="">Repository</a></tt>)</span>
|
300
|
+
|
301
|
+
|
302
|
+
|
303
|
+
|
304
|
+
—
|
305
|
+
|
306
|
+
a new instance of <tt>Repository</tt>
|
307
|
+
|
308
|
+
|
309
|
+
|
310
|
+
</li>
|
311
|
+
|
312
|
+
</ul>
|
313
|
+
|
314
|
+
</div><table class="source_code">
|
315
|
+
<tr>
|
316
|
+
<td>
|
317
|
+
<pre class="lines">
|
318
|
+
|
319
|
+
|
320
|
+
27
|
321
|
+
28
|
322
|
+
29
|
323
|
+
30</pre>
|
324
|
+
</td>
|
325
|
+
<td>
|
326
|
+
<pre class="code"><span class="info file"># File 'lib/reflection/repository.rb', line 27</span>
|
327
|
+
|
328
|
+
<span class='def def kw'>def</span> <span class='initialize identifier id'>initialize</span><span class='lparen token'>(</span><span class='new_url identifier id'>new_url</span><span class='comma token'>,</span> <span class='path identifier id'>path</span> <span class='assign token'>=</span> <span class='nil nil kw'>nil</span><span class='rparen token'>)</span>
|
329
|
+
<span class='self self kw'>self</span><span class='dot token'>.</span><span class='url identifier id'>url</span> <span class='assign token'>=</span> <span class='new_url identifier id'>new_url</span>
|
330
|
+
<span class='self self kw'>self</span><span class='dot token'>.</span><span class='path identifier id'>path</span> <span class='assign token'>=</span> <span class='path identifier id'>path</span>
|
331
|
+
<span class='end end kw'>end</span>
|
332
|
+
</pre>
|
333
|
+
</td>
|
334
|
+
</tr>
|
335
|
+
</table>
|
336
|
+
</div>
|
337
|
+
|
338
|
+
</div>
|
339
|
+
|
340
|
+
<div id="attr_details">
|
341
|
+
<h2>Attribute Details</h2>
|
342
|
+
|
343
|
+
|
344
|
+
<span id="path=-instance_method"></span>
|
345
|
+
<span id="path-instance_method"></span>
|
346
|
+
<div class="method_details first">
|
347
|
+
<p class="signature first" id="path-instance_method">
|
348
|
+
|
349
|
+
- (<tt>Object</tt>) <strong>path</strong>
|
350
|
+
|
351
|
+
|
352
|
+
|
353
|
+
</p><div class="docstring">
|
354
|
+
<div class="discussion">
|
355
|
+
<p>
|
356
|
+
Returns the value of attribute <tt>path</tt>
|
357
|
+
</p>
|
358
|
+
|
359
|
+
|
360
|
+
</div>
|
361
|
+
</div>
|
362
|
+
<div class="tags">
|
363
|
+
|
364
|
+
</div><table class="source_code">
|
365
|
+
<tr>
|
366
|
+
<td>
|
367
|
+
<pre class="lines">
|
368
|
+
|
369
|
+
|
370
|
+
8
|
371
|
+
9
|
372
|
+
10</pre>
|
373
|
+
</td>
|
374
|
+
<td>
|
375
|
+
<pre class="code"><span class="info file"># File 'lib/reflection/repository.rb', line 8</span>
|
376
|
+
|
377
|
+
<span class='def def kw'>def</span> <span class='path identifier id'>path</span>
|
378
|
+
<span class='@path ivar id'>@path</span>
|
379
|
+
<span class='end end kw'>end</span>
|
380
|
+
</pre>
|
381
|
+
</td>
|
382
|
+
</tr>
|
383
|
+
</table>
|
384
|
+
</div>
|
385
|
+
|
386
|
+
|
387
|
+
<span id="url=-instance_method"></span>
|
388
|
+
<span id="url-instance_method"></span>
|
389
|
+
<div class="method_details ">
|
390
|
+
<p class="signature " id="url-instance_method">
|
391
|
+
|
392
|
+
- (<tt>Object</tt>) <strong>url</strong>
|
393
|
+
|
394
|
+
|
395
|
+
|
396
|
+
</p><div class="docstring">
|
397
|
+
<div class="discussion">
|
398
|
+
<p>
|
399
|
+
Returns the value of attribute <tt>url</tt>
|
400
|
+
</p>
|
401
|
+
|
402
|
+
|
403
|
+
</div>
|
404
|
+
</div>
|
405
|
+
<div class="tags">
|
406
|
+
|
407
|
+
</div><table class="source_code">
|
408
|
+
<tr>
|
409
|
+
<td>
|
410
|
+
<pre class="lines">
|
411
|
+
|
412
|
+
|
413
|
+
7
|
414
|
+
8
|
415
|
+
9</pre>
|
416
|
+
</td>
|
417
|
+
<td>
|
418
|
+
<pre class="code"><span class="info file"># File 'lib/reflection/repository.rb', line 7</span>
|
419
|
+
|
420
|
+
<span class='def def kw'>def</span> <span class='url identifier id'>url</span>
|
421
|
+
<span class='@url ivar id'>@url</span>
|
422
|
+
<span class='end end kw'>end</span>
|
423
|
+
</pre>
|
424
|
+
</td>
|
425
|
+
</tr>
|
426
|
+
</table>
|
427
|
+
</div>
|
428
|
+
|
429
|
+
</div>
|
430
|
+
|
431
|
+
|
432
|
+
<div id="method_details">
|
433
|
+
<h2>Method Details</h2>
|
434
|
+
|
435
|
+
<div class="method_details first">
|
436
|
+
<p class="signature first" id="exists?-class_method">
|
437
|
+
|
438
|
+
+ (<tt>Object</tt>) <strong>exists?</strong>(path)
|
439
|
+
|
440
|
+
|
441
|
+
|
442
|
+
</p><table class="source_code">
|
443
|
+
<tr>
|
444
|
+
<td>
|
445
|
+
<pre class="lines">
|
446
|
+
|
447
|
+
|
448
|
+
19
|
449
|
+
20
|
450
|
+
21
|
451
|
+
22
|
452
|
+
23
|
453
|
+
24
|
454
|
+
25</pre>
|
455
|
+
</td>
|
456
|
+
<td>
|
457
|
+
<pre class="code"><span class="info file"># File 'lib/reflection/repository.rb', line 19</span>
|
458
|
+
|
459
|
+
<span class='def def kw'>def</span> <span class='self self kw'>self</span><span class='dot token'>.</span><span class='exists? fid id'>exists?</span><span class='lparen token'>(</span><span class='path identifier id'>path</span><span class='rparen token'>)</span>
|
460
|
+
<span class='begin begin kw'>begin</span>
|
461
|
+
<span class='Git constant id'>Git</span><span class='dot token'>.</span><span class='open identifier id'>open</span><span class='lparen token'>(</span><span class='path identifier id'>path</span><span class='rparen token'>)</span>
|
462
|
+
<span class='rescue rescue kw'>rescue</span> <span class='ArgumentError constant id'>ArgumentError</span>
|
463
|
+
<span class='return return kw'>return</span> <span class='false false kw'>false</span>
|
464
|
+
<span class='end end kw'>end</span>
|
465
|
+
<span class='end end kw'>end</span>
|
466
|
+
</pre>
|
467
|
+
</td>
|
468
|
+
</tr>
|
469
|
+
</table>
|
470
|
+
</div>
|
471
|
+
|
472
|
+
<div class="method_details ">
|
473
|
+
<p class="signature " id="new_from_path-class_method">
|
474
|
+
|
475
|
+
+ (<tt>Object</tt>) <strong>new_from_path</strong>(path)
|
476
|
+
|
477
|
+
|
478
|
+
|
479
|
+
</p><table class="source_code">
|
480
|
+
<tr>
|
481
|
+
<td>
|
482
|
+
<pre class="lines">
|
483
|
+
|
484
|
+
|
485
|
+
10
|
486
|
+
11
|
487
|
+
12
|
488
|
+
13
|
489
|
+
14
|
490
|
+
15
|
491
|
+
16
|
492
|
+
17</pre>
|
493
|
+
</td>
|
494
|
+
<td>
|
495
|
+
<pre class="code"><span class="info file"># File 'lib/reflection/repository.rb', line 10</span>
|
496
|
+
|
497
|
+
<span class='def def kw'>def</span> <span class='self self kw'>self</span><span class='dot token'>.</span><span class='new_from_path identifier id'>new_from_path</span><span class='lparen token'>(</span><span class='path identifier id'>path</span><span class='rparen token'>)</span>
|
498
|
+
<span class='unless unless kw'>unless</span> <span class='self self kw'>self</span><span class='dot token'>.</span><span class='exists? fid id'>exists?</span><span class='lparen token'>(</span><span class='path identifier id'>path</span><span class='rparen token'>)</span>
|
499
|
+
<span class='raise identifier id'>raise</span> <span class='dstring node'>"'#{path}' is not a valid Git repository"</span>
|
500
|
+
<span class='end end kw'>end</span>
|
501
|
+
|
502
|
+
<span class='repo identifier id'>repo</span> <span class='assign token'>=</span> <span class='Git constant id'>Git</span><span class='dot token'>.</span><span class='open identifier id'>open</span><span class='lparen token'>(</span><span class='path identifier id'>path</span><span class='rparen token'>)</span>
|
503
|
+
<span class='self self kw'>self</span><span class='dot token'>.</span><span class='new identifier id'>new</span><span class='lparen token'>(</span><span class='repo identifier id'>repo</span><span class='dot token'>.</span><span class='remote identifier id'>remote</span><span class='dot token'>.</span><span class='url identifier id'>url</span><span class='comma token'>,</span> <span class='path identifier id'>path</span><span class='rparen token'>)</span>
|
504
|
+
<span class='end end kw'>end</span>
|
505
|
+
</pre>
|
506
|
+
</td>
|
507
|
+
</tr>
|
508
|
+
</table>
|
509
|
+
</div>
|
510
|
+
|
511
|
+
<div class="method_details ">
|
512
|
+
<p class="signature " id="clone-instance_method">
|
513
|
+
|
514
|
+
- (<tt>Object</tt>) <strong>clone</strong>(path)
|
515
|
+
|
516
|
+
|
517
|
+
|
518
|
+
</p><table class="source_code">
|
519
|
+
<tr>
|
520
|
+
<td>
|
521
|
+
<pre class="lines">
|
522
|
+
|
523
|
+
|
524
|
+
47
|
525
|
+
48
|
526
|
+
49</pre>
|
527
|
+
</td>
|
528
|
+
<td>
|
529
|
+
<pre class="code"><span class="info file"># File 'lib/reflection/repository.rb', line 47</span>
|
530
|
+
|
531
|
+
<span class='def def kw'>def</span> <span class='clone identifier id'>clone</span><span class='lparen token'>(</span><span class='path identifier id'>path</span><span class='rparen token'>)</span>
|
532
|
+
<span class='Git constant id'>Git</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='url identifier id'>url</span><span class='comma token'>,</span> <span class='path identifier id'>path</span><span class='rparen token'>)</span>
|
533
|
+
<span class='end end kw'>end</span>
|
534
|
+
</pre>
|
535
|
+
</td>
|
536
|
+
</tr>
|
537
|
+
</table>
|
538
|
+
</div>
|
539
|
+
|
540
|
+
<div class="method_details ">
|
541
|
+
<p class="signature " id="commit_all_new_files-instance_method">
|
542
|
+
|
543
|
+
- (<tt>Object</tt>) <strong>commit_all_new_files</strong>
|
544
|
+
|
545
|
+
|
546
|
+
|
547
|
+
</p><table class="source_code">
|
548
|
+
<tr>
|
549
|
+
<td>
|
550
|
+
<pre class="lines">
|
551
|
+
|
552
|
+
|
553
|
+
51
|
554
|
+
52
|
555
|
+
53
|
556
|
+
54
|
557
|
+
55
|
558
|
+
56</pre>
|
559
|
+
</td>
|
560
|
+
<td>
|
561
|
+
<pre class="code"><span class="info file"># File 'lib/reflection/repository.rb', line 51</span>
|
562
|
+
|
563
|
+
<span class='def def kw'>def</span> <span class='commit_all_new_files identifier id'>commit_all_new_files</span>
|
564
|
+
<span class='repo identifier id'>repo</span> <span class='assign token'>=</span> <span class='Git constant id'>Git</span><span class='dot token'>.</span><span class='open identifier id'>open</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>
|
565
|
+
<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='string val'>"Committing all changes.."</span>
|
566
|
+
<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='lparen token'>(</span><span class='repo identifier id'>repo</span><span class='dot token'>.</span><span class='add identifier id'>add</span><span class='rparen token'>)</span>
|
567
|
+
<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='lparen token'>(</span><span class='repo identifier id'>repo</span><span class='dot token'>.</span><span class='commit_all identifier id'>commit_all</span><span class='lparen token'>(</span><span class='string val'>"Updated stash."</span><span class='rparen token'>)</span><span class='rparen token'>)</span> <span class='rescue rescue kw'>rescue</span> <span class='true true kw'>true</span>
|
568
|
+
<span class='end end kw'>end</span>
|
569
|
+
</pre>
|
570
|
+
</td>
|
571
|
+
</tr>
|
572
|
+
</table>
|
573
|
+
</div>
|
574
|
+
|
575
|
+
<div class="method_details ">
|
576
|
+
<p class="signature " id="identifier-instance_method">
|
577
|
+
|
578
|
+
- (<tt>Object</tt>) <strong>identifier</strong>
|
579
|
+
|
580
|
+
|
581
|
+
|
582
|
+
</p><table class="source_code">
|
583
|
+
<tr>
|
584
|
+
<td>
|
585
|
+
<pre class="lines">
|
586
|
+
|
587
|
+
|
588
|
+
32
|
589
|
+
33
|
590
|
+
34</pre>
|
591
|
+
</td>
|
592
|
+
<td>
|
593
|
+
<pre class="code"><span class="info file"># File 'lib/reflection/repository.rb', line 32</span>
|
594
|
+
|
595
|
+
<span class='def def kw'>def</span> <span class='identifier identifier id'>identifier</span>
|
596
|
+
<span class='Digest constant id'>Digest</span><span class='colon2 op'>::</span><span class='MD5 constant id'>MD5</span><span class='dot token'>.</span><span class='hexdigest identifier id'>hexdigest</span><span class='lparen token'>(</span><span class='self self kw'>self</span><span class='dot token'>.</span><span class='url identifier id'>url</span><span class='rparen token'>)</span>
|
597
|
+
<span class='end end kw'>end</span>
|
598
|
+
</pre>
|
599
|
+
</td>
|
600
|
+
</tr>
|
601
|
+
</table>
|
602
|
+
</div>
|
603
|
+
|
604
|
+
<div class="method_details ">
|
605
|
+
<p class="signature " id="pull-instance_method">
|
606
|
+
|
607
|
+
- (<tt>Object</tt>) <strong>pull</strong>
|
608
|
+
|
609
|
+
|
610
|
+
|
611
|
+
</p><table class="source_code">
|
612
|
+
<tr>
|
613
|
+
<td>
|
614
|
+
<pre class="lines">
|
615
|
+
|
616
|
+
|
617
|
+
64
|
618
|
+
65
|
619
|
+
66
|
620
|
+
67
|
621
|
+
68</pre>
|
622
|
+
</td>
|
623
|
+
<td>
|
624
|
+
<pre class="code"><span class="info file"># File 'lib/reflection/repository.rb', line 64</span>
|
625
|
+
|
626
|
+
<span class='def def kw'>def</span> <span class='pull identifier id'>pull</span>
|
627
|
+
<span class='repo identifier id'>repo</span> <span class='assign token'>=</span> <span class='Git constant id'>Git</span><span class='dot token'>.</span><span class='open identifier id'>open</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>
|
628
|
+
<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='string val'>"Pulling.."</span>
|
629
|
+
<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='lparen token'>(</span><span class='repo identifier id'>repo</span><span class='dot token'>.</span><span class='pull identifier id'>pull</span><span class='rparen token'>)</span>
|
630
|
+
<span class='end end kw'>end</span>
|
631
|
+
</pre>
|
632
|
+
</td>
|
633
|
+
</tr>
|
634
|
+
</table>
|
635
|
+
</div>
|
636
|
+
|
637
|
+
<div class="method_details ">
|
638
|
+
<p class="signature " id="push-instance_method">
|
639
|
+
|
640
|
+
- (<tt>Object</tt>) <strong>push</strong>
|
641
|
+
|
642
|
+
|
643
|
+
|
644
|
+
</p><table class="source_code">
|
645
|
+
<tr>
|
646
|
+
<td>
|
647
|
+
<pre class="lines">
|
648
|
+
|
649
|
+
|
650
|
+
58
|
651
|
+
59
|
652
|
+
60
|
653
|
+
61
|
654
|
+
62</pre>
|
655
|
+
</td>
|
656
|
+
<td>
|
657
|
+
<pre class="code"><span class="info file"># File 'lib/reflection/repository.rb', line 58</span>
|
658
|
+
|
659
|
+
<span class='def def kw'>def</span> <span class='push identifier id'>push</span>
|
660
|
+
<span class='repo identifier id'>repo</span> <span class='assign token'>=</span> <span class='Git constant id'>Git</span><span class='dot token'>.</span><span class='open identifier id'>open</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>
|
661
|
+
<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='string val'>"Pushing commit.."</span>
|
662
|
+
<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='lparen token'>(</span><span class='repo identifier id'>repo</span><span class='dot token'>.</span><span class='push identifier id'>push</span><span class='rparen token'>)</span>
|
663
|
+
<span class='end end kw'>end</span>
|
664
|
+
</pre>
|
665
|
+
</td>
|
666
|
+
</tr>
|
667
|
+
</table>
|
668
|
+
</div>
|
669
|
+
|
670
|
+
<div class="method_details ">
|
671
|
+
<p class="signature " id="reset!-instance_method">
|
672
|
+
|
673
|
+
- (<tt>Object</tt>) <strong>reset!</strong>
|
674
|
+
|
675
|
+
|
676
|
+
|
677
|
+
</p><table class="source_code">
|
678
|
+
<tr>
|
679
|
+
<td>
|
680
|
+
<pre class="lines">
|
681
|
+
|
682
|
+
|
683
|
+
41
|
684
|
+
42
|
685
|
+
43
|
686
|
+
44
|
687
|
+
45</pre>
|
688
|
+
</td>
|
689
|
+
<td>
|
690
|
+
<pre class="code"><span class="info file"># File 'lib/reflection/repository.rb', line 41</span>
|
691
|
+
|
692
|
+
<span class='def def kw'>def</span> <span class='reset! fid id'>reset!</span>
|
693
|
+
<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='string val'>"Resetting target to HEAD"</span>
|
694
|
+
<span class='repo identifier id'>repo</span> <span class='assign token'>=</span> <span class='Git constant id'>Git</span><span class='dot token'>.</span><span class='open identifier id'>open</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>
|
695
|
+
<span class='repo identifier id'>repo</span><span class='dot token'>.</span><span class='reset_hard identifier id'>reset_hard</span>
|
696
|
+
<span class='end end kw'>end</span>
|
697
|
+
</pre>
|
698
|
+
</td>
|
699
|
+
</tr>
|
700
|
+
</table>
|
701
|
+
</div>
|
702
|
+
|
703
|
+
<div class="method_details ">
|
704
|
+
<p class="signature " id="same_in_path?-instance_method">
|
705
|
+
|
706
|
+
- (<tt>Object</tt>) <strong>same_in_path?</strong>(path)
|
707
|
+
|
708
|
+
|
709
|
+
|
710
|
+
</p><table class="source_code">
|
711
|
+
<tr>
|
712
|
+
<td>
|
713
|
+
<pre class="lines">
|
714
|
+
|
715
|
+
|
716
|
+
36
|
717
|
+
37
|
718
|
+
38
|
719
|
+
39</pre>
|
720
|
+
</td>
|
721
|
+
<td>
|
722
|
+
<pre class="code"><span class="info file"># File 'lib/reflection/repository.rb', line 36</span>
|
723
|
+
|
724
|
+
<span class='def def kw'>def</span> <span class='same_in_path? fid id'>same_in_path?</span><span class='lparen token'>(</span><span class='path identifier id'>path</span><span class='rparen token'>)</span>
|
725
|
+
<span class='git_repo identifier id'>git_repo</span> <span class='assign token'>=</span> <span class='Git constant id'>Git</span><span class='dot token'>.</span><span class='open identifier id'>open</span><span class='lparen token'>(</span><span class='path identifier id'>path</span><span class='rparen token'>)</span>
|
726
|
+
<span class='lparen token'>(</span><span class='git_repo identifier id'>git_repo</span><span class='dot token'>.</span><span class='remote identifier id'>remote</span> <span class='andop op'>&&</span> <span class='git_repo identifier id'>git_repo</span><span class='dot token'>.</span><span class='remote identifier id'>remote</span><span class='dot token'>.</span><span class='url identifier id'>url</span> <span class='eq op'>==</span> <span class='self self kw'>self</span><span class='dot token'>.</span><span class='url identifier id'>url</span><span class='rparen token'>)</span> <span class='orop op'>||</span> <span class='false false kw'>false</span>
|
727
|
+
<span class='end end kw'>end</span>
|
728
|
+
</pre>
|
729
|
+
</td>
|
730
|
+
</tr>
|
731
|
+
</table>
|
732
|
+
</div>
|
733
|
+
|
734
|
+
</div>
|
735
|
+
|
736
|
+
</div>
|
737
|
+
|
738
|
+
<div id="footer">
|
739
|
+
Generated on Wed Nov 18 18:17:11 2009 by
|
740
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool">yard</a>
|
741
|
+
0.4.0 (ruby-1.8.7).
|
742
|
+
</div>
|
743
|
+
|
744
|
+
</body>
|
745
|
+
</html>
|