dtf 0.2.6 → 0.2.7

Sign up to get free protection for your applications and to get access to all the features.
data/bin/dtf CHANGED
@@ -13,4 +13,4 @@ require 'dtf/help_system'
13
13
  # -- LOAD ERROR SYSTEM
14
14
  require 'dtf/error_system'
15
15
 
16
- Dtf::Commands.process(@cmd, @cmd_opts)
16
+ Dtf::Command.process(@cmd, @cmd_opts)
@@ -114,7 +114,7 @@
114
114
  </div>
115
115
 
116
116
  <div id="footer">
117
- Generated on Fri Sep 14 22:41:21 2012 by
117
+ Generated on Sun Sep 16 12:04:53 2012 by
118
118
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
119
119
  0.8.2.1 (ruby-1.9.3).
120
120
  </div>
@@ -114,7 +114,7 @@
114
114
  </div>
115
115
 
116
116
  <div id="footer">
117
- Generated on Fri Sep 14 22:41:21 2012 by
117
+ Generated on Sun Sep 16 12:04:53 2012 by
118
118
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
119
119
  0.8.2.1 (ruby-1.9.3).
120
120
  </div>
@@ -90,9 +90,11 @@
90
90
  <p class="children">
91
91
 
92
92
 
93
+ <strong class="modules">Modules:</strong> <span class='object_link'><a href="Dtf/HelpSystem.html" title="Dtf::HelpSystem (module)">HelpSystem</a></span>
94
+
93
95
 
94
96
 
95
- <strong class="classes">Classes:</strong> <span class='object_link'><a href="Dtf/Commands.html" title="Dtf::Commands (class)">Commands</a></span>
97
+ <strong class="classes">Classes:</strong> <span class='object_link'><a href="Dtf/Command.html" title="Dtf::Command (class)">Command</a></span>
96
98
 
97
99
 
98
100
  </p>
@@ -104,7 +106,7 @@
104
106
  <dt id="VERSION-constant" class="">VERSION =
105
107
 
106
108
  </dt>
107
- <dd><pre class="code"><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>0.2.2</span><span class='tstring_end'>&quot;</span></span></pre></dd>
109
+ <dd><pre class="code"><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>0.2.6</span><span class='tstring_end'>&quot;</span></span></pre></dd>
108
110
 
109
111
  </dl>
110
112
 
@@ -120,7 +122,7 @@
120
122
  </div>
121
123
 
122
124
  <div id="footer">
123
- Generated on Fri Sep 14 22:41:21 2012 by
125
+ Generated on Sun Sep 16 12:04:53 2012 by
124
126
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
125
127
  0.8.2.1 (ruby-1.9.3).
126
128
  </div>
@@ -4,7 +4,7 @@
4
4
  <head>
5
5
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6
6
  <title>
7
- Class: Dtf::Commands
7
+ Class: Dtf::Command
8
8
 
9
9
  &mdash; Documentation by YARD 0.8.2.1
10
10
 
@@ -31,10 +31,10 @@
31
31
  <div id="header">
32
32
  <div id="menu">
33
33
 
34
- <a href="../_index.html">Index (D)</a> &raquo;
34
+ <a href="../_index.html">Index (C)</a> &raquo;
35
35
  <span class='title'><span class='object_link'><a href="../Dtf.html" title="Dtf (module)">Dtf</a></span></span>
36
36
  &raquo;
37
- <span class="title">Commands</span>
37
+ <span class="title">Command</span>
38
38
 
39
39
 
40
40
  <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
@@ -63,7 +63,7 @@
63
63
 
64
64
  <iframe id="search_frame"></iframe>
65
65
 
66
- <div id="content"><h1>Class: Dtf::Commands
66
+ <div id="content"><h1>Class: Dtf::Command
67
67
 
68
68
 
69
69
 
@@ -78,7 +78,7 @@
78
78
  <ul class="fullTree">
79
79
  <li>Object</li>
80
80
 
81
- <li class="next">Dtf::Commands</li>
81
+ <li class="next">Dtf::Command</li>
82
82
 
83
83
  </ul>
84
84
  <a href="#" class="inheritanceTree">show all</a>
@@ -99,7 +99,20 @@
99
99
  </dl>
100
100
  <div class="clear"></div>
101
101
 
