basiszwo-reflection 0.5.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/.document +5 -0
- data/.gitignore +21 -0
- data/.yardoc +0 -0
- data/History.rdoc +21 -0
- data/LICENSE +20 -0
- data/README.rdoc +117 -0
- data/Rakefile +75 -0
- data/Reflection.gemspec +135 -0
- data/TODO.rdoc +38 -0
- data/VERSION +1 -0
- data/bin/reflection +5 -0
- 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
- data/lib/reflection/cli.rb +35 -0
- data/lib/reflection/command/apply.rb +71 -0
- data/lib/reflection/command/base.rb +28 -0
- data/lib/reflection/command/stash.rb +64 -0
- data/lib/reflection/command.rb +7 -0
- data/lib/reflection/config.rb +139 -0
- data/lib/reflection/directory/base.rb +58 -0
- data/lib/reflection/directory/stash.rb +30 -0
- data/lib/reflection/directory.rb +6 -0
- data/lib/reflection/rails/database.rb +96 -0
- data/lib/reflection/rails.rb +40 -0
- data/lib/reflection/repository.rb +71 -0
- data/lib/reflection/support/home.rb +17 -0
- data/lib/reflection/support/log.rb +20 -0
- data/lib/reflection/support.rb +12 -0
- data/lib/reflection/validations.rb +23 -0
- data/lib/reflection.rb +32 -0
- data/spec/reflection/cli_spec.rb +41 -0
- data/spec/reflection/command/stash_spec.rb +104 -0
- data/spec/reflection/config_spec.rb +126 -0
- data/spec/reflection/directory/base_spec.rb +38 -0
- data/spec/reflection/directory/stash_spec.rb +39 -0
- data/spec/reflection/rails/database_spec.rb +161 -0
- data/spec/reflection/rails_spec.rb +62 -0
- data/spec/reflection/repository_spec.rb +71 -0
- data/spec/reflection/support/home_spec.rb +30 -0
- data/spec/reflection/support_spec.rb +4 -0
- data/spec/reflection_spec.rb +21 -0
- data/spec/spec.opts +1 -0
- data/spec/spec_helper.rb +15 -0
- metadata +157 -0
|
@@ -0,0 +1,572 @@
|
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
|
2
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
3
|
+
<html>
|
|
4
|
+
<head>
|
|
5
|
+
<meta name="Content-Type" content="text/html; charset=UTF-8" />
|
|
6
|
+
<link rel="stylesheet" href="css/full_list.css" type="text/css" media="screen" charset="utf-8" />
|
|
7
|
+
<link rel="stylesheet" href="css/common.css" type="text/css" media="screen" charset="utf-8" />
|
|
8
|
+
<script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
|
|
9
|
+
<script type="text/javascript" charset="utf-8" src="js/full_list.js"></script>
|
|
10
|
+
<base target="_parent" />
|
|
11
|
+
</head>
|
|
12
|
+
<body>
|
|
13
|
+
<h1 id="full_list_header">Method List</h1>
|
|
14
|
+
<div id="search">Search: <input type="text" /></div>
|
|
15
|
+
<div class="clear"></div>
|
|
16
|
+
<ul id="full_list">
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
<li class="r1 ">
|
|
20
|
+
|
|
21
|
+
<a title="apply" href="Reflection/Rails.html#apply-class_method">apply</a>
|
|
22
|
+
|
|
23
|
+
<small>(Reflection::Rails)</small>
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
</li>
|
|
28
|
+
|
|
29
|
+
<li class="r2 ">
|
|
30
|
+
|
|
31
|
+
<a title="boot!" href="Reflection.html#boot%21-class_method">boot!</a>
|
|
32
|
+
|
|
33
|
+
<small>(Reflection)</small>
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
</li>
|
|
38
|
+
|
|
39
|
+
<li class="r1 ">
|
|
40
|
+
|
|
41
|
+
<a title="#clean!" href="Reflection/Directory/Base.html#clean%21-instance_method">#clean!</a>
|
|
42
|
+
|
|
43
|
+
<small>(Reflection::Directory::Base)</small>
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
</li>
|
|
48
|
+
|
|
49
|
+
<li class="r2 ">
|
|
50
|
+
|
|
51
|
+
<a title="clean_target" href="Reflection/Rails.html#clean_target-class_method">clean_target</a>
|
|
52
|
+
|
|
53
|
+
<small>(Reflection::Rails)</small>
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
</li>
|
|
58
|
+
|
|
59
|
+
<li class="r1 ">
|
|
60
|
+
|
|
61
|
+
<a title="#clone" href="Reflection/Repository.html#clone-instance_method">#clone</a>
|
|
62
|
+
|
|
63
|
+
<small>(Reflection::Repository)</small>
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
</li>
|
|
68
|
+
|
|
69
|
+
<li class="r2 ">
|
|
70
|
+
|
|
71
|
+
<a title="#clone_repository" href="Reflection/Directory/Stash.html#clone_repository-instance_method">#clone_repository</a>
|
|
72
|
+
|
|
73
|
+
<small>(Reflection::Directory::Stash)</small>
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
</li>
|
|
78
|
+
|
|
79
|
+
<li class="r1 ">
|
|
80
|
+
|
|
81
|
+
<a title="#commit_all_new_files" href="Reflection/Repository.html#commit_all_new_files-instance_method">#commit_all_new_files</a>
|
|
82
|
+
|
|
83
|
+
<small>(Reflection::Repository)</small>
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
</li>
|
|
88
|
+
|
|
89
|
+
<li class="r2 ">
|
|
90
|
+
|
|
91
|
+
<a title="#copy_git_index_to" href="Reflection/Directory/Base.html#copy_git_index_to-instance_method">#copy_git_index_to</a>
|
|
92
|
+
|
|
93
|
+
<small>(Reflection::Directory::Base)</small>
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
</li>
|
|
98
|
+
|
|
99
|
+
<li class="r1 ">
|
|
100
|
+
|
|
101
|
+
<a title="#create" href="Reflection/Support/Home.html#create-instance_method">#create</a>
|
|
102
|
+
|
|
103
|
+
<small>(Reflection::Support::Home)</small>
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
</li>
|
|
108
|
+
|
|
109
|
+
<li class="r2 ">
|
|
110
|
+
|
|
111
|
+
<a title="database_command_line_options" href="Reflection/Rails.html#database_command_line_options-class_method">database_command_line_options</a>
|
|
112
|
+
|
|
113
|
+
<small>(Reflection::Rails)</small>
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
</li>
|
|
118
|
+
|
|
119
|
+
<li class="r1 ">
|
|
120
|
+
|
|
121
|
+
<a title="#debug" href="Reflection/Support/Log.html#debug-instance_method">#debug</a>
|
|
122
|
+
|
|
123
|
+
<small>(Reflection::Support::Log)</small>
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
</li>
|
|
128
|
+
|
|
129
|
+
<li class="r2 ">
|
|
130
|
+
|
|
131
|
+
<a title="#error" href="Reflection/Support/Log.html#error-instance_method">#error</a>
|
|
132
|
+
|
|
133
|
+
<small>(Reflection::Support::Log)</small>
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
</li>
|
|
138
|
+
|
|
139
|
+
<li class="r1 ">
|
|
140
|
+
|
|
141
|
+
<a title="existence_of" href="Reflection/Validations.html#existence_of-class_method">existence_of</a>
|
|
142
|
+
|
|
143
|
+
<small>(Reflection::Validations)</small>
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
</li>
|
|
148
|
+
|
|
149
|
+
<li class="r2 ">
|
|
150
|
+
|
|
151
|
+
<a title="exists?" href="Reflection/Repository.html#exists%3F-class_method">exists?</a>
|
|
152
|
+
|
|
153
|
+
<small>(Reflection::Repository)</small>
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
</li>
|
|
158
|
+
|
|
159
|
+
<li class="r1 ">
|
|
160
|
+
|
|
161
|
+
<a title="#exists?" href="Reflection/Directory/Base.html#exists%3F-instance_method">#exists?</a>
|
|
162
|
+
|
|
163
|
+
<small>(Reflection::Directory::Base)</small>
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
</li>
|
|
168
|
+
|
|
169
|
+
<li class="r2 ">
|
|
170
|
+
|
|
171
|
+
<a title="exit_with_error" href="Reflection/Support.html#exit_with_error-class_method">exit_with_error</a>
|
|
172
|
+
|
|
173
|
+
<small>(Reflection::Support)</small>
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
</li>
|
|
178
|
+
|
|
179
|
+
<li class="r1 ">
|
|
180
|
+
|
|
181
|
+
<a title="#from_hash" href="Reflection/Config.html#from_hash-instance_method">#from_hash</a>
|
|
182
|
+
|
|
183
|
+
<small>(Reflection::Config)</small>
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
|
|
187
|
+
</li>
|
|
188
|
+
|
|
189
|
+
<li class="r2 ">
|
|
190
|
+
|
|
191
|
+
<a title="#get_git_index_from" href="Reflection/Directory/Base.html#get_git_index_from-instance_method">#get_git_index_from</a>
|
|
192
|
+
|
|
193
|
+
<small>(Reflection::Directory::Base)</small>
|
|
194
|
+
|
|
195
|
+
|
|
196
|
+
|
|
197
|
+
</li>
|
|
198
|
+
|
|
199
|
+
<li class="r1 ">
|
|
200
|
+
|
|
201
|
+
<a title="#git_index" href="Reflection/Directory/Base.html#git_index-instance_method">#git_index</a>
|
|
202
|
+
|
|
203
|
+
<small>(Reflection::Directory::Base)</small>
|
|
204
|
+
|
|
205
|
+
|
|
206
|
+
|
|
207
|
+
</li>
|
|
208
|
+
|
|
209
|
+
<li class="r2 ">
|
|
210
|
+
|
|
211
|
+
<a title="#identifier" href="Reflection/Repository.html#identifier-instance_method">#identifier</a>
|
|
212
|
+
|
|
213
|
+
<small>(Reflection::Repository)</small>
|
|
214
|
+
|
|
215
|
+
|
|
216
|
+
|
|
217
|
+
</li>
|
|
218
|
+
|
|
219
|
+
<li class="r1 ">
|
|
220
|
+
|
|
221
|
+
<a title="#info" href="Reflection/Support/Log.html#info-instance_method">#info</a>
|
|
222
|
+
|
|
223
|
+
<small>(Reflection::Support::Log)</small>
|
|
224
|
+
|
|
225
|
+
|
|
226
|
+
|
|
227
|
+
</li>
|
|
228
|
+
|
|
229
|
+
<li class="r2 ">
|
|
230
|
+
|
|
231
|
+
<a title="#initialize" href="Reflection/Directory/Base.html#initialize-instance_method">#initialize</a>
|
|
232
|
+
|
|
233
|
+
<small>(Reflection::Directory::Base)</small>
|
|
234
|
+
|
|
235
|
+
|
|
236
|
+
|
|
237
|
+
</li>
|
|
238
|
+
|
|
239
|
+
<li class="r1 ">
|
|
240
|
+
|
|
241
|
+
<a title="#initialize" href="Reflection/Directory/Stash.html#initialize-instance_method">#initialize</a>
|
|
242
|
+
|
|
243
|
+
<small>(Reflection::Directory::Stash)</small>
|
|
244
|
+
|
|
245
|
+
|
|
246
|
+
|
|
247
|
+
</li>
|
|
248
|
+
|
|
249
|
+
<li class="r2 ">
|
|
250
|
+
|
|
251
|
+
<a title="#initialize" href="Reflection/Repository.html#initialize-instance_method">#initialize</a>
|
|
252
|
+
|
|
253
|
+
<small>(Reflection::Repository)</small>
|
|
254
|
+
|
|
255
|
+
|
|
256
|
+
|
|
257
|
+
</li>
|
|
258
|
+
|
|
259
|
+
<li class="r1 ">
|
|
260
|
+
|
|
261
|
+
<a title="#initialize" href="Reflection/Command/Base.html#initialize-instance_method">#initialize</a>
|
|
262
|
+
|
|
263
|
+
<small>(Reflection::Command::Base)</small>
|
|
264
|
+
|
|
265
|
+
|
|
266
|
+
|
|
267
|
+
</li>
|
|
268
|
+
|
|
269
|
+
<li class="r2 ">
|
|
270
|
+
|
|
271
|
+
<a title="#move_content_to" href="Reflection/Directory/Base.html#move_content_to-instance_method">#move_content_to</a>
|
|
272
|
+
|
|
273
|
+
<small>(Reflection::Directory::Base)</small>
|
|
274
|
+
|
|
275
|
+
|
|
276
|
+
|
|
277
|
+
</li>
|
|
278
|
+
|
|
279
|
+
<li class="r1 ">
|
|
280
|
+
|
|
281
|
+
<a title="#name" href="Reflection/Directory/Base.html#name-instance_method">#name</a>
|
|
282
|
+
|
|
283
|
+
<small>(Reflection::Directory::Base)</small>
|
|
284
|
+
|
|
285
|
+
|
|
286
|
+
|
|
287
|
+
</li>
|
|
288
|
+
|
|
289
|
+
<li class="r2 ">
|
|
290
|
+
|
|
291
|
+
<a title="new_from_path" href="Reflection/Repository.html#new_from_path-class_method">new_from_path</a>
|
|
292
|
+
|
|
293
|
+
<small>(Reflection::Repository)</small>
|
|
294
|
+
|
|
295
|
+
|
|
296
|
+
|
|
297
|
+
</li>
|
|
298
|
+
|
|
299
|
+
<li class="r1 ">
|
|
300
|
+
|
|
301
|
+
<a title="#parent" href="Reflection/Directory/Base.html#parent-instance_method">#parent</a>
|
|
302
|
+
|
|
303
|
+
<small>(Reflection::Directory::Base)</small>
|
|
304
|
+
|
|
305
|
+
|
|
306
|
+
|
|
307
|
+
</li>
|
|
308
|
+
|
|
309
|
+
<li class="r2 ">
|
|
310
|
+
|
|
311
|
+
<a title="parse" href="Reflection/Config.html#parse-class_method">parse</a>
|
|
312
|
+
|
|
313
|
+
<small>(Reflection::Config)</small>
|
|
314
|
+
|
|
315
|
+
|
|
316
|
+
|
|
317
|
+
</li>
|
|
318
|
+
|
|
319
|
+
<li class="r1 ">
|
|
320
|
+
|
|
321
|
+
<a title="#parse_command_line_options" href="Reflection/Config.html#parse_command_line_options-instance_method">#parse_command_line_options</a>
|
|
322
|
+
|
|
323
|
+
<small>(Reflection::Config)</small>
|
|
324
|
+
|
|
325
|
+
|
|
326
|
+
|
|
327
|
+
</li>
|
|
328
|
+
|
|
329
|
+
<li class="r2 ">
|
|
330
|
+
|
|
331
|
+
<a title="#path" href="Reflection/Support/Home.html#path-instance_method">#path</a>
|
|
332
|
+
|
|
333
|
+
<small>(Reflection::Support::Home)</small>
|
|
334
|
+
|
|
335
|
+
|
|
336
|
+
|
|
337
|
+
</li>
|
|
338
|
+
|
|
339
|
+
<li class="r1 ">
|
|
340
|
+
|
|
341
|
+
<a title="#path" href="Reflection/Directory/Stash.html#path-instance_method">#path</a>
|
|
342
|
+
|
|
343
|
+
<small>(Reflection::Directory::Stash)</small>
|
|
344
|
+
|
|
345
|
+
|
|
346
|
+
|
|
347
|
+
</li>
|
|
348
|
+
|
|
349
|
+
<li class="r2 ">
|
|
350
|
+
|
|
351
|
+
<a title="#prepare_stash_repository" href="Reflection/Command/Stash.html#prepare_stash_repository-instance_method">#prepare_stash_repository</a>
|
|
352
|
+
|
|
353
|
+
<small>(Reflection::Command::Stash)</small>
|
|
354
|
+
|
|
355
|
+
|
|
356
|
+
|
|
357
|
+
</li>
|
|
358
|
+
|
|
359
|
+
<li class="r1 ">
|
|
360
|
+
|
|
361
|
+
<a title="#pull" href="Reflection/Repository.html#pull-instance_method">#pull</a>
|
|
362
|
+
|
|
363
|
+
<small>(Reflection::Repository)</small>
|
|
364
|
+
|
|
365
|
+
|
|
366
|
+
|
|
367
|
+
</li>
|
|
368
|
+
|
|
369
|
+
<li class="r2 ">
|
|
370
|
+
|
|
371
|
+
<a title="#push" href="Reflection/Repository.html#push-instance_method">#push</a>
|
|
372
|
+
|
|
373
|
+
<small>(Reflection::Repository)</small>
|
|
374
|
+
|
|
375
|
+
|
|
376
|
+
|
|
377
|
+
</li>
|
|
378
|
+
|
|
379
|
+
<li class="r1 ">
|
|
380
|
+
|
|
381
|
+
<a title="#read!" href="Reflection/Config.html#read%21-instance_method">#read!</a>
|
|
382
|
+
|
|
383
|
+
<small>(Reflection::Config)</small>
|
|
384
|
+
|
|
385
|
+
|
|
386
|
+
|
|
387
|
+
</li>
|
|
388
|
+
|
|
389
|
+
<li class="r2 ">
|
|
390
|
+
|
|
391
|
+
<a title="read_database_configuration" href="Reflection/Rails.html#read_database_configuration-class_method">read_database_configuration</a>
|
|
392
|
+
|
|
393
|
+
<small>(Reflection::Rails)</small>
|
|
394
|
+
|
|
395
|
+
|
|
396
|
+
|
|
397
|
+
</li>
|
|
398
|
+
|
|
399
|
+
<li class="r1 ">
|
|
400
|
+
|
|
401
|
+
<a title="#reset!" href="Reflection/Repository.html#reset%21-instance_method">#reset!</a>
|
|
402
|
+
|
|
403
|
+
<small>(Reflection::Repository)</small>
|
|
404
|
+
|
|
405
|
+
|
|
406
|
+
|
|
407
|
+
</li>
|
|
408
|
+
|
|
409
|
+
<li class="r2 ">
|
|
410
|
+
|
|
411
|
+
<a title="#run!" href="Reflection/Command/Apply.html#run%21-instance_method">#run!</a>
|
|
412
|
+
|
|
413
|
+
<small>(Reflection::Command::Apply)</small>
|
|
414
|
+
|
|
415
|
+
|
|
416
|
+
|
|
417
|
+
</li>
|
|
418
|
+
|
|
419
|
+
<li class="r1 ">
|
|
420
|
+
|
|
421
|
+
<a title="#run!" href="Reflection/Command/Stash.html#run%21-instance_method">#run!</a>
|
|
422
|
+
|
|
423
|
+
<small>(Reflection::Command::Stash)</small>
|
|
424
|
+
|
|
425
|
+
|
|
426
|
+
|
|
427
|
+
</li>
|
|
428
|
+
|
|
429
|
+
<li class="r2 ">
|
|
430
|
+
|
|
431
|
+
<a title="run!" href="Reflection/Command/Base.html#run%21-class_method">run!</a>
|
|
432
|
+
|
|
433
|
+
<small>(Reflection::Command::Base)</small>
|
|
434
|
+
|
|
435
|
+
|
|
436
|
+
|
|
437
|
+
</li>
|
|
438
|
+
|
|
439
|
+
<li class="r1 ">
|
|
440
|
+
|
|
441
|
+
<a title="run!" href="Reflection/CLI.html#run%21-class_method">run!</a>
|
|
442
|
+
|
|
443
|
+
<small>(Reflection::CLI)</small>
|
|
444
|
+
|
|
445
|
+
|
|
446
|
+
|
|
447
|
+
</li>
|
|
448
|
+
|
|
449
|
+
<li class="r2 ">
|
|
450
|
+
|
|
451
|
+
<a title="#same_in_path?" href="Reflection/Repository.html#same_in_path%3F-instance_method">#same_in_path?</a>
|
|
452
|
+
|
|
453
|
+
<small>(Reflection::Repository)</small>
|
|
454
|
+
|
|
455
|
+
|
|
456
|
+
|
|
457
|
+
</li>
|
|
458
|
+
|
|
459
|
+
<li class="r1 ">
|
|
460
|
+
|
|
461
|
+
<a title="stash" href="Reflection/Rails.html#stash-class_method">stash</a>
|
|
462
|
+
|
|
463
|
+
<small>(Reflection::Rails)</small>
|
|
464
|
+
|
|
465
|
+
|
|
466
|
+
|
|
467
|
+
</li>
|
|
468
|
+
|
|
469
|
+
<li class="r2 ">
|
|
470
|
+
|
|
471
|
+
<a title="#stash_directory_into_repository" href="Reflection/Command/Stash.html#stash_directory_into_repository-instance_method">#stash_directory_into_repository</a>
|
|
472
|
+
|
|
473
|
+
<small>(Reflection::Command::Stash)</small>
|
|
474
|
+
|
|
475
|
+
|
|
476
|
+
|
|
477
|
+
</li>
|
|
478
|
+
|
|
479
|
+
<li class="r1 ">
|
|
480
|
+
|
|
481
|
+
<a title="#to_hash" href="Reflection/Config.html#to_hash-instance_method">#to_hash</a>
|
|
482
|
+
|
|
483
|
+
<small>(Reflection::Config)</small>
|
|
484
|
+
|
|
485
|
+
|
|
486
|
+
|
|
487
|
+
</li>
|
|
488
|
+
|
|
489
|
+
<li class="r2 ">
|
|
490
|
+
|
|
491
|
+
<a title="#to_s" href="Reflection/Directory/Base.html#to_s-instance_method">#to_s</a>
|
|
492
|
+
|
|
493
|
+
<small>(Reflection::Directory::Base)</small>
|
|
494
|
+
|
|
495
|
+
|
|
496
|
+
|
|
497
|
+
</li>
|
|
498
|
+
|
|
499
|
+
<li class="r1 ">
|
|
500
|
+
|
|
501
|
+
<a title="#validate" href="Reflection/Command/Base.html#validate-instance_method">#validate</a>
|
|
502
|
+
|
|
503
|
+
<small>(Reflection::Command::Base)</small>
|
|
504
|
+
|
|
505
|
+
|
|
506
|
+
|
|
507
|
+
</li>
|
|
508
|
+
|
|
509
|
+
<li class="r2 ">
|
|
510
|
+
|
|
511
|
+
<a title="#validate!" href="Reflection/Command/Stash.html#validate%21-instance_method">#validate!</a>
|
|
512
|
+
|
|
513
|
+
<small>(Reflection::Command::Stash)</small>
|
|
514
|
+
|
|
515
|
+
|
|
516
|
+
|
|
517
|
+
</li>
|
|
518
|
+
|
|
519
|
+
<li class="r1 ">
|
|
520
|
+
|
|
521
|
+
<a title="#validate!" href="Reflection/Command/Apply.html#validate%21-instance_method">#validate!</a>
|
|
522
|
+
|
|
523
|
+
<small>(Reflection::Command::Apply)</small>
|
|
524
|
+
|
|
525
|
+
|
|
526
|
+
|
|
527
|
+
</li>
|
|
528
|
+
|
|
529
|
+
<li class="r2 ">
|
|
530
|
+
|
|
531
|
+
<a title="validate_environment" href="Reflection/Rails.html#validate_environment-class_method">validate_environment</a>
|
|
532
|
+
|
|
533
|
+
<small>(Reflection::Rails)</small>
|
|
534
|
+
|
|
535
|
+
|
|
536
|
+
|
|
537
|
+
</li>
|
|
538
|
+
|
|
539
|
+
<li class="r1 ">
|
|
540
|
+
|
|
541
|
+
<a title="#validate_repository" href="Reflection/Directory/Stash.html#validate_repository-instance_method">#validate_repository</a>
|
|
542
|
+
|
|
543
|
+
<small>(Reflection::Directory::Stash)</small>
|
|
544
|
+
|
|
545
|
+
|
|
546
|
+
|
|
547
|
+
</li>
|
|
548
|
+
|
|
549
|
+
<li class="r2 ">
|
|
550
|
+
|
|
551
|
+
<a title="#verify_that_target_is_not_a_repository" href="Reflection/Command/Base.html#verify_that_target_is_not_a_repository-instance_method">#verify_that_target_is_not_a_repository</a>
|
|
552
|
+
|
|
553
|
+
<small>(Reflection::Command::Base)</small>
|
|
554
|
+
|
|
555
|
+
|
|
556
|
+
|
|
557
|
+
</li>
|
|
558
|
+
|
|
559
|
+
<li class="r1 ">
|
|
560
|
+
|
|
561
|
+
<a title="#write" href="Reflection/Config.html#write-instance_method">#write</a>
|
|
562
|
+
|
|
563
|
+
<small>(Reflection::Config)</small>
|
|
564
|
+
|
|
565
|
+
|
|
566
|
+
|
|
567
|
+
</li>
|
|
568
|
+
|
|
569
|
+
</ul>
|
|
570
|
+
</body>
|
|
571
|
+
</html>
|
|
572
|
+
|
|
@@ -0,0 +1,80 @@
|
|
|
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>Top Level Namespace</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</a> »
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
<span class="title">Top Level Namespace</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>Top Level Namespace
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
</h1>
|
|
44
|
+
|
|
45
|
+
<dl class="box">
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
</dl>
|
|
54
|
+
<div class="clear"></div>
|
|
55
|
+
|
|
56
|
+
<h2>Defined Under Namespace</h2>
|
|
57
|
+
<p class="children">
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
<strong class="modules">Modules:</strong> <a title="Reflection" href="Reflection.html">Reflection</a>
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
</p>
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
</div>
|
|
72
|
+
|
|
73
|
+
<div id="footer">
|
|
74
|
+
Generated on Wed Nov 18 18:17:12 2009 by
|
|
75
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool">yard</a>
|
|
76
|
+
0.4.0 (ruby-1.8.7).
|
|
77
|
+
</div>
|
|
78
|
+
|
|
79
|
+
</body>
|
|
80
|
+
</html>
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
module Reflection
|
|
2
|
+
module CLI
|
|
3
|
+
class << self
|
|
4
|
+
|
|
5
|
+
def run!(args = nil)
|
|
6
|
+
config = Reflection::Config.parse(args)
|
|
7
|
+
|
|
8
|
+
if config.command == :show_version
|
|
9
|
+
puts "Version: #{Reflection.version}"
|
|
10
|
+
exit
|
|
11
|
+
end
|
|
12
|
+
|
|
13
|
+
if verify_config(config) == false
|
|
14
|
+
Reflection::Support.exit_with_error("Missing arguments. Please read 'reflection --help' to get a feeling of how it works.")
|
|
15
|
+
else
|
|
16
|
+
case config.command
|
|
17
|
+
when :apply
|
|
18
|
+
Reflection::Command::Apply.run!(config)
|
|
19
|
+
when :stash
|
|
20
|
+
Reflection::Command::Stash.run!(config)
|
|
21
|
+
else
|
|
22
|
+
Reflection::Support.exit_with_error("Couldn't identify command. Please run 'reflection --help'.")
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
private
|
|
29
|
+
|
|
30
|
+
def verify_config(config)
|
|
31
|
+
return ([:stash, :apply].include?(config.command) && !config.repository.nil? && !config.directory.nil?) ? config : false
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|