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,342 @@
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::Command::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="Command" href="../Command.html">Command</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::Command::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::Command::Base" href="Base.html">Reflection::Command::Base</a></span>
50
+
51
+ <ul class="fullTree">
52
+ <li>Object</li>
53
+
54
+ <li class="next"><a title="Reflection::Command::Base" href="Base.html">Reflection::Command::Base</a></li>
55
+
56
+ <li class="next">Reflection::Command::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/command/stash.rb</dd>
72
+
73
+ </dl>
74
+ <div class="clear"></div>
75
+
76
+
77
+
78
+
79
+
80
+
81
+
82
+
83
+ <h2>Method Summary</h2>
84
+ <ul class="summary">
85
+
86
+ <li class="public ">
87
+ <span class="summary_signature"><a title="#prepare_stash_repository (instance method)" href="#prepare_stash_repository-instance_method">- (Object) <strong>prepare_stash_repository</strong>(stash_directory) </a>
88
+
89
+ </span>
90
+
91
+
92
+
93
+
94
+
95
+
96
+ <span class="summary_desc"></span>
97
+
98
+ </li>
99
+
100
+
101
+ <li class="public ">
102
+ <span class="summary_signature"><a title="#run! (instance method)" href="#run%21-instance_method">- (Object) <strong>run!</strong> </a>
103
+
104
+ </span>
105
+
106
+
107
+
108
+
109
+
110
+
111
+ <span class="summary_desc"></span>
112
+
113
+ </li>
114
+
115
+
116
+ <li class="public ">
117
+ <span class="summary_signature"><a title="#stash_directory_into_repository (instance method)" href="#stash_directory_into_repository-instance_method">- (Object) <strong>stash_directory_into_repository</strong>(stash_directory, target_directory) </a>
118
+
119
+ </span>
120
+
121
+
122
+
123
+
124
+
125
+
126
+ <span class="summary_desc"></span>
127
+
128
+ </li>
129
+
130
+
131
+ <li class="public ">
132
+ <span class="summary_signature"><a title="#validate! (instance method)" href="#validate%21-instance_method">- (Object) <strong>validate!</strong> </a>
133
+
134
+ </span>
135
+
136
+
137
+
138
+
139
+
140
+
141
+ <span class="summary_desc"></span>
142
+
143
+ </li>
144
+
145
+
146
+ </ul>
147
+
148
+
149
+
150
+
151
+
152
+
153
+
154
+ <h3 class="inherited">Methods inherited from <a title="Reflection::Command::Base" href="Base.html">Reflection::Command::Base</a></h3>
155
+ <p class="inherited"><a title="#initialize" href="Base.html#initialize-instance_method">#initialize</a>, <a title="run!" href="Base.html#run%21-class_method">run!</a>, <a title="#validate" href="Base.html#validate-instance_method">#validate</a>, <a title="#verify_that_target_is_not_a_repository" href="Base.html#verify_that_target_is_not_a_repository-instance_method">#verify_that_target_is_not_a_repository</a></p>
156
+ <div id="constructor_details">
157
+ <h2>Constructor Details</h2>
158
+
159
+ <p class="notice">This class inherits a constructor from <a title="Reflection::Command::Base" href="Base.html#initialize-instance_method">Reflection::Command::Base</a></p>
160
+
161
+ </div>
162
+
163
+
164
+ <div id="method_details">
165
+ <h2>Method Details</h2>
166
+
167
+ <div class="method_details first">
168
+ <p class="signature first" id="prepare_stash_repository-instance_method">
169
+
170
+ - (<tt>Object</tt>) <strong>prepare_stash_repository</strong>(stash_directory)
171
+
172
+
173
+
174
+ </p><table class="source_code">
175
+ <tr>
176
+ <td>
177
+ <pre class="lines">
178
+
179
+
180
+ 29
181
+ 30
182
+ 31
183
+ 32
184
+ 33
185
+ 34
186
+ 35
187
+ 36
188
+ 37</pre>
189
+ </td>
190
+ <td>
191
+ <pre class="code"><span class="info file"># File 'lib/reflection/command/stash.rb', line 29</span>
192
+
193
+ <span class='def def kw'>def</span> <span class='prepare_stash_repository identifier id'>prepare_stash_repository</span><span class='lparen token'>(</span><span class='stash_directory identifier id'>stash_directory</span><span class='rparen token'>)</span>
194
+ <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'>&quot;Preparing stash repository..&quot;</span>
195
+
196
+ <span class='if if kw'>if</span> <span class='stash_directory identifier id'>stash_directory</span><span class='dot token'>.</span><span class='exists? fid id'>exists?</span>
197
+ <span class='stash_directory identifier id'>stash_directory</span><span class='dot token'>.</span><span class='validate_repository identifier id'>validate_repository</span>
198
+ <span class='else else kw'>else</span>
199
+ <span class='stash_directory identifier id'>stash_directory</span><span class='dot token'>.</span><span class='clone_repository identifier id'>clone_repository</span>
200
+ <span class='end end kw'>end</span>
201
+ <span class='end end kw'>end</span>
202
+ </pre>
203
+ </td>
204
+ </tr>
205
+ </table>
206
+ </div>
207
+
208
+ <div class="method_details ">
209
+ <p class="signature " id="run!-instance_method">
210
+
211
+ - (<tt>Object</tt>) <strong>run!</strong>
212
+
213
+
214
+
215
+ </p><table class="source_code">
216
+ <tr>
217
+ <td>
218
+ <pre class="lines">
219
+
220
+
221
+ 15
222
+ 16
223
+ 17
224
+ 18
225
+ 19
226
+ 20
227
+ 21
228
+ 22
229
+ 23
230
+ 24
231
+ 25
232
+ 26
233
+ 27</pre>
234
+ </td>
235
+ <td>
236
+ <pre class="code"><span class="info file"># File 'lib/reflection/command/stash.rb', line 15</span>
237
+
238
+ <span class='def def kw'>def</span> <span class='run! fid id'>run!</span>
239
+ <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='info identifier id'>info</span> <span class='dstring node'>&quot;Stashing '#{config.directory}'..&quot;</span>
240
+
241
+ <span class='stash_directory identifier id'>stash_directory</span> <span class='assign token'>=</span> <span class='Directory constant id'>Directory</span><span class='colon2 op'>::</span><span class='Stash constant id'>Stash</span><span class='dot token'>.</span><span class='new identifier id'>new</span><span class='lparen token'>(</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='new identifier id'>new</span><span class='lparen token'>(</span><span class='config identifier id'>config</span><span class='dot token'>.</span><span class='repository identifier id'>repository</span><span class='rparen token'>)</span><span class='comma token'>,</span> <span class='string val'>'stash'</span><span class='rparen token'>)</span>
242
+ <span class='target_directory identifier id'>target_directory</span> <span class='assign token'>=</span> <span class='Directory constant id'>Directory</span><span class='colon2 op'>::</span><span class='Base constant id'>Base</span><span class='dot token'>.</span><span class='new identifier id'>new</span><span class='lparen token'>(</span><span class='config identifier id'>config</span><span class='dot token'>.</span><span class='directory identifier id'>directory</span><span class='rparen token'>)</span>
243
+
244
+ <span class='verify_that_target_is_not_a_repository identifier id'>verify_that_target_is_not_a_repository</span><span class='lparen token'>(</span><span class='target_directory identifier id'>target_directory</span><span class='rparen token'>)</span>
245
+
246
+ <span class='prepare_stash_repository identifier id'>prepare_stash_repository</span><span class='lparen token'>(</span><span class='stash_directory identifier id'>stash_directory</span><span class='rparen token'>)</span>
247
+ <span class='stash_directory_into_repository identifier id'>stash_directory_into_repository</span><span class='lparen token'>(</span><span class='stash_directory identifier id'>stash_directory</span><span class='comma token'>,</span> <span class='target_directory identifier id'>target_directory</span><span class='rparen token'>)</span>
248
+
249
+ <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='info identifier id'>info</span> <span class='string val'>&quot;Stash Command done.&quot;</span>
250
+ <span class='end end kw'>end</span>
251
+ </pre>
252
+ </td>
253
+ </tr>
254
+ </table>
255
+ </div>
256
+
257
+ <div class="method_details ">
258
+ <p class="signature " id="stash_directory_into_repository-instance_method">
259
+
260
+ - (<tt>Object</tt>) <strong>stash_directory_into_repository</strong>(stash_directory, target_directory)
261
+
262
+
263
+
264
+ </p><table class="source_code">
265
+ <tr>
266
+ <td>
267
+ <pre class="lines">
268
+
269
+
270
+ 39
271
+ 40
272
+ 41
273
+ 42
274
+ 43
275
+ 44
276
+ 45</pre>
277
+ </td>
278
+ <td>
279
+ <pre class="code"><span class="info file"># File 'lib/reflection/command/stash.rb', line 39</span>
280
+
281
+ <span class='def def kw'>def</span> <span class='stash_directory_into_repository identifier id'>stash_directory_into_repository</span><span class='lparen token'>(</span><span class='stash_directory identifier id'>stash_directory</span><span class='comma token'>,</span> <span class='target_directory identifier id'>target_directory</span><span class='rparen token'>)</span>
282
+ <span class='copy_stash_repository_git_index_to_target identifier id'>copy_stash_repository_git_index_to_target</span><span class='lparen token'>(</span><span class='stash_directory identifier id'>stash_directory</span><span class='dot token'>.</span><span class='git_index identifier id'>git_index</span><span class='comma token'>,</span> <span class='target_directory identifier id'>target_directory</span><span class='dot token'>.</span><span class='path identifier id'>path</span><span class='rparen token'>)</span>
283
+ <span class='Reflection constant id'>Reflection</span><span class='colon2 op'>::</span><span class='Rails constant id'>Rails</span><span class='dot token'>.</span><span class='stash identifier id'>stash</span><span class='lparen token'>(</span><span class='config identifier id'>config</span><span class='comma token'>,</span> <span class='target_directory identifier id'>target_directory</span><span class='rparen token'>)</span> <span class='if if_mod kw'>if</span> <span class='config identifier id'>config</span><span class='dot token'>.</span><span class='rails_root identifier id'>rails_root</span>
284
+ <span class='commit_and_push_files identifier id'>commit_and_push_files</span><span class='lparen token'>(</span><span class='target_directory identifier id'>target_directory</span><span class='dot token'>.</span><span class='path identifier id'>path</span><span class='comma token'>,</span> <span class='target_directory identifier id'>target_directory</span><span class='dot token'>.</span><span class='name identifier id'>name</span><span class='rparen token'>)</span>
285
+ <span class='move_stash_repository_git_index_back identifier id'>move_stash_repository_git_index_back</span><span class='lparen token'>(</span><span class='target_directory identifier id'>target_directory</span><span class='dot token'>.</span><span class='git_index identifier id'>git_index</span><span class='comma token'>,</span> <span class='stash_directory identifier id'>stash_directory</span><span class='dot token'>.</span><span class='path identifier id'>path</span><span class='rparen token'>)</span>
286
+ <span class='Reflection constant id'>Reflection</span><span class='colon2 op'>::</span><span class='Rails constant id'>Rails</span><span class='dot token'>.</span><span class='clean_target identifier id'>clean_target</span><span class='lparen token'>(</span><span class='target_directory identifier id'>target_directory</span><span class='rparen token'>)</span> <span class='if if_mod kw'>if</span> <span class='config identifier id'>config</span><span class='dot token'>.</span><span class='rails_root identifier id'>rails_root</span>
287
+ <span class='end end kw'>end</span>
288
+ </pre>
289
+ </td>
290
+ </tr>
291
+ </table>
292
+ </div>
293
+
294
+ <div class="method_details ">
295
+ <p class="signature " id="validate!-instance_method">
296
+
297
+ - (<tt>Object</tt>) <strong>validate!</strong>
298
+
299
+
300
+
301
+ </p><table class="source_code">
302
+ <tr>
303
+ <td>
304
+ <pre class="lines">
305
+
306
+
307
+ 7
308
+ 8
309
+ 9
310
+ 10
311
+ 11
312
+ 12
313
+ 13</pre>
314
+ </td>
315
+ <td>
316
+ <pre class="code"><span class="info file"># File 'lib/reflection/command/stash.rb', line 7</span>
317
+
318
+ <span class='def def kw'>def</span> <span class='validate! fid id'>validate!</span>
319
+ <span class='validate identifier id'>validate</span><span class='dot token'>.</span><span class='existence_of identifier id'>existence_of</span> <span class='config identifier id'>config</span><span class='dot token'>.</span><span class='directory identifier id'>directory</span>
320
+ <span class='if if kw'>if</span> <span class='config identifier id'>config</span><span class='dot token'>.</span><span class='rails_root identifier id'>rails_root</span>
321
+ <span class='validate identifier id'>validate</span><span class='dot token'>.</span><span class='existence_of identifier id'>existence_of</span> <span class='config identifier id'>config</span><span class='dot token'>.</span><span class='rails_root identifier id'>rails_root</span>
322
+ <span class='Reflection constant id'>Reflection</span><span class='colon2 op'>::</span><span class='Rails constant id'>Rails</span><span class='dot token'>.</span><span class='validate_environment identifier id'>validate_environment</span><span class='lparen token'>(</span><span class='config identifier id'>config</span><span class='rparen token'>)</span>
323
+ <span class='end end kw'>end</span>
324
+ <span class='end end kw'>end</span>
325
+ </pre>
326
+ </td>
327
+ </tr>
328
+ </table>
329
+ </div>
330
+
331
+ </div>
332
+
333
+ </div>
334
+
335
+ <div id="footer">
336
+ Generated on Wed Nov 18 18:17:11 2009 by
337
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool">yard</a>
338
+ 0.4.0 (ruby-1.8.7).
339
+ </div>
340
+
341
+ </body>
342
+ </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::Command</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 (C)</a> &raquo;
23
+ <a title="Reflection" href="../Reflection.html">Reflection</a>
24
+ &raquo;
25
+ <span class="title">Command</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::Command
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/command.rb<span class="defines">,<br />
55
+ lib/reflection/command/base.rb,<br /> lib/reflection/command/apply.rb,<br /> lib/reflection/command/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="Apply" href="Command/Apply.html">Apply</a>, <a title="Base" href="Command/Base.html">Base</a>, <a title="Stash" href="Command/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:11 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>