102
+ <h2>Overview</h2><div class="docstring">
103
+ <div class="discussion">
104
+
105
+ <p>Dtf::Command contains all sub-commands availabe in the DTF master gem. All
106
+ methods recieve the @cmd and @cmd_opts parsed from the command-line. They
107
+ are what was captured in the ivars in Dtf::HelpSystem</p>
108
+
109
+
110
+ </div>
111
+ </div>
112
+ <div class="tags">
113
+
102
114
 
115
+ </div>
103
116
 
104
117
 
105
118
 
@@ -117,7 +130,7 @@
117
130
  <li class="public ">
118
131
  <span class="summary_signature">
119
132
 
120
- <a href="#create_user-class_method" title="create_user (class method)">+ (Object) <strong>create_user</strong>(cmd_opts) </a>
133
+ <a href="#create_user-class_method" title="create_user (class method)">+ (Object) <strong>create_user</strong>(cmd, cmd_opts) </a>
121
134
 
122
135
 
123
136
 
@@ -131,7 +144,9 @@
131
144
 
132
145
 
133
146
 
134
- <span class="summary_desc"><div class='inline'></div></span>
147
+ <span class="summary_desc"><div class='inline'>
148
+ <p>This sub-command is used to add a User to the Test Framework system.</p>
149
+ </div></span>
135
150
 
136
151
  </li>
137
152
 
@@ -139,7 +154,7 @@
139
154
  <li class="public ">
140
155
  <span class="summary_signature">
141
156
 
142
- <a href="#create_vs-class_method" title="create_vs (class method)">+ (Object) <strong>create_vs</strong>(cmd_opts) </a>
157
+ <a href="#create_vs-class_method" title="create_vs (class method)">+ (Object) <strong>create_vs</strong>(cmd, cmd_opts) </a>
143
158
 
144
159
 
145
160
 
@@ -153,7 +168,10 @@
153
168
 
154
169
 
155
170
 
156
- <span class="summary_desc"><div class='inline'></div></span>
171
+ <span class="summary_desc"><div class='inline'>
172
+ <p>This sub-command generates, adds, and associates a Verification Suite in
173
+ the Testing Framework system.</p>
174
+ </div></span>
157
175
 
158
176
  </li>
159
177
 
@@ -175,7 +193,9 @@
175
193
 
176
194
 
177
195
 
178
- <span class="summary_desc"><div class='inline'></div></span>
196
+ <span class="summary_desc"><div class='inline'>
197
+ <p>This sub-command removes a User from the Testing Framework system.</p>
198
+ </div></span>
179
199
 
180
200
  </li>
181
201
 
@@ -197,7 +217,34 @@
197
217
 
198
218
 
199
219
 
200
- <span class="summary_desc"><div class='inline'></div></span>
220
+ <span class="summary_desc"><div class='inline'>
221
+ <p>This sub-command removes a Verification Suite from the Testing Framework
222
+ system.</p>
223
+ </div></span>
224
+
225
+ </li>
226
+
227
+
228
+ <li class="public ">
229
+ <span class="summary_signature">
230
+
231
+ <a href="#process-class_method" title="process (class method)">+ (Object) <strong>process</strong>(cmd, cmd_opts) </a>
232
+
233
+
234
+
235
+ </span>
236
+
237
+
238
+
239
+
240
+
241
+
242
+
243
+
244
+
245
+ <span class="summary_desc"><div class='inline'>
246
+ <p>Process both the requested command and all/any parameters.</p>
247
+ </div></span>
201
248
 
202
249
  </li>
203
250
 
@@ -214,45 +261,65 @@
214
261
  <div class="method_details first">
215
262
  <h3 class="signature first" id="create_user-class_method">
216
263
 
217
- + (<tt>Object</tt>) <strong>create_user</strong>(cmd_opts)
264
+ + (<tt>Object</tt>) <strong>create_user</strong>(cmd, cmd_opts)
265
+
266
+
218
267
 
219
268
 
220
269
 
270
+ </h3><div class="docstring">
271
+ <div class="discussion">
272
+
273
+ <p>This sub-command is used to add a User to the Test Framework system</p>
274
+
275
+ <p>Required Parameters are:</p>
276
+
277
+ <pre class="code ruby"><code>--user-name [String], --full-name [String], --email-address [String]</code></pre>
278
+
279
+ <p>'--user-name' is used to specify the user_name of the created User, and
280
+ <b>must</b> be unique in the system. '--full-name' is the Real Name of the
281
+ created User. '--email-address' is the email address of the created User,
282
+ and <b>must</b> be unique in the system.</p>
283
+
221
284
 
285
+ </div>
286
+ </div>
287
+ <div class="tags">
222
288
 
223
- </h3><table class="source_code">
289
+
290
+ </div><table class="source_code">
224
291
  <tr>
225
292
  <td>
226
293
  <pre class="lines">
227
294
 
228
295
 
229
- 9
230
- 10
231
- 11
232
- 12
233
- 13
234
- 14
235
- 15
236
- 16
237
- 17
238
- 18
239
- 19
240
- 20
241
- 21
242
- 22
243
- 23
244
- 24
245
- 25
246
- 26
247
- 27
248
- 28
249
- 29
250
- 30</pre>
296
+ 47
297
+ 48
298
+ 49
299
+ 50
300
+ 51
301
+ 52
302
+ 53
303
+ 54
304
+ 55
305
+ 56
306
+ 57
307
+ 58
308
+ 59
309
+ 60
310
+ 61
311
+ 62
312
+ 63
313
+ 64
314
+ 65
315
+ 66
316
+ 67
317
+ 68</pre>
251
318
  </td>
252
319
  <td>
253
- <pre class="code"><span class="info file"># File 'lib/dtf.rb', line 9</span>
320
+ <pre class="code"><span class="info file"># File 'lib/dtf.rb', line 47</span>
254
321
 
255
- <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_create_user'>create_user</span><span class='lparen'>(</span><span class='id identifier rubyid_cmd_opts'>cmd_opts</span><span class='rparen'>)</span>
322
+ <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_create_user'>create_user</span><span class='lparen'>(</span><span class='id identifier rubyid_cmd'>cmd</span><span class='comma'>,</span> <span class='id identifier rubyid_cmd_opts'>cmd_opts</span><span class='rparen'>)</span>
256
323
  <span class='kw'>if</span> <span class='lbracket'>[</span><span class='symbol'>:user_name_given</span><span class='comma'>,</span> <span class='symbol'>:full_name_given</span><span class='comma'>,</span> <span class='symbol'>:email_address_given</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_all?'>all?</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_sym'>sym</span><span class='op'>|</span> <span class='id identifier rubyid_cmd_opts'>cmd_opts</span><span class='period'>.</span><span class='id identifier rubyid_key?'>key?</span><span class='lparen'>(</span><span class='id identifier rubyid_sym'>sym</span><span class='rparen'>)</span> <span class='rbrace'>}</span> <span class='kw'>then</span>
257
324
  <span class='id identifier rubyid_user'>user</span> <span class='op'>=</span> <span class='const'>User</span><span class='period'>.</span><span class='id identifier rubyid_where'>where</span><span class='lparen'>(</span><span class='label'>user_name:</span> <span class='id identifier rubyid_cmd_opts'>cmd_opts</span><span class='lbracket'>[</span><span class='symbol'>:user_name</span><span class='rbracket'>]</span><span class='comma'>,</span>
258
325
  <span class='label'>full_name:</span> <span class='id identifier rubyid_cmd_opts'>cmd_opts</span><span class='lbracket'>[</span><span class='symbol'>:full_name</span><span class='rbracket'>]</span><span class='comma'>,</span>
@@ -271,7 +338,7 @@
271
338
  </span> <span class='id identifier rubyid_abort'>abort</span><span class='lparen'>(</span><span class='rparen'>)</span>
272
339
  <span class='kw'>end</span>
273
340
  <span class='kw'>else</span>
274
- <span class='id identifier rubyid_raise_error'>raise_error</span> <span class='comment'># This error here is thrown when not all params are provided
341
+ <span class='id identifier rubyid_raise_error'>raise_error</span><span class='lparen'>(</span><span class='id identifier rubyid_cmd'>cmd</span><span class='rparen'>)</span> <span class='comment'># This error here is thrown when not all params are provided
275
342
  </span> <span class='kw'>end</span>
276
343
  <span class='kw'>end</span></pre>
277
344
  </td>
@@ -282,37 +349,64 @@
282
349
  <div class="method_details ">
283
350
  <h3 class="signature " id="create_vs-class_method">
284
351
 
285
- + (<tt>Object</tt>) <strong>create_vs</strong>(cmd_opts)
352
+ + (<tt>Object</tt>) <strong>create_vs</strong>(cmd, cmd_opts)
286
353
 
287
354
 
288
355
 
289
356
 
290
357
 
291
- </h3><table class="source_code">
358
+ </h3><div class="docstring">
359
+ <div class="discussion">
360
+
361
+ <p>This sub-command generates, adds, and associates a Verification Suite in
362
+ the Testing Framework system.</p>
363
+
364
+ <p>Required Parameters are:</p>
365
+
366
+ <pre class="code ruby"><code>--user-name [String], --name [String]</code></pre>
367
+
368
+ <p>'--user-name' is the user_name of the User that should own this
369
+ Verification Suite. '--name' is the descriptive name of the Verification
370
+ Suite.</p>
371
+
372
+ <p>Options are:</p>
373
+
374
+ <pre class="code ruby"><code>--description [String]</code></pre>
375
+
376
+ <p>This <b>optional</b> parameter is for providing a description of the
377
+ Verification Suite's use. e.g. --description "RSpec Verification"</p>
378
+
379
+
380
+ </div>
381
+ </div>
382
+ <div class="tags">
383
+
384
+
385
+ </div><table class="source_code">
292
386
  <tr>
293
387
  <td>
294
388
  <pre class="lines">
295
389
 
296
390
 
297
- 62
298
- 63
299
- 64
300
- 65
301
- 66
302
- 67
303
- 68
304
- 69
305
- 70
306
- 71
307
- 72
308
- 73
309
- 74
310
- 75</pre>
391
+ 130
392
+ 131
393
+ 132
394
+ 133
395
+ 134
396
+ 135
397
+ 136
398
+ 137
399
+ 138
400
+ 139
401
+ 140
402
+ 141
403
+ 142
404
+ 143</pre>
311
405
  </td>
312
406
  <td>
313
- <pre class="code"><span class="info file"># File 'lib/dtf.rb', line 62</span>
407
+ <pre class="code"><span class="info file"># File 'lib/dtf.rb', line 130</span>
314
408
 
315
- <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_create_vs'>create_vs</span><span class='lparen'>(</span><span class='id identifier rubyid_cmd_opts'>cmd_opts</span><span class='rparen'>)</span>
409
+ <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_create_vs'>create_vs</span><span class='lparen'>(</span><span class='id identifier rubyid_cmd'>cmd</span><span class='comma'>,</span> <span class='id identifier rubyid_cmd_opts'>cmd_opts</span><span class='rparen'>)</span>
316
410
  <span class='kw'>if</span> <span class='lbracket'>[</span><span class='symbol'>:user_name_given</span><span class='comma'>,</span> <span class='symbol'>:name_given</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_all?'>all?</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_sym'>sym</span><span class='op'>|</span> <span class='id identifier rubyid_cmd_opts'>cmd_opts</span><span class='period'>.</span><span class='id identifier rubyid_key?'>key?</span><span class='lparen'>(</span><span class='id identifier rubyid_sym'>sym</span><span class='rparen'>)</span> <span class='rbrace'>}</span> <span class='kw'>then</span>
317
411
  <span class='id identifier rubyid_user'>user</span> <span class='op'>=</span> <span class='const'>User</span><span class='period'>.</span><span class='id identifier rubyid_find_by_user_name'>find_by_user_name</span><span class='lparen'>(</span><span class='id identifier rubyid_cmd_opts'>cmd_opts</span><span class='lbracket'>[</span><span class='symbol'>:user_name</span><span class='rbracket'>]</span><span class='rparen'>)</span>
318
412
  <span class='id identifier rubyid_vs'>vs</span> <span class='op'>=</span> <span class='id identifier rubyid_user'>user</span><span class='period'>.</span><span class='id identifier rubyid_verification_suites'>verification_suites</span><span class='period'>.</span><span class='id identifier rubyid_create'>create</span><span class='lparen'>(</span><span class='label'>name:</span> <span class='id identifier rubyid_cmd_opts'>cmd_opts</span><span class='lbracket'>[</span><span class='symbol'>:name</span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='label'>description:</span> <span class='id identifier rubyid_cmd_opts'>cmd_opts</span><span class='lbracket'>[</span><span class='symbol'>:description</span><span class='rbracket'>]</span><span class='rparen'>)</span>
@@ -323,7 +417,7 @@
323
417
  <span class='id identifier rubyid_abort'>abort</span><span class='lparen'>(</span><span class='rparen'>)</span>
324
418
  <span class='kw'>end</span>
325
419
  <span class='kw'>else</span>
326
- <span class='id identifier rubyid_raise_error'>raise_error</span>
420
+ <span class='id identifier rubyid_raise_error'>raise_error</span><span class='lparen'>(</span><span class='id identifier rubyid_cmd'>cmd</span><span class='rparen'>)</span>
327
421
  <span class='kw'>end</span>
328
422
  <span class='kw'>end</span></pre>
329
423
  </td>
@@ -340,44 +434,74 @@
340
434
 
341
435
 
342
436
 
343
- </h3><table class="source_code">
437
+ </h3><div class="docstring">
438
+ <div class="discussion">
439
+
440
+ <p>This sub-command removes a User from the Testing Framework system</p>
441
+
442
+ <p>Required Parameters are:</p>
443
+
444
+ <pre class="code ruby"><code>--user-name [String]</code></pre>
445
+
446
+ <p>'--user-name' is the assigned user_name of the User you wish to delete.</p>
447
+
448
+ <p>Optional Flags are:</p>
449
+
450
+ <pre class="code ruby"><code><span class='op'>-</span><span class='op'>-</span><span class='id identifier rubyid_delete'>delete</span><span class='op'>-</span><span class='id identifier rubyid_all'>all</span><span class='op'>|</span><span class='op'>-</span><span class='op'>-</span><span class='id identifier rubyid_no'>no</span><span class='op'>-</span><span class='id identifier rubyid_delete'>delete</span><span class='op'>-</span><span class='id identifier rubyid_all'>all</span></code></pre>
451
+
452
+ <p>By default this command will delete <b>all</b> Verification Suites owned by
453
+ the deleted user. The default behaviour is as if the sub-command had been
454
+ invoked passing the '--delete-all' flag explicitly.</p>
455
+
456
+ <p>To delete the user, but <b>keep</b> their VS, pass the '--no-delete-all'
457
+ flag. This flag will find all Verification Suites owned by the user being
458
+ deleted, and reassign them to 'Library Owner' (user_name: library_owner)
459
+ which is the generic in-house User shipped with DTF.</p>
460
+
461
+
462
+ </div>
463
+ </div>
464
+ <div class="tags">
465
+
466
+
467
+ </div><table class="source_code">
344
468
  <tr>
345
469
  <td>
346
470
  <pre class="lines">
347
471
 
348
472
 
349
- 32
350
- 33
351
- 34
352
- 35
353
- 36
354
- 37
355
- 38
356
- 39
357
- 40
358
- 41
359
- 42
360
- 43
361
- 44
362
- 45
363
- 46
364
- 47
365
- 48
366
- 49
367
- 50
368
- 51
369
- 52
370
- 53
371
- 54
372
- 55
373
- 56
374
- 57
375
- 58
376
- 59
377
- 60</pre>
473
+ 86
474
+ 87
475
+ 88
476
+ 89
477
+ 90
478
+ 91
479
+ 92
480
+ 93
481
+ 94
482
+ 95
483
+ 96
484
+ 97
485
+ 98
486
+ 99
487
+ 100
488
+ 101
489
+ 102
490
+ 103
491
+ 104
492
+ 105
493
+ 106
494
+ 107
495
+ 108
496
+ 109
497
+ 110
498
+ 111
499
+ 112
500
+ 113
501
+ 114</pre>
378
502
  </td>
379
503
  <td>
380
- <pre class="code"><span class="info file"># File 'lib/dtf.rb', line 32</span>
504
+ <pre class="code"><span class="info file"># File 'lib/dtf.rb', line 86</span>
381
505
 
382
506
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_delete_user'>delete_user</span><span class='lparen'>(</span><span class='id identifier rubyid_cmd'>cmd</span><span class='comma'>,</span> <span class='id identifier rubyid_cmd_opts'>cmd_opts</span><span class='rparen'>)</span>
383
507
  <span class='kw'>if</span> <span class='lbracket'>[</span><span class='symbol'>:user_name_given</span><span class='comma'>,</span> <span class='symbol'>:delete_all</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_all?'>all?</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_sym'>sym</span><span class='op'>|</span> <span class='id identifier rubyid_cmd_opts'>cmd_opts</span><span class='period'>.</span><span class='id identifier rubyid_key?'>key?</span><span class='lparen'>(</span><span class='id identifier rubyid_sym'>sym</span><span class='rparen'>)</span> <span class='rbrace'>}</span> <span class='kw'>then</span>
@@ -405,7 +529,7 @@
405
529
  <span class='kw'>end</span>
406
530
  <span class='kw'>end</span>
407
531
  <span class='kw'>else</span>
408
- <span class='id identifier rubyid_raise_error'>raise_error</span>
532
+ <span class='id identifier rubyid_raise_error'>raise_error</span><span class='lparen'>(</span><span class='id identifier rubyid_cmd'>cmd</span><span class='rparen'>)</span>
409
533
  <span class='kw'>end</span>
410
534
  <span class='kw'>end</span></pre>
411
535
  </td>
@@ -422,25 +546,45 @@
422
546
 
423
547
 
424
548
 
425
- </h3><table class="source_code">
549
+ </h3><div class="docstring">
550
+ <div class="discussion">
551
+
552
+ <p>This sub-command removes a Verification Suite from the Testing Framework
553
+ system</p>
554
+
555
+ <p>Required Parameters are:</p>
556
+
557
+ <pre class="code ruby"><code>--user-name [String], --id [Integer]</code></pre>
558
+
559
+ <p>The '--user-name' parameter is the user_name of the User that owns the
560
+ Verification Suite you wish to delete The '--id' parameter is the ID # of
561
+ the Verification Suite you wish to delete, as provided by @vs.id</p>
562
+
563
+
564
+ </div>
565
+ </div>
566
+ <div class="tags">
567
+
568
+
569
+ </div><table class="source_code">
426
570
  <tr>
427
571
  <td>
428
572
  <pre class="lines">
429
573
 
430
574
 
431
- 77
432
- 78
433
- 79
434
- 80
435
- 81
436
- 82
437
- 83
438
- 84
439
- 85
440
- 86</pre>
575
+ 152
576
+ 153
577
+ 154
578
+ 155
579
+ 156
580
+ 157
581
+ 158
582
+ 159
583
+ 160
584
+ 161</pre>
441
585
  </td>
442
586
  <td>
443
- <pre class="code"><span class="info file"># File 'lib/dtf.rb', line 77</span>
587
+ <pre class="code"><span class="info file"># File 'lib/dtf.rb', line 152</span>
444
588
 
445
589
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_delete_vs'>delete_vs</span><span class='lparen'>(</span><span class='id identifier rubyid_cmd'>cmd</span><span class='comma'>,</span> <span class='id identifier rubyid_cmd_opts'>cmd_opts</span><span class='rparen'>)</span>
446
590
  <span class='kw'>if</span> <span class='lbracket'>[</span><span class='symbol'>:user_name_given</span><span class='comma'>,</span> <span class='symbol'>:id_given</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_all?'>all?</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_sym'>sym</span><span class='op'>|</span> <span class='id identifier rubyid_cmd_opts'>cmd_opts</span><span class='period'>.</span><span class='id identifier rubyid_key?'>key?</span><span class='lparen'>(</span><span class='id identifier rubyid_sym'>sym</span><span class='rparen'>)</span> <span class='rbrace'>}</span> <span class='kw'>then</span>
@@ -449,7 +593,87 @@
449
593
  <span class='id identifier rubyid_vs'>vs</span> <span class='op'>=</span> <span class='id identifier rubyid_user'>user</span><span class='period'>.</span><span class='id identifier rubyid_verification_suites'>verification_suites</span><span class='period'>.</span><span class='id identifier rubyid_find'>find</span><span class='lparen'>(</span><span class='id identifier rubyid_cmd_opts'>cmd_opts</span><span class='lbracket'>[</span><span class='symbol'>:id</span><span class='rbracket'>]</span><span class='rparen'>)</span>
450
594
  <span class='const'>VerificationSuite</span><span class='period'>.</span><span class='id identifier rubyid_delete'>delete</span><span class='lparen'>(</span><span class='id identifier rubyid_vs'>vs</span><span class='rparen'>)</span>
451
595
  <span class='kw'>else</span>
452
- <span class='id identifier rubyid_raise_error'>raise_error</span>
596
+ <span class='id identifier rubyid_raise_error'>raise_error</span><span class='lparen'>(</span><span class='id identifier rubyid_cmd'>cmd</span><span class='rparen'>)</span>
597
+ <span class='kw'>end</span>
598
+ <span class='kw'>end</span></pre>
599
+ </td>
600
+ </tr>
601
+ </table>
602
+ </div>
603
+
604
+ <div class="method_details ">
605
+ <h3 class="signature " id="process-class_method">
606
+
607
+ + (<tt>Object</tt>) <strong>process</strong>(cmd, cmd_opts)
608
+
609
+
610
+
611
+
612
+
613
+ </h3><div class="docstring">
614
+ <div class="discussion">
615
+
616
+ <p>Process both the requested command and all/any parameters. NOTE: This
617
+ method is the 'master' method. It parses @cmd for which sub-command to
618
+ execute and then hands off to the appropriate method. All methods are a 1:1
619
+ match in their name. e.g 'create_user' sub-command is matched to the
620
+ 'create_user' method of this class.</p>
621
+
622
+ <p>This method requires, and processes, 2 arguments. The 'cmd' to process, and
623
+ any 'cmd_opts' of that sub-command.</p>
624
+
625
+
626
+ </div>
627
+ </div>
628
+ <div class="tags">
629
+
630
+
631
+ </div><table class="source_code">
632
+ <tr>
633
+ <td>
634
+ <pre class="lines">
635
+
636
+
637
+ 19
638
+ 20
639
+ 21
640
+ 22
641
+ 23
642
+ 24
643
+ 25
644
+ 26
645
+ 27
646
+ 28
647
+ 29
648
+ 30
649
+ 31
650
+ 32
651
+ 33
652
+ 34
653
+ 35
654
+ 36
655
+ 37</pre>
656
+ </td>
657
+ <td>
658
+ <pre class="code"><span class="info file"># File 'lib/dtf.rb', line 19</span>
659
+
660
+ <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_process'>process</span><span class='lparen'>(</span><span class='id identifier rubyid_cmd'>cmd</span><span class='comma'>,</span> <span class='id identifier rubyid_cmd_opts'>cmd_opts</span><span class='rparen'>)</span>
661
+ <span class='kw'>case</span> <span class='id identifier rubyid_cmd'>cmd</span>
662
+ <span class='kw'>when</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>create_user</span><span class='tstring_end'>&quot;</span></span>
663
+ <span class='id identifier rubyid_create_user'>create_user</span><span class='lparen'>(</span><span class='id identifier rubyid_cmd'>cmd</span><span class='comma'>,</span> <span class='id identifier rubyid_cmd_opts'>cmd_opts</span><span class='rparen'>)</span>
664
+
665
+ <span class='kw'>when</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>delete_user</span><span class='tstring_end'>&quot;</span></span>
666
+ <span class='id identifier rubyid_delete_user'>delete_user</span><span class='lparen'>(</span><span class='id identifier rubyid_cmd'>cmd</span><span class='comma'>,</span> <span class='id identifier rubyid_cmd_opts'>cmd_opts</span><span class='rparen'>)</span>
667
+
668
+ <span class='kw'>when</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>create_vs</span><span class='tstring_end'>&quot;</span></span>
669
+ <span class='id identifier rubyid_create_vs'>create_vs</span><span class='lparen'>(</span><span class='id identifier rubyid_cmd'>cmd</span><span class='comma'>,</span> <span class='id identifier rubyid_cmd_opts'>cmd_opts</span><span class='rparen'>)</span>
670
+
671
+ <span class='kw'>when</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>delete_vs</span><span class='tstring_end'>&quot;</span></span>
672
+ <span class='id identifier rubyid_delete_vs'>delete_vs</span><span class='lparen'>(</span><span class='id identifier rubyid_cmd'>cmd</span><span class='comma'>,</span> <span class='id identifier rubyid_cmd_opts'>cmd_opts</span><span class='rparen'>)</span>
673
+
674
+ <span class='kw'>else</span>
675
+ <span class='gvar'>$stderr</span><span class='period'>.</span><span class='id identifier rubyid_puts'>puts</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Unknown DTF sub-command: </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_cmd'>cmd</span><span class='period'>.</span><span class='id identifier rubyid_inspect'>inspect</span><span class='rbrace'>}</span><span class='tstring_end'>&quot;</span></span>
676
+ <span class='id identifier rubyid_abort'>abort</span><span class='lparen'>(</span><span class='rparen'>)</span>
453
677
  <span class='kw'>end</span>
454
678
  <span class='kw'>end</span></pre>
455
679
  </td>
@@ -462,7 +686,7 @@
462
686
  </div>
463
687
 
464
688
  <div id="footer">
465
- Generated on Fri Sep 14 22:41:21 2012 by
689
+ Generated on Sun Sep 16 12:04:53 2012 by
466
690
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
467
691
  0.8.2.1 (ruby-1.9.3).
468
692
  </div>