fluent_command_builder 0.1.5 → 0.1.6

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.
Files changed (28) hide show
  1. data/lib/fluent_command_builder.rb +2 -1
  2. data/lib/fluent_command_builder/command_builder.rb +1 -1
  3. data/lib/fluent_command_builder/command_builders/aspnet_compiler_20.rb +31 -58
  4. data/lib/fluent_command_builder/command_builders/aspnet_compiler_35.rb +31 -58
  5. data/lib/fluent_command_builder/command_builders/aspnet_compiler_40.rb +31 -58
  6. data/lib/fluent_command_builder/command_builders/cucumber_11.rb +38 -76
  7. data/lib/fluent_command_builder/command_builders/dotcover_11.rb +81 -155
  8. data/lib/fluent_command_builder/command_builders/installutil_11.rb +18 -35
  9. data/lib/fluent_command_builder/command_builders/installutil_20.rb +21 -38
  10. data/lib/fluent_command_builder/command_builders/installutil_35.rb +21 -38
  11. data/lib/fluent_command_builder/command_builders/installutil_40.rb +24 -41
  12. data/lib/fluent_command_builder/command_builders/msbuild_20.rb +24 -48
  13. data/lib/fluent_command_builder/command_builders/msbuild_30.rb +24 -48
  14. data/lib/fluent_command_builder/command_builders/msbuild_35.rb +32 -64
  15. data/lib/fluent_command_builder/command_builders/msbuild_40.rb +37 -156
  16. data/lib/fluent_command_builder/command_builders/msdeploy_40.rb +39 -78
  17. data/lib/fluent_command_builder/command_builders/mstest_2005.rb +25 -50
  18. data/lib/fluent_command_builder/command_builders/mstest_2008.rb +26 -52
  19. data/lib/fluent_command_builder/command_builders/mstest_2010.rb +29 -58
  20. data/lib/fluent_command_builder/command_builders/netsh_2008.rb +105 -204
  21. data/lib/fluent_command_builder/command_builders/nunit_25.rb +103 -0
  22. data/lib/fluent_command_builder/command_builders/rake_09.rb +32 -64
  23. data/lib/fluent_command_builder/command_builders/sevenzip_92.rb +428 -0
  24. data/lib/fluent_command_builder/command_builders/simian_23.rb +32 -64
  25. data/lib/fluent_command_builder/command_builders/tf_2010.rb +502 -969
  26. data/lib/fluent_command_builder/command_builders/tf_tee_2010.rb +483 -930
  27. metadata +4 -3
  28. data/lib/fluent_command_builder/command_builders/nunit_console_25.rb +0 -137
@@ -4,1931 +4,1484 @@ module FluentCommandBuilder
4
4
  module Tf
5
5
  module TEE_2010
6
6
  class Tf
7
- def initialize command=nil
8
- @b = CommandBuilder.new command
9
- @b.append 'tf'
10
- self
7
+ def initialize builder
8
+ @builder = builder
9
+ @builder.append 'tf'
11
10
  end
12
-
13
11
  def add
14
- Add.new self
12
+ Add.new @builder
15
13
  end
16
-
17
14
  def branch
18
- Branch.new self
15
+ Branch.new @builder
19
16
  end
20
-
21
17
  def branches
22
- Branches.new self
18
+ Branches.new @builder
23
19
  end
24
-
25
20
  def changeset
26
- Changeset.new self
21
+ Changeset.new @builder
27
22
  end
28
-
29
23
  def checkin
30
- Checkin.new self
24
+ Checkin.new @builder
31
25
  end
32
-
33
26
  def checkout
34
- Checkout.new self
27
+ Checkout.new @builder
35
28
  end
36
-
37
29
  def delete
38
- Delete.new self
30
+ Delete.new @builder
39
31
  end
40
-
41
32
  def destroy
42
- @b.append 'destroy'
33
+ @builder.append ' destroy'
43
34
  self
44
35
  end
45
-
46
36
  def diff
47
- Diff.new self
37
+ Diff.new @builder
48
38
  end
49
-
50
39
  def dir
51
- Dir.new self
40
+ Dir.new @builder
52
41
  end
53
-
54
42
  def eula
55
- Eula.new self
43
+ Eula.new @builder
56
44
  end
57
-
58
45
  def get
59
- Get.new self
46
+ Get.new @builder
60
47
  end
61
-
62
48
  def getcs
63
- Getcs.new self
49
+ Getcs.new @builder
64
50
  end
65
-
66
51
  def history
67
- History.new self
52
+ History.new @builder
68
53
  end
69
-
70
54
  def label
71
- Label.new self
55
+ Label.new @builder
72
56
  end
73
-
74
57
  def labels
75
- Labels.new self
58
+ Labels.new @builder
76
59
  end
77
-
78
60
  def lock
79
- Lock.new self
61
+ Lock.new @builder
80
62
  end
81
-
82
63
  def merge
83
- Merge.new self
64
+ Merge.new @builder
84
65
  end
85
-
86
66
  def merges
87
- Merges.new self
67
+ Merges.new @builder
88
68
  end
89
-
90
69
  def print
91
- Print.new self
70
+ Print.new @builder
92
71
  end
93
-
94
72
  def product_key
95
- ProductKey.new self
73
+ ProductKey.new @builder
96
74
  end
97
-
98
75
  def profile
99
- Profile.new self
76
+ Profile.new @builder
100
77
  end
101
-
102
78
  def profiles
103
- Profiles.new self
79
+ Profiles.new @builder
104
80
  end
105
-
106
81
  def properties
107
- Properties.new self
82
+ Properties.new @builder
108
83
  end
109
-
110
84
  def reconcile
111
- Reconcile.new self
85
+ Reconcile.new @builder
112
86
  end
113
-
114
87
  def rename
115
- Rename.new self
88
+ Rename.new @builder
116
89
  end
117
-
118
90
  def resolve
119
- Resolve.new self
91
+ Resolve.new @builder
120
92
  end
121
-
122
93
  def shelve
123
- Shelve.new self
94
+ Shelve.new @builder
124
95
  end
125
-
126
96
  def shelvesets
127
- Shelvesets.new self
97
+ Shelvesets.new @builder
128
98
  end
129
-
130
99
  def status
131
- Status.new self
100
+ Status.new @builder
132
101
  end
133
-
134
102
  def undelete
135
- Undelete.new self
103
+ Undelete.new @builder
136
104
  end
137
-
138
105
  def undo
139
- Undo.new self
106
+ Undo.new @builder
140
107
  end
141
-
142
108
  def unlabel
143
- Unlabel.new self
109
+ Unlabel.new @builder
144
110
  end
145
-
146
111
  def unshelve
147
- Unshelve.new self
112
+ Unshelve.new @builder
148
113
  end
149
-
150
114
  def workfold
151
- Workfold.new self
115
+ Workfold.new @builder
152
116
  end
153
-
154
117
  def workspace
155
- Workspace.new self
118
+ Workspace.new @builder
156
119
  end
157
-
158
120
  def workspaces
159
- Workspaces.new self
121
+ Workspaces.new @builder
160
122
  end
161
-
162
- def to_s
163
- @b.to_s
123
+ def to_s
124
+ @builder.to_s
164
125
  end
165
-
166
126
  end
167
-
168
127
  class Add
169
- def initialize command=nil
170
- @b = CommandBuilder.new command
171
- @b.append 'add'
172
- self
128
+ def initialize builder
129
+ @builder = builder
130
+ @builder.append ' add'
173
131
  end
174
-
175
132
  def item_spec item_spec
176
- @b.append "#{@b.format item_spec}"
133
+ @builder.append " #{@builder.format item_spec}"
177
134
  self
178
135
  end
179
-
180
136
  def lock lock_type
181
- @b.append "-lock:#{@b.format lock_type}"
137
+ @builder.append " -lock:#{@builder.format lock_type}"
182
138
  self
183
139
  end
184
-
185
140
  def type file_type
186
- @b.append "-type:#{@b.format file_type}"
141
+ @builder.append " -type:#{@builder.format file_type}"
187
142
  self
188
143
  end
189
-
190
144
  def no_prompt
191
- @b.append '-noPrompt'
145
+ @builder.append ' -noPrompt'
192
146
  self
193
147
  end
194
-
195
148
  def recursive
196
- @b.append '-recursive'
149
+ @builder.append ' -recursive'
197
150
  self
198
151
  end
199
-
200
152
  def login credentials
201
- @b.append "-login:#{@b.format credentials}"
153
+ @builder.append " -login:#{@builder.format credentials}"
202
154
  self
203
155
  end
204
-
205
- def to_s
206
- @b.to_s
156
+ def to_s
157
+ @builder.to_s
207
158
  end
208
-
209
159
  end
210
-
211
160
  class Branch
212
- def initialize command=nil
213
- @b = CommandBuilder.new command
214
- @b.append 'branch'
215
- self
161
+ def initialize builder
162
+ @builder = builder
163
+ @builder.append ' branch'
216
164
  end
217
-
218
165
  def old_item old_item
219
- @b.append "#{@b.format old_item}"
166
+ @builder.append " #{@builder.format old_item}"
220
167
  self
221
168
  end
222
-
223
169
  def new_item new_item
224
- @b.append "#{@b.format new_item}"
170
+ @builder.append " #{@builder.format new_item}"
225
171
  self
226
172
  end
227
-
228
173
  def version version_spec
229
- @b.append "-version:#{@b.format version_spec}"
174
+ @builder.append " -version:#{@builder.format version_spec}"
230
175
  self
231
176
  end
232
-
233
177
  def no_get
234
- @b.append '-noGet'
178
+ @builder.append ' -noGet'
235
179
  self
236
180
  end
237
-
238
181
  def lock lock_type
239
- @b.append "-lock:#{@b.format lock_type}"
182
+ @builder.append " -lock:#{@builder.format lock_type}"
240
183
  self
241
184
  end
242
-
243
185
  def no_prompt
244
- @b.append '-noPrompt'
186
+ @builder.append ' -noPrompt'
245
187
  self
246
188
  end
247
-
248
189
  def silent
249
- @b.append '-silent'
190
+ @builder.append ' -silent'
250
191
  self
251
192
  end
252
-
253
193
  def checkin
254
- @b.append '-checkin'
194
+ @builder.append ' -checkin'
255
195
  self
256
196
  end
257
-
258
197
  def comment comment
259
- @b.append "-comment:#{@b.format comment}"
198
+ @builder.append " -comment:#{@builder.format comment}"
260
199
  self
261
200
  end
262
-
263
201
  def author author_name
264
- @b.append "-author:#{@b.format author_name}"
202
+ @builder.append " -author:#{@builder.format author_name}"
265
203
  self
266
204
  end
267
-
268
205
  def login credentials
269
- @b.append "-login:#{@b.format credentials}"
206
+ @builder.append " -login:#{@builder.format credentials}"
270
207
  self
271
208
  end
272
-
273
- def to_s
274
- @b.to_s
209
+ def to_s
210
+ @builder.to_s
275
211
  end
276
-
277
212
  end
278
-
279
213
  class Branches
280
- def initialize command=nil
281
- @b = CommandBuilder.new command
282
- @b.append 'branches'
283
- self
214
+ def initialize builder
215
+ @builder = builder
216
+ @builder.append ' branches'
284
217
  end
285
-
286
218
  def item_spec item_spec
287
- @b.append "#{@b.format item_spec}"
219
+ @builder.append " #{@builder.format item_spec}"
288
220
  self
289
221
  end
290
-
291
222
  def version version_spec
292
- @b.append "-version:#{@b.format version_spec}"
223
+ @builder.append " -version:#{@builder.format version_spec}"
293
224
  self
294
225
  end
295
-
296
226
  def collection team_project_collection_url
297
- @b.append "-collection:#{@b.format team_project_collection_url}"
227
+ @builder.append " -collection:#{@builder.format team_project_collection_url}"
298
228
  self
299
229
  end
300
-
301
230
  def login credentials
302
- @b.append "-login:#{@b.format credentials}"
231
+ @builder.append " -login:#{@builder.format credentials}"
303
232
  self
304
233
  end
305
-
306
- def to_s
307
- @b.to_s
234
+ def to_s
235
+ @builder.to_s
308
236
  end
309
-
310
237
  end
311
-
312
238
  class Changeset
313
- def initialize command=nil
314
- @b = CommandBuilder.new command
315
- @b.append 'changeset'
316
- self
239
+ def initialize builder
240
+ @builder = builder
241
+ @builder.append ' changeset'
317
242
  end
318
-
319
243
  def comment comment
320
- @b.append "-comment:#{@b.format comment}"
244
+ @builder.append " -comment:#{@builder.format comment}"
321
245
  self
322
246
  end
323
-
324
247
  def notes notes
325
- @b.append "-notes:#{@b.format notes}"
248
+ @builder.append " -notes:#{@builder.format notes}"
326
249
  self
327
250
  end
328
-
329
251
  def no_prompt
330
- @b.append '-noPrompt'
252
+ @builder.append ' -noPrompt'
331
253
  self
332
254
  end
333
-
334
255
  def collection team_project_collection_url
335
- @b.append "-collection:#{@b.format team_project_collection_url}"
256
+ @builder.append " -collection:#{@builder.format team_project_collection_url}"
336
257
  self
337
258
  end
338
-
339
259
  def changeset_number changeset_number
340
- @b.append "#{@b.format changeset_number}"
260
+ @builder.append " #{@builder.format changeset_number}"
341
261
  self
342
262
  end
343
-
344
263
  def latest
345
- @b.append '-latest'
264
+ @builder.append ' -latest'
346
265
  self
347
266
  end
348
-
349
267
  def login credentials
350
- @b.append "-login:#{@b.format credentials}"
268
+ @builder.append " -login:#{@builder.format credentials}"
351
269
  self
352
270
  end
353
-
354
- def to_s
355
- @b.to_s
271
+ def to_s
272
+ @builder.to_s
356
273
  end
357
-
358
274
  end
359
-
360
275
  class Checkin
361
- def initialize command=nil
362
- @b = CommandBuilder.new command
363
- @b.append 'checkin'
364
- self
276
+ def initialize builder
277
+ @builder = builder
278
+ @builder.append ' checkin'
365
279
  end
366
-
367
280
  def author author_name
368
- @b.append "-author:#{@b.format author_name}"
281
+ @builder.append " -author:#{@builder.format author_name}"
369
282
  self
370
283
  end
371
-
372
284
  def comment comment
373
- @b.append "-comment:#{@b.format comment}"
285
+ @builder.append " -comment:#{@builder.format comment}"
374
286
  self
375
287
  end
376
-
377
288
  def no_prompt
378
- @b.append '-noPrompt'
289
+ @builder.append ' -noPrompt'
379
290
  self
380
291
  end
381
-
382
292
  def notes notes
383
- @b.append "-notes:#{@b.format notes}"
293
+ @builder.append " -notes:#{@builder.format notes}"
384
294
  self
385
295
  end
386
-
387
296
  def override reason
388
- @b.append "-override:#{@b.format reason}"
297
+ @builder.append " -override:#{@builder.format reason}"
389
298
  self
390
299
  end
391
-
392
300
  def recursive
393
- @b.append '-recursive'
301
+ @builder.append ' -recursive'
394
302
  self
395
303
  end
396
-
397
304
  def saved
398
- @b.append '-saved'
305
+ @builder.append ' -saved'
399
306
  self
400
307
  end
401
-
402
308
  def validate
403
- @b.append '-validate'
309
+ @builder.append ' -validate'
404
310
  self
405
311
  end
406
-
407
312
  def item_spec item_spec
408
- @b.append "#{@b.format item_spec}"
313
+ @builder.append " #{@builder.format item_spec}"
409
314
  self
410
315
  end
411
-
412
316
  def bypass
413
- @b.append '-bypass'
317
+ @builder.append ' -bypass'
414
318
  self
415
319
  end
416
-
417
320
  def login credentials
418
- @b.append "-login:#{@b.format credentials}"
321
+ @builder.append " -login:#{@builder.format credentials}"
419
322
  self
420
323
  end
421
-
422
324
  def shelveset shelveset_name
423
- @b.append "-shelveset:#{@b.format shelveset_name}"
325
+ @builder.append " -shelveset:#{@builder.format shelveset_name}"
424
326
  self
425
327
  end
426
-
427
328
  def collection team_project_collection_url
428
- @b.append "-collection:#{@b.format team_project_collection_url}"
329
+ @builder.append " -collection:#{@builder.format team_project_collection_url}"
429
330
  self
430
331
  end
431
-
432
332
  def force
433
- @b.append '-force'
333
+ @builder.append ' -force'
434
334
  self
435
335
  end
436
-
437
- def to_s
438
- @b.to_s
336
+ def to_s
337
+ @builder.to_s
439
338
  end
440
-
441
339
  end
442
-
443
340
  class Checkout
444
- def initialize command=nil
445
- @b = CommandBuilder.new command
446
- @b.append 'checkout'
447
- self
341
+ def initialize builder
342
+ @builder = builder
343
+ @builder.append ' checkout'
448
344
  end
449
-
450
345
  def lock lock_type
451
- @b.append "-lock:#{@b.format lock_type}"
346
+ @builder.append " -lock:#{@builder.format lock_type}"
452
347
  self
453
348
  end
454
-
455
349
  def recursive
456
- @b.append '-recursive'
350
+ @builder.append ' -recursive'
457
351
  self
458
352
  end
459
-
460
353
  def type encoding
461
- @b.append "-type:#{@b.format encoding}"
354
+ @builder.append " -type:#{@builder.format encoding}"
462
355
  self
463
356
  end
464
-
465
357
  def item_spec item_spec
466
- @b.append "#{@b.format item_spec}"
358
+ @builder.append " #{@builder.format item_spec}"
467
359
  self
468
360
  end
469
-
470
361
  def login credentials
471
- @b.append "-login:#{@b.format credentials}"
362
+ @builder.append " -login:#{@builder.format credentials}"
472
363
  self
473
364
  end
474
-
475
- def to_s
476
- @b.to_s
365
+ def to_s
366
+ @builder.to_s
477
367
  end
478
-
479
368
  end
480
-
481
369
  class Delete
482
- def initialize command=nil
483
- @b = CommandBuilder.new command
484
- @b.append 'delete'
485
- self
370
+ def initialize builder
371
+ @builder = builder
372
+ @builder.append ' delete'
486
373
  end
487
-
488
374
  def lock lock_type
489
- @b.append "-lock:#{@b.format lock_type}"
375
+ @builder.append " -lock:#{@builder.format lock_type}"
490
376
  self
491
377
  end
492
-
493
378
  def recursive
494
- @b.append '-recursive'
379
+ @builder.append ' -recursive'
495
380
  self
496
381
  end
497
-
498
382
  def login credentials
499
- @b.append "-login:#{@b.format credentials}"
383
+ @builder.append " -login:#{@builder.format credentials}"
500
384
  self
501
385
  end
502
-
503
386
  def item_spec item_spec
504
- @b.append "#{@b.format item_spec}"
387
+ @builder.append " #{@builder.format item_spec}"
505
388
  self
506
389
  end
507
-
508
- def to_s
509
- @b.to_s
390
+ def to_s
391
+ @builder.to_s
510
392
  end
511
-
512
393
  end
513
-
514
394
  class Diff
515
- def initialize command=nil
516
- @b = CommandBuilder.new command
517
- @b.append 'diff'
518
- self
395
+ def initialize builder
396
+ @builder = builder
397
+ @builder.append ' diff'
519
398
  end
520
-
521
399
  def item_spec item_spec
522
- @b.append "#{@b.format item_spec}"
400
+ @builder.append " #{@builder.format item_spec}"
523
401
  self
524
402
  end
525
-
526
403
  def item_spec2 item_spec2
527
- @b.append "#{@b.format item_spec2}"
404
+ @builder.append " #{@builder.format item_spec2}"
528
405
  self
529
406
  end
530
-
531
407
  def version version_spec
532
- @b.append "-version:#{@b.format version_spec}"
408
+ @builder.append " -version:#{@builder.format version_spec}"
533
409
  self
534
410
  end
535
-
536
411
  def type file_type
537
- @b.append "-type:#{@b.format file_type}"
412
+ @builder.append " -type:#{@builder.format file_type}"
538
413
  self
539
414
  end
540
-
541
415
  def format format
542
- @b.append "-format:#{@b.format format}"
416
+ @builder.append " -format:#{@builder.format format}"
543
417
  self
544
418
  end
545
-
546
419
  def ignore_space
547
- @b.append '-ignoreSpace'
420
+ @builder.append ' -ignoreSpace'
548
421
  self
549
422
  end
550
-
551
423
  def ignore_eol
552
- @b.append '-ignoreEol'
424
+ @builder.append ' -ignoreEol'
553
425
  self
554
426
  end
555
-
556
427
  def ignore_case
557
- @b.append '-ignoreCase'
428
+ @builder.append ' -ignoreCase'
558
429
  self
559
430
  end
560
-
561
431
  def recursive
562
- @b.append '-recursive'
432
+ @builder.append ' -recursive'
563
433
  self
564
434
  end
565
-
566
435
  def options
567
- @b.append '-options'
436
+ @builder.append ' -options'
568
437
  self
569
438
  end
570
-
571
439
  def no_prompt
572
- @b.append '-noPrompt'
440
+ @builder.append ' -noPrompt'
573
441
  self
574
442
  end
575
-
576
443
  def login credentials
577
- @b.append "-login:#{@b.format credentials}"
444
+ @builder.append " -login:#{@builder.format credentials}"
578
445
  self
579
446
  end
580
-
581
447
  def shelveset shelveset_name
582
- @b.append "-shelveset:#{@b.format shelveset_name}"
448
+ @builder.append " -shelveset:#{@builder.format shelveset_name}"
583
449
  self
584
450
  end
585
-
586
451
  def shelveset_itemspec shelveset_itemspec
587
- @b.append "#{@b.format shelveset_itemspec}"
452
+ @builder.append " #{@builder.format shelveset_itemspec}"
588
453
  self
589
454
  end
590
-
591
455
  def configure
592
- @b.append '-configure'
456
+ @builder.append ' -configure'
593
457
  self
594
458
  end
595
-
596
- def to_s
597
- @b.to_s
459
+ def to_s
460
+ @builder.to_s
598
461
  end
599
-
600
462
  end
601
-
602
463
  class Dir
603
- def initialize command=nil
604
- @b = CommandBuilder.new command
605
- @b.append 'dir'
606
- self
464
+ def initialize builder
465
+ @builder = builder
466
+ @builder.append ' dir'
607
467
  end
608
-
609
468
  def item_spec item_spec
610
- @b.append "#{@b.format item_spec}"
469
+ @builder.append " #{@builder.format item_spec}"
611
470
  self
612
471
  end
613
-
614
472
  def version version_spec
615
- @b.append "-version:#{@b.format version_spec}"
473
+ @builder.append " -version:#{@builder.format version_spec}"
616
474
  self
617
475
  end
618
-
619
476
  def recursive
620
- @b.append '-recursive'
477
+ @builder.append ' -recursive'
621
478
  self
622
479
  end
623
-
624
480
  def folders
625
- @b.append '-folders'
481
+ @builder.append ' -folders'
626
482
  self
627
483
  end
628
-
629
484
  def deleted
630
- @b.append '-deleted'
485
+ @builder.append ' -deleted'
631
486
  self
632
487
  end
633
-
634
488
  def login credentials
635
- @b.append "-login:#{@b.format credentials}"
489
+ @builder.append " -login:#{@builder.format credentials}"
636
490
  self
637
491
  end
638
-
639
492
  def collection team_project_collection_url
640
- @b.append "-collection:#{@b.format team_project_collection_url}"
493
+ @builder.append " -collection:#{@builder.format team_project_collection_url}"
641
494
  self
642
495
  end
643
-
644
- def to_s
645
- @b.to_s
496
+ def to_s
497
+ @builder.to_s
646
498
  end
647
-
648
499
  end
649
-
650
500
  class Eula
651
- def initialize command=nil
652
- @b = CommandBuilder.new command
653
- @b.append 'eula'
654
- self
501
+ def initialize builder
502
+ @builder = builder
503
+ @builder.append ' eula'
655
504
  end
656
-
657
505
  def accept
658
- @b.append '-accept'
506
+ @builder.append ' -accept'
659
507
  self
660
508
  end
661
-
662
- def to_s
663
- @b.to_s
509
+ def to_s
510
+ @builder.to_s
664
511
  end
665
-
666
512
  end
667
-
668
513
  class Get
669
- def initialize command=nil
670
- @b = CommandBuilder.new command
671
- @b.append 'get'
672
- self
514
+ def initialize builder
515
+ @builder = builder
516
+ @builder.append ' get'
673
517
  end
674
-
675
518
  def item_spec item_spec
676
- @b.append "#{@b.format item_spec}"
519
+ @builder.append " #{@builder.format item_spec}"
677
520
  self
678
521
  end
679
-
680
522
  def version version_spec
681
- @b.append "-version:#{@b.format version_spec}"
523
+ @builder.append " -version:#{@builder.format version_spec}"
682
524
  self
683
525
  end
684
-
685
526
  def all
686
- @b.append '-all'
527
+ @builder.append ' -all'
687
528
  self
688
529
  end
689
-
690
530
  def overwrite
691
- @b.append '-overwrite'
531
+ @builder.append ' -overwrite'
692
532
  self
693
533
  end
694
-
695
534
  def force
696
- @b.append '-force'
535
+ @builder.append ' -force'
697
536
  self
698
537
  end
699
-
700
538
  def preview
701
- @b.append '-preview'
539
+ @builder.append ' -preview'
702
540
  self
703
541
  end
704
-
705
542
  def recursive
706
- @b.append '-recursive'
543
+ @builder.append ' -recursive'
707
544
  self
708
545
  end
709
-
710
546
  def remap
711
- @b.append '-remap'
547
+ @builder.append ' -remap'
712
548
  self
713
549
  end
714
-
715
550
  def no_prompt
716
- @b.append '-noPrompt'
551
+ @builder.append ' -noPrompt'
717
552
  self
718
553
  end
719
-
720
554
  def login credentials
721
- @b.append "-login:#{@b.format credentials}"
555
+ @builder.append " -login:#{@builder.format credentials}"
722
556
  self
723
557
  end
724
-
725
- def to_s
726
- @b.to_s
558
+ def to_s
559
+ @builder.to_s
727
560
  end
728
-
729
561
  end
730
-
731
562
  class Getcs
732
- def initialize command=nil
733
- @b = CommandBuilder.new command
734
- @b.append 'getcs'
735
- self
563
+ def initialize builder
564
+ @builder = builder
565
+ @builder.append ' getcs'
736
566
  end
737
-
738
567
  def changeset changeset_number
739
- @b.append "-changeset:#{@b.format changeset_number}"
568
+ @builder.append " -changeset:#{@builder.format changeset_number}"
740
569
  self
741
570
  end
742
-
743
571
  def latest
744
- @b.append '-latest'
572
+ @builder.append ' -latest'
745
573
  self
746
574
  end
747
-
748
- def to_s
749
- @b.to_s
575
+ def to_s
576
+ @builder.to_s
750
577
  end
751
-
752
578
  end
753
-
754
579
  class History
755
- def initialize command=nil
756
- @b = CommandBuilder.new command
757
- @b.append 'history'
758
- self
580
+ def initialize builder
581
+ @builder = builder
582
+ @builder.append ' history'
759
583
  end
760
-
761
584
  def item_spec item_spec
762
- @b.append "#{@b.format item_spec}"
585
+ @builder.append " #{@builder.format item_spec}"
763
586
  self
764
587
  end
765
-
766
588
  def version version_spec
767
- @b.append "-version:#{@b.format version_spec}"
589
+ @builder.append " -version:#{@builder.format version_spec}"
768
590
  self
769
591
  end
770
-
771
592
  def stop_after number
772
- @b.append "-stopAfter:#{@b.format number}"
593
+ @builder.append " -stopAfter:#{@builder.format number}"
773
594
  self
774
595
  end
775
-
776
596
  def recursive
777
- @b.append '-recursive'
597
+ @builder.append ' -recursive'
778
598
  self
779
599
  end
780
-
781
600
  def user user_name
782
- @b.append "-user:#{@b.format user_name}"
601
+ @builder.append " -user:#{@builder.format user_name}"
783
602
  self
784
603
  end
785
-
786
604
  def format format
787
- @b.append "-format:#{@b.format format}"
605
+ @builder.append " -format:#{@builder.format format}"
788
606
  self
789
607
  end
790
-
791
608
  def slot_mode
792
- @b.append '-slotMode'
609
+ @builder.append ' -slotMode'
793
610
  self
794
611
  end
795
-
796
612
  def item_mode
797
- @b.append '-itemMode'
613
+ @builder.append ' -itemMode'
798
614
  self
799
615
  end
800
-
801
616
  def no_prompt
802
- @b.append '-noPrompt'
617
+ @builder.append ' -noPrompt'
803
618
  self
804
619
  end
805
-
806
620
  def login credentials
807
- @b.append "-login:#{@b.format credentials}"
621
+ @builder.append " -login:#{@builder.format credentials}"
808
622
  self
809
623
  end
810
-
811
624
  def sort sort
812
- @b.append "-sort:#{@b.format sort}"
625
+ @builder.append " -sort:#{@builder.format sort}"
813
626
  self
814
627
  end
815
-
816
628
  def collection team_project_collection_url
817
- @b.append "-collection:#{@b.format team_project_collection_url}"
629
+ @builder.append " -collection:#{@builder.format team_project_collection_url}"
818
630
  self
819
631
  end
820
-
821
- def to_s
822
- @b.to_s
632
+ def to_s
633
+ @builder.to_s
823
634
  end
824
-
825
635
  end
826
-
827
636
  class Label
828
- def initialize command=nil
829
- @b = CommandBuilder.new command
830
- @b.append 'label'
831
- self
637
+ def initialize builder
638
+ @builder = builder
639
+ @builder.append ' label'
832
640
  end
833
-
834
641
  def label_name label_name
835
- @b.append "#{@b.format label_name}"
642
+ @builder.append " #{@builder.format label_name}"
836
643
  self
837
644
  end
838
-
839
645
  def owner owner_name
840
- @b.append "-owner:#{@b.format owner_name}"
646
+ @builder.append " -owner:#{@builder.format owner_name}"
841
647
  self
842
648
  end
843
-
844
649
  def item_spec item_spec
845
- @b.append "#{@b.format item_spec}"
650
+ @builder.append " #{@builder.format item_spec}"
846
651
  self
847
652
  end
848
-
849
653
  def version version_spec
850
- @b.append "-version:#{@b.format version_spec}"
654
+ @builder.append " -version:#{@builder.format version_spec}"
851
655
  self
852
656
  end
853
-
854
657
  def comment comment
855
- @b.append "-comment:#{@b.format comment}"
658
+ @builder.append " -comment:#{@builder.format comment}"
856
659
  self
857
660
  end
858
-
859
661
  def child lock_type
860
- @b.append "-child:#{@b.format lock_type}"
662
+ @builder.append " -child:#{@builder.format lock_type}"
861
663
  self
862
664
  end
863
-
864
665
  def recursive
865
- @b.append '-recursive'
666
+ @builder.append ' -recursive'
866
667
  self
867
668
  end
868
-
869
669
  def login credentials
870
- @b.append "-login:#{@b.format credentials}"
670
+ @builder.append " -login:#{@builder.format credentials}"
871
671
  self
872
672
  end
873
-
874
673
  def collection team_project_collection_url
875
- @b.append "-collection:#{@b.format team_project_collection_url}"
674
+ @builder.append " -collection:#{@builder.format team_project_collection_url}"
876
675
  self
877
676
  end
878
-
879
677
  def delete
880
- @b.append '-delete'
678
+ @builder.append ' -delete'
881
679
  self
882
680
  end
883
-
884
- def to_s
885
- @b.to_s
681
+ def to_s
682
+ @builder.to_s
886
683
  end
887
-
888
684
  end
889
-
890
685
  class Labels
891
- def initialize command=nil
892
- @b = CommandBuilder.new command
893
- @b.append 'labels'
894
- self
686
+ def initialize builder
687
+ @builder = builder
688
+ @builder.append ' labels'
895
689
  end
896
-
897
690
  def owner owner_name
898
- @b.append "-owner:#{@b.format owner_name}"
691
+ @builder.append " -owner:#{@builder.format owner_name}"
899
692
  self
900
693
  end
901
-
902
694
  def format format
903
- @b.append "-format:#{@b.format format}"
695
+ @builder.append " -format:#{@builder.format format}"
904
696
  self
905
697
  end
906
-
907
698
  def collection team_project_collection_url
908
- @b.append "-collection:#{@b.format team_project_collection_url}"
699
+ @builder.append " -collection:#{@builder.format team_project_collection_url}"
909
700
  self
910
701
  end
911
-
912
702
  def label_name label_name
913
- @b.append "#{@b.format label_name}"
703
+ @builder.append " #{@builder.format label_name}"
914
704
  self
915
705
  end
916
-
917
706
  def login credentials
918
- @b.append "-login:#{@b.format credentials}"
707
+ @builder.append " -login:#{@builder.format credentials}"
919
708
  self
920
709
  end
921
-
922
- def to_s
923
- @b.to_s
710
+ def to_s
711
+ @builder.to_s
924
712
  end
925
-
926
713
  end
927
-
928
714
  class Lock
929
- def initialize command=nil
930
- @b = CommandBuilder.new command
931
- @b.append 'lock'
932
- self
715
+ def initialize builder
716
+ @builder = builder
717
+ @builder.append ' lock'
933
718
  end
934
-
935
719
  def item_spec item_spec
936
- @b.append "#{@b.format item_spec}"
720
+ @builder.append " #{@builder.format item_spec}"
937
721
  self
938
722
  end
939
-
940
723
  def lock lock_type
941
- @b.append "-lock:#{@b.format lock_type}"
724
+ @builder.append " -lock:#{@builder.format lock_type}"
942
725
  self
943
726
  end
944
-
945
727
  def workspace workspace_name
946
- @b.append "-workspace:#{@b.format workspace_name}"
728
+ @builder.append " -workspace:#{@builder.format workspace_name}"
947
729
  self
948
730
  end
949
-
950
731
  def recursive
951
- @b.append '-recursive'
732
+ @builder.append ' -recursive'
952
733
  self
953
734
  end
954
-
955
735
  def login credentials
956
- @b.append "-login:#{@b.format credentials}"
736
+ @builder.append " -login:#{@builder.format credentials}"
957
737
  self
958
738
  end
959
-
960
739
  def collection team_project_collection_url
961
- @b.append "-collection:#{@b.format team_project_collection_url}"
740
+ @builder.append " -collection:#{@builder.format team_project_collection_url}"
962
741
  self
963
742
  end
964
-
965
- def to_s
966
- @b.to_s
743
+ def to_s
744
+ @builder.to_s
967
745
  end
968
-
969
746
  end
970
-
971
747
  class Merge
972
- def initialize command=nil
973
- @b = CommandBuilder.new command
974
- @b.append 'merge'
975
- self
748
+ def initialize builder
749
+ @builder = builder
750
+ @builder.append ' merge'
976
751
  end
977
-
978
752
  def recursive
979
- @b.append '-recursive'
753
+ @builder.append ' -recursive'
980
754
  self
981
755
  end
982
-
983
756
  def force
984
- @b.append '-force'
757
+ @builder.append ' -force'
985
758
  self
986
759
  end
987
-
988
760
  def candidate
989
- @b.append '-candidate'
761
+ @builder.append ' -candidate'
990
762
  self
991
763
  end
992
-
993
764
  def discard
994
- @b.append '-discard'
765
+ @builder.append ' -discard'
995
766
  self
996
767
  end
997
-
998
768
  def version version_spec
999
- @b.append "-version:#{@b.format version_spec}"
769
+ @builder.append " -version:#{@builder.format version_spec}"
1000
770
  self
1001
771
  end
1002
-
1003
772
  def lock lock_type
1004
- @b.append "-lock:#{@b.format lock_type}"
773
+ @builder.append " -lock:#{@builder.format lock_type}"
1005
774
  self
1006
775
  end
1007
-
1008
776
  def preview
1009
- @b.append '-preview'
777
+ @builder.append ' -preview'
1010
778
  self
1011
779
  end
1012
-
1013
780
  def baseless
1014
- @b.append '-baseless'
781
+ @builder.append ' -baseless'
1015
782
  self
1016
783
  end
1017
-
1018
784
  def no_summary
1019
- @b.append '-noSummary'
785
+ @builder.append ' -noSummary'
1020
786
  self
1021
787
  end
1022
-
1023
788
  def no_implicit_baseless
1024
- @b.append '-noImplicitBaseless'
789
+ @builder.append ' -noImplicitBaseless'
1025
790
  self
1026
791
  end
1027
-
1028
792
  def conservative
1029
- @b.append '-conservative'
793
+ @builder.append ' -conservative'
1030
794
  self
1031
795
  end
1032
-
1033
796
  def format format
1034
- @b.append "-format:#{@b.format format}"
797
+ @builder.append " -format:#{@builder.format format}"
1035
798
  self
1036
799
  end
1037
-
1038
800
  def no_prompt
1039
- @b.append '-noPrompt'
801
+ @builder.append ' -noPrompt'
1040
802
  self
1041
803
  end
1042
-
1043
804
  def login credentials
1044
- @b.append "-login:#{@b.format credentials}"
805
+ @builder.append " -login:#{@builder.format credentials}"
1045
806
  self
1046
807
  end
1047
-
1048
808
  def source source
1049
- @b.append "#{@b.format source}"
809
+ @builder.append " #{@builder.format source}"
1050
810
  self
1051
811
  end
1052
-
1053
812
  def destination destination
1054
- @b.append "#{@b.format destination}"
813
+ @builder.append " #{@builder.format destination}"
1055
814
  self
1056
815
  end
1057
-
1058
- def to_s
1059
- @b.to_s
816
+ def to_s
817
+ @builder.to_s
1060
818
  end
1061
-
1062
819
  end
1063
-
1064
820
  class Merges
1065
- def initialize command=nil
1066
- @b = CommandBuilder.new command
1067
- @b.append 'merges'
1068
- self
821
+ def initialize builder
822
+ @builder = builder
823
+ @builder.append ' merges'
1069
824
  end
1070
-
1071
825
  def source source
1072
- @b.append "#{@b.format source}"
826
+ @builder.append " #{@builder.format source}"
1073
827
  self
1074
828
  end
1075
-
1076
829
  def destination destination
1077
- @b.append "#{@b.format destination}"
830
+ @builder.append " #{@builder.format destination}"
1078
831
  self
1079
832
  end
1080
-
1081
833
  def recursive
1082
- @b.append '-recursive'
834
+ @builder.append ' -recursive'
1083
835
  self
1084
836
  end
1085
-
1086
837
  def extended
1087
- @b.append '-extended'
838
+ @builder.append ' -extended'
1088
839
  self
1089
840
  end
1090
-
1091
841
  def format format
1092
- @b.append "-format:#{@b.format format}"
842
+ @builder.append " -format:#{@builder.format format}"
1093
843
  self
1094
844
  end
1095
-
1096
845
  def login credentials
1097
- @b.append "-login:#{@b.format credentials}"
846
+ @builder.append " -login:#{@builder.format credentials}"
1098
847
  self
1099
848
  end
1100
-
1101
849
  def show_all
1102
- @b.append '-showAll'
850
+ @builder.append ' -showAll'
1103
851
  self
1104
852
  end
1105
-
1106
853
  def collection team_project_collection_url
1107
- @b.append "-collection:#{@b.format team_project_collection_url}"
854
+ @builder.append " -collection:#{@builder.format team_project_collection_url}"
1108
855
  self
1109
856
  end
1110
-
1111
- def to_s
1112
- @b.to_s
857
+ def to_s
858
+ @builder.to_s
1113
859
  end
1114
-
1115
860
  end
1116
-
1117
861
  class Print
1118
- def initialize command=nil
1119
- @b = CommandBuilder.new command
1120
- @b.append 'print'
1121
- self
862
+ def initialize builder
863
+ @builder = builder
864
+ @builder.append ' print'
1122
865
  end
1123
-
1124
866
  def version version_spec
1125
- @b.append "-version:#{@b.format version_spec}"
867
+ @builder.append " -version:#{@builder.format version_spec}"
1126
868
  self
1127
869
  end
1128
-
1129
870
  def item_spec item_spec
1130
- @b.append "#{@b.format item_spec}"
871
+ @builder.append " #{@builder.format item_spec}"
1131
872
  self
1132
873
  end
1133
-
1134
- def to_s
1135
- @b.to_s
874
+ def to_s
875
+ @builder.to_s
1136
876
  end
1137
-
1138
877
  end
1139
-
1140
878
  class ProductKey
1141
- def initialize command=nil
1142
- @b = CommandBuilder.new command
1143
- @b.append 'productKey'
1144
- self
879
+ def initialize builder
880
+ @builder = builder
881
+ @builder.append ' productKey'
1145
882
  end
1146
-
1147
883
  def set my_product_key
1148
- @b.append "-set:#{@b.format my_product_key}"
884
+ @builder.append " -set:#{@builder.format my_product_key}"
1149
885
  self
1150
886
  end
1151
-
1152
887
  def trial
1153
- @b.append '-trial'
888
+ @builder.append ' -trial'
1154
889
  self
1155
890
  end
1156
-
1157
- def to_s
1158
- @b.to_s
891
+ def to_s
892
+ @builder.to_s
1159
893
  end
1160
-
1161
894
  end
1162
-
1163
895
  class Profile
1164
- def initialize command=nil
1165
- @b = CommandBuilder.new command
1166
- @b.append 'profile'
1167
- self
896
+ def initialize builder
897
+ @builder = builder
898
+ @builder.append ' profile'
1168
899
  end
1169
-
1170
900
  def copy existing_profile_name, new_profile_name
1171
- @b.append "-copy #{@b.format existing_profile_name} #{@b.format new_profile_name}"
901
+ @builder.append " -copy #{@builder.format existing_profile_name} #{@builder.format new_profile_name}"
1172
902
  self
1173
903
  end
1174
-
1175
904
  def delete profile_name
1176
- @b.append "-delete #{@b.format profile_name}"
905
+ @builder.append " -delete #{@builder.format profile_name}"
1177
906
  self
1178
907
  end
1179
-
1180
908
  def edit existing_profile_name
1181
- @b.append "-edit #{@b.format existing_profile_name}"
909
+ @builder.append " -edit #{@builder.format existing_profile_name}"
1182
910
  self
1183
911
  end
1184
-
1185
912
  def new new_profile_name
1186
- @b.append "-new #{@b.format new_profile_name}"
913
+ @builder.append " -new #{@builder.format new_profile_name}"
1187
914
  self
1188
915
  end
1189
-
1190
916
  def string property_name, value
1191
- @b.append "-string:#{@b.format property_name}=#{@b.format value}"
917
+ @builder.append " -string:#{@builder.format property_name}=#{@builder.format value}"
1192
918
  self
1193
919
  end
1194
-
1195
920
  def boolean property_name, value
1196
- @b.append "-boolean:#{@b.format property_name}=#{@b.format value}"
921
+ @builder.append " -boolean:#{@builder.format property_name}=#{@builder.format value}"
1197
922
  self
1198
923
  end
1199
-
1200
924
  def number property_name, value
1201
- @b.append "-number:#{@b.format property_name}=#{@b.format value}"
925
+ @builder.append " -number:#{@builder.format property_name}=#{@builder.format value}"
1202
926
  self
1203
927
  end
1204
-
1205
- def to_s
1206
- @b.to_s
928
+ def to_s
929
+ @builder.to_s
1207
930
  end
1208
-
1209
931
  end
1210
-
1211
932
  class Profiles
1212
- def initialize command=nil
1213
- @b = CommandBuilder.new command
1214
- @b.append 'profiles'
1215
- self
933
+ def initialize builder
934
+ @builder = builder
935
+ @builder.append ' profiles'
1216
936
  end
1217
-
1218
937
  def format format
1219
- @b.append "-format:#{@b.format format}"
938
+ @builder.append " -format:#{@builder.format format}"
1220
939
  self
1221
940
  end
1222
-
1223
- def to_s
1224
- @b.to_s
941
+ def to_s
942
+ @builder.to_s
1225
943
  end
1226
-
1227
944
  end
1228
-
1229
945
  class Properties
1230
- def initialize command=nil
1231
- @b = CommandBuilder.new command
1232
- @b.append 'properties'
1233
- self
946
+ def initialize builder
947
+ @builder = builder
948
+ @builder.append ' properties'
1234
949
  end
1235
-
1236
950
  def collection team_project_collection_url
1237
- @b.append "-collection:#{@b.format team_project_collection_url}"
951
+ @builder.append " -collection:#{@builder.format team_project_collection_url}"
1238
952
  self
1239
953
  end
1240
-
1241
954
  def recursive
1242
- @b.append '-recursive'
955
+ @builder.append ' -recursive'
1243
956
  self
1244
957
  end
1245
-
1246
958
  def login credentials
1247
- @b.append "-login:#{@b.format credentials}"
959
+ @builder.append " -login:#{@builder.format credentials}"
1248
960
  self
1249
961
  end
1250
-
1251
962
  def item_spec item_spec
1252
- @b.append "#{@b.format item_spec}"
963
+ @builder.append " #{@builder.format item_spec}"
1253
964
  self
1254
965
  end
1255
-
1256
966
  def version version_spec
1257
- @b.append "-version:#{@b.format version_spec}"
967
+ @builder.append " -version:#{@builder.format version_spec}"
1258
968
  self
1259
969
  end
1260
-
1261
970
  def workspace
1262
- @b.append '-workspace'
971
+ @builder.append ' -workspace'
1263
972
  self
1264
973
  end
1265
-
1266
- def to_s
1267
- @b.to_s
974
+ def to_s
975
+ @builder.to_s
1268
976
  end
1269
-
1270
977
  end
1271
-
1272
978
  class Reconcile
1273
- def initialize command=nil
1274
- @b = CommandBuilder.new command
1275
- @b.append 'reconcile'
1276
- self
979
+ def initialize builder
980
+ @builder = builder
981
+ @builder.append ' reconcile'
1277
982
  end
1278
-
1279
983
  def team_project team_project_name
1280
- @b.append "-teamProject:#{@b.format team_project_name}"
984
+ @builder.append " -teamProject:#{@builder.format team_project_name}"
1281
985
  self
1282
986
  end
1283
-
1284
987
  def build_name build_name
1285
- @b.append "-buildName:#{@b.format build_name}"
988
+ @builder.append " -buildName:#{@builder.format build_name}"
1286
989
  self
1287
990
  end
1288
-
1289
991
  def recursive
1290
- @b.append '-recursive'
992
+ @builder.append ' -recursive'
1291
993
  self
1292
994
  end
1293
-
1294
995
  def changeset changeset_name
1295
- @b.append "-changeset:#{@b.format changeset_name}"
996
+ @builder.append " -changeset:#{@builder.format changeset_name}"
1296
997
  self
1297
998
  end
1298
-
1299
999
  def forget_build build_name
1300
- @b.append "-forgetBuild:#{@b.format build_name}"
1000
+ @builder.append " -forgetBuild:#{@builder.format build_name}"
1301
1001
  self
1302
1002
  end
1303
-
1304
1003
  def item_spec item_spec
1305
- @b.append "#{@b.format item_spec}"
1004
+ @builder.append " #{@builder.format item_spec}"
1306
1005
  self
1307
1006
  end
1308
-
1309
- def to_s
1310
- @b.to_s
1007
+ def to_s
1008
+ @builder.to_s
1311
1009
  end
1312
-
1313
1010
  end
1314
-
1315
1011
  class Rename
1316
- def initialize command=nil
1317
- @b = CommandBuilder.new command
1318
- @b.append 'rename'
1319
- self
1012
+ def initialize builder
1013
+ @builder = builder
1014
+ @builder.append ' rename'
1320
1015
  end
1321
-
1322
1016
  def lock lock_type
1323
- @b.append "-lock:#{@b.format lock_type}"
1017
+ @builder.append " -lock:#{@builder.format lock_type}"
1324
1018
  self
1325
1019
  end
1326
-
1327
1020
  def login credentials
1328
- @b.append "-login:#{@b.format credentials}"
1021
+ @builder.append " -login:#{@builder.format credentials}"
1329
1022
  self
1330
1023
  end
1331
-
1332
1024
  def old_item old_item
1333
- @b.append "#{@b.format old_item}"
1025
+ @builder.append " #{@builder.format old_item}"
1334
1026
  self
1335
1027
  end
1336
-
1337
1028
  def new_item new_item
1338
- @b.append "#{@b.format new_item}"
1029
+ @builder.append " #{@builder.format new_item}"
1339
1030
  self
1340
1031
  end
1341
-
1342
- def to_s
1343
- @b.to_s
1032
+ def to_s
1033
+ @builder.to_s
1344
1034
  end
1345
-
1346
1035
  end
1347
-
1348
1036
  class Resolve
1349
- def initialize command=nil
1350
- @b = CommandBuilder.new command
1351
- @b.append 'resolve'
1352
- self
1037
+ def initialize builder
1038
+ @builder = builder
1039
+ @builder.append ' resolve'
1353
1040
  end
1354
-
1355
1041
  def item_spec item_spec
1356
- @b.append "#{@b.format item_spec}"
1042
+ @builder.append " #{@builder.format item_spec}"
1357
1043
  self
1358
1044
  end
1359
-
1360
1045
  def auto resolution
1361
- @b.append "-auto:#{@b.format resolution}"
1046
+ @builder.append " -auto:#{@builder.format resolution}"
1362
1047
  self
1363
1048
  end
1364
-
1365
1049
  def preview
1366
- @b.append '-preview'
1050
+ @builder.append ' -preview'
1367
1051
  self
1368
1052
  end
1369
-
1370
1053
  def override_type override_type
1371
- @b.append "-overrideType:#{@b.format override_type}"
1054
+ @builder.append " -overrideType:#{@builder.format override_type}"
1372
1055
  self
1373
1056
  end
1374
-
1375
1057
  def convert_to_type convert_type
1376
- @b.append "-convertToType:#{@b.format convert_type}"
1058
+ @builder.append " -convertToType:#{@builder.format convert_type}"
1377
1059
  self
1378
1060
  end
1379
-
1380
1061
  def recursive
1381
- @b.append '-recursive'
1062
+ @builder.append ' -recursive'
1382
1063
  self
1383
1064
  end
1384
-
1385
1065
  def new_name path
1386
- @b.append "-newName:#{@b.format path}"
1066
+ @builder.append " -newName:#{@builder.format path}"
1387
1067
  self
1388
1068
  end
1389
-
1390
1069
  def no_prompt
1391
- @b.append '-noPrompt'
1070
+ @builder.append ' -noPrompt'
1392
1071
  self
1393
1072
  end
1394
-
1395
1073
  def login credentials
1396
- @b.append "-login:#{@b.format credentials}"
1074
+ @builder.append " -login:#{@builder.format credentials}"
1397
1075
  self
1398
1076
  end
1399
-
1400
- def to_s
1401
- @b.to_s
1077
+ def to_s
1078
+ @builder.to_s
1402
1079
  end
1403
-
1404
1080
  end
1405
-
1406
1081
  class Shelve
1407
- def initialize command=nil
1408
- @b = CommandBuilder.new command
1409
- @b.append 'shelve'
1410
- self
1082
+ def initialize builder
1083
+ @builder = builder
1084
+ @builder.append ' shelve'
1411
1085
  end
1412
-
1413
1086
  def replace
1414
- @b.append '-replace'
1087
+ @builder.append ' -replace'
1415
1088
  self
1416
1089
  end
1417
-
1418
1090
  def comment comment
1419
- @b.append "-comment:#{@b.format comment}"
1091
+ @builder.append " -comment:#{@builder.format comment}"
1420
1092
  self
1421
1093
  end
1422
-
1423
1094
  def shelveset_name shelveset_name
1424
- @b.append "#{@b.format shelveset_name}"
1095
+ @builder.append " #{@builder.format shelveset_name}"
1425
1096
  self
1426
1097
  end
1427
-
1428
1098
  def validate
1429
- @b.append '-validate'
1099
+ @builder.append ' -validate'
1430
1100
  self
1431
1101
  end
1432
-
1433
1102
  def no_prompt
1434
- @b.append '-noPrompt'
1103
+ @builder.append ' -noPrompt'
1435
1104
  self
1436
1105
  end
1437
-
1438
1106
  def login credentials
1439
- @b.append "-login:#{@b.format credentials}"
1107
+ @builder.append " -login:#{@builder.format credentials}"
1440
1108
  self
1441
1109
  end
1442
-
1443
1110
  def move
1444
- @b.append '-move'
1111
+ @builder.append ' -move'
1445
1112
  self
1446
1113
  end
1447
-
1448
1114
  def recursive
1449
- @b.append '-recursive'
1115
+ @builder.append ' -recursive'
1450
1116
  self
1451
1117
  end
1452
-
1453
1118
  def item_spec item_spec
1454
- @b.append "#{@b.format item_spec}"
1119
+ @builder.append " #{@builder.format item_spec}"
1455
1120
  self
1456
1121
  end
1457
-
1458
1122
  def delete
1459
- @b.append '-delete'
1123
+ @builder.append ' -delete'
1460
1124
  self
1461
1125
  end
1462
-
1463
1126
  def collection team_project_collection_url
1464
- @b.append "-collection:#{@b.format team_project_collection_url}"
1127
+ @builder.append " -collection:#{@builder.format team_project_collection_url}"
1465
1128
  self
1466
1129
  end
1467
-
1468
- def to_s
1469
- @b.to_s
1130
+ def to_s
1131
+ @builder.to_s
1470
1132
  end
1471
-
1472
1133
  end
1473
-
1474
1134
  class Shelvesets
1475
- def initialize command=nil
1476
- @b = CommandBuilder.new command
1477
- @b.append 'shelvesets'
1478
- self
1135
+ def initialize builder
1136
+ @builder = builder
1137
+ @builder.append ' shelvesets'
1479
1138
  end
1480
-
1481
1139
  def owner owner_name
1482
- @b.append "-owner:#{@b.format owner_name}"
1140
+ @builder.append " -owner:#{@builder.format owner_name}"
1483
1141
  self
1484
1142
  end
1485
-
1486
1143
  def format format
1487
- @b.append "-format:#{@b.format format}"
1144
+ @builder.append " -format:#{@builder.format format}"
1488
1145
  self
1489
1146
  end
1490
-
1491
1147
  def collection team_project_collection_url
1492
- @b.append "-collection:#{@b.format team_project_collection_url}"
1148
+ @builder.append " -collection:#{@builder.format team_project_collection_url}"
1493
1149
  self
1494
1150
  end
1495
-
1496
1151
  def login credentials
1497
- @b.append "-login:#{@b.format credentials}"
1152
+ @builder.append " -login:#{@builder.format credentials}"
1498
1153
  self
1499
1154
  end
1500
-
1501
1155
  def shelveset_name shelveset_name
1502
- @b.append "#{@b.format shelveset_name}"
1156
+ @builder.append " #{@builder.format shelveset_name}"
1503
1157
  self
1504
1158
  end
1505
-
1506
- def to_s
1507
- @b.to_s
1159
+ def to_s
1160
+ @builder.to_s
1508
1161
  end
1509
-
1510
1162
  end
1511
-
1512
1163
  class Status
1513
- def initialize command=nil
1514
- @b = CommandBuilder.new command
1515
- @b.append 'status'
1516
- self
1164
+ def initialize builder
1165
+ @builder = builder
1166
+ @builder.append ' status'
1517
1167
  end
1518
-
1519
1168
  def item_spec item_spec
1520
- @b.append "#{@b.format item_spec}"
1169
+ @builder.append " #{@builder.format item_spec}"
1521
1170
  self
1522
1171
  end
1523
-
1524
1172
  def collection team_project_collection_url
1525
- @b.append "-collection:#{@b.format team_project_collection_url}"
1173
+ @builder.append " -collection:#{@builder.format team_project_collection_url}"
1526
1174
  self
1527
1175
  end
1528
-
1529
1176
  def login credentials
1530
- @b.append "-login:#{@b.format credentials}"
1177
+ @builder.append " -login:#{@builder.format credentials}"
1531
1178
  self
1532
1179
  end
1533
-
1534
1180
  def workspace workspace_name
1535
- @b.append "-workspace:#{@b.format workspace_name}"
1181
+ @builder.append " -workspace:#{@builder.format workspace_name}"
1536
1182
  self
1537
1183
  end
1538
-
1539
1184
  def shelveset shelveset_name
1540
- @b.append "-shelveset:#{@b.format shelveset_name}"
1185
+ @builder.append " -shelveset:#{@builder.format shelveset_name}"
1541
1186
  self
1542
1187
  end
1543
-
1544
1188
  def format format
1545
- @b.append "-format:#{@b.format format}"
1189
+ @builder.append " -format:#{@builder.format format}"
1546
1190
  self
1547
1191
  end
1548
-
1549
1192
  def recursive
1550
- @b.append '-recursive'
1193
+ @builder.append ' -recursive'
1551
1194
  self
1552
1195
  end
1553
-
1554
1196
  def user user_name
1555
- @b.append "-user:#{@b.format user_name}"
1197
+ @builder.append " -user:#{@builder.format user_name}"
1556
1198
  self
1557
1199
  end
1558
-
1559
- def to_s
1560
- @b.to_s
1200
+ def to_s
1201
+ @builder.to_s
1561
1202
  end
1562
-
1563
1203
  end
1564
-
1565
1204
  class Undelete
1566
- def initialize command=nil
1567
- @b = CommandBuilder.new command
1568
- @b.append 'undelete'
1569
- self
1205
+ def initialize builder
1206
+ @builder = builder
1207
+ @builder.append ' undelete'
1570
1208
  end
1571
-
1572
1209
  def no_get
1573
- @b.append '-noGet'
1210
+ @builder.append ' -noGet'
1574
1211
  self
1575
1212
  end
1576
-
1577
1213
  def lock lock_type
1578
- @b.append "-lock:#{@b.format lock_type}"
1214
+ @builder.append " -lock:#{@builder.format lock_type}"
1579
1215
  self
1580
1216
  end
1581
-
1582
1217
  def recursive
1583
- @b.append '-recursive'
1218
+ @builder.append ' -recursive'
1584
1219
  self
1585
1220
  end
1586
-
1587
1221
  def item_spec item_spec
1588
- @b.append "#{@b.format item_spec}"
1222
+ @builder.append " #{@builder.format item_spec}"
1589
1223
  self
1590
1224
  end
1591
-
1592
1225
  def login credentials
1593
- @b.append "-login:#{@b.format credentials}"
1226
+ @builder.append " -login:#{@builder.format credentials}"
1594
1227
  self
1595
1228
  end
1596
-
1597
- def to_s
1598
- @b.to_s
1229
+ def to_s
1230
+ @builder.to_s
1599
1231
  end
1600
-
1601
1232
  end
1602
-
1603
1233
  class Undo
1604
- def initialize command=nil
1605
- @b = CommandBuilder.new command
1606
- @b.append 'undo'
1607
- self
1234
+ def initialize builder
1235
+ @builder = builder
1236
+ @builder.append ' undo'
1608
1237
  end
1609
-
1610
1238
  def workspace workspace_name
1611
- @b.append "-workspace:#{@b.format workspace_name}"
1239
+ @builder.append " -workspace:#{@builder.format workspace_name}"
1612
1240
  self
1613
1241
  end
1614
-
1615
1242
  def recursive
1616
- @b.append '-recursive'
1243
+ @builder.append ' -recursive'
1617
1244
  self
1618
1245
  end
1619
-
1620
1246
  def item_spec item_spec
1621
- @b.append "#{@b.format item_spec}"
1247
+ @builder.append " #{@builder.format item_spec}"
1622
1248
  self
1623
1249
  end
1624
-
1625
1250
  def no_prompt
1626
- @b.append '-noPrompt'
1251
+ @builder.append ' -noPrompt'
1627
1252
  self
1628
1253
  end
1629
-
1630
1254
  def login credentials
1631
- @b.append "-login:#{@b.format credentials}"
1255
+ @builder.append " -login:#{@builder.format credentials}"
1632
1256
  self
1633
1257
  end
1634
-
1635
1258
  def collection team_project_collection_url
1636
- @b.append "-collection:#{@b.format team_project_collection_url}"
1259
+ @builder.append " -collection:#{@builder.format team_project_collection_url}"
1637
1260
  self
1638
1261
  end
1639
-
1640
- def to_s
1641
- @b.to_s
1262
+ def to_s
1263
+ @builder.to_s
1642
1264
  end
1643
-
1644
1265
  end
1645
-
1646
1266
  class Unlabel
1647
- def initialize command=nil
1648
- @b = CommandBuilder.new command
1649
- @b.append 'unlabel'
1650
- self
1267
+ def initialize builder
1268
+ @builder = builder
1269
+ @builder.append ' unlabel'
1651
1270
  end
1652
-
1653
1271
  def collection team_project_collection_url
1654
- @b.append "-collection:#{@b.format team_project_collection_url}"
1272
+ @builder.append " -collection:#{@builder.format team_project_collection_url}"
1655
1273
  self
1656
1274
  end
1657
-
1658
1275
  def recursive
1659
- @b.append '-recursive'
1276
+ @builder.append ' -recursive'
1660
1277
  self
1661
1278
  end
1662
-
1663
1279
  def login credentials
1664
- @b.append "-login:#{@b.format credentials}"
1280
+ @builder.append " -login:#{@builder.format credentials}"
1665
1281
  self
1666
1282
  end
1667
-
1668
1283
  def label_name label_name
1669
- @b.append "#{@b.format label_name}"
1284
+ @builder.append " #{@builder.format label_name}"
1670
1285
  self
1671
1286
  end
1672
-
1673
1287
  def item_spec item_spec
1674
- @b.append "#{@b.format item_spec}"
1288
+ @builder.append " #{@builder.format item_spec}"
1675
1289
  self
1676
1290
  end
1677
-
1678
- def to_s
1679
- @b.to_s
1291
+ def to_s
1292
+ @builder.to_s
1680
1293
  end
1681
-
1682
1294
  end
1683
-
1684
1295
  class Unshelve
1685
- def initialize command=nil
1686
- @b = CommandBuilder.new command
1687
- @b.append 'unshelve'
1688
- self
1296
+ def initialize builder
1297
+ @builder = builder
1298
+ @builder.append ' unshelve'
1689
1299
  end
1690
-
1691
1300
  def move
1692
- @b.append '-move'
1301
+ @builder.append ' -move'
1693
1302
  self
1694
1303
  end
1695
-
1696
1304
  def shelveset_name shelveset_name
1697
- @b.append "#{@b.format shelveset_name}"
1305
+ @builder.append " #{@builder.format shelveset_name}"
1698
1306
  self
1699
1307
  end
1700
-
1701
1308
  def item_spec item_spec
1702
- @b.append "#{@b.format item_spec}"
1309
+ @builder.append " #{@builder.format item_spec}"
1703
1310
  self
1704
1311
  end
1705
-
1706
1312
  def recursive
1707
- @b.append '-recursive'
1313
+ @builder.append ' -recursive'
1708
1314
  self
1709
1315
  end
1710
-
1711
1316
  def no_prompt
1712
- @b.append '-noPrompt'
1317
+ @builder.append ' -noPrompt'
1713
1318
  self
1714
1319
  end
1715
-
1716
1320
  def login credentials
1717
- @b.append "-login:#{@b.format credentials}"
1321
+ @builder.append " -login:#{@builder.format credentials}"
1718
1322
  self
1719
1323
  end
1720
-
1721
- def to_s
1722
- @b.to_s
1324
+ def to_s
1325
+ @builder.to_s
1723
1326
  end
1724
-
1725
1327
  end
1726
-
1727
1328
  class Workfold
1728
- def initialize command=nil
1729
- @b = CommandBuilder.new command
1730
- @b.append 'workfold'
1731
- self
1329
+ def initialize builder
1330
+ @builder = builder
1331
+ @builder.append ' workfold'
1732
1332
  end
1733
-
1734
1333
  def login credentials
1735
- @b.append "-login:#{@b.format credentials}"
1334
+ @builder.append " -login:#{@builder.format credentials}"
1736
1335
  self
1737
1336
  end
1738
-
1739
1337
  def workspace workspace_name
1740
- @b.append "-workspace:#{@b.format workspace_name}"
1338
+ @builder.append " -workspace:#{@builder.format workspace_name}"
1741
1339
  self
1742
1340
  end
1743
-
1744
1341
  def collection team_project_collection_url
1745
- @b.append "-collection:#{@b.format team_project_collection_url}"
1342
+ @builder.append " -collection:#{@builder.format team_project_collection_url}"
1746
1343
  self
1747
1344
  end
1748
-
1749
1345
  def map
1750
- @b.append '-map'
1346
+ @builder.append ' -map'
1751
1347
  self
1752
1348
  end
1753
-
1754
1349
  def server_folder server_folder
1755
- @b.append "#{@b.format server_folder}"
1350
+ @builder.append " #{@builder.format server_folder}"
1756
1351
  self
1757
1352
  end
1758
-
1759
1353
  def local_folder local_folder
1760
- @b.append "#{@b.format local_folder}"
1354
+ @builder.append " #{@builder.format local_folder}"
1761
1355
  self
1762
1356
  end
1763
-
1764
1357
  def unmap
1765
- @b.append '-unmap'
1358
+ @builder.append ' -unmap'
1766
1359
  self
1767
1360
  end
1768
-
1769
1361
  def recursive
1770
- @b.append '-recursive'
1362
+ @builder.append ' -recursive'
1771
1363
  self
1772
1364
  end
1773
-
1774
1365
  def cloak
1775
- @b.append '-cloak'
1366
+ @builder.append ' -cloak'
1776
1367
  self
1777
1368
  end
1778
-
1779
1369
  def decloak
1780
- @b.append '-decloak'
1370
+ @builder.append ' -decloak'
1781
1371
  self
1782
1372
  end
1783
-
1784
- def to_s
1785
- @b.to_s
1373
+ def to_s
1374
+ @builder.to_s
1786
1375
  end
1787
-
1788
1376
  end
1789
-
1790
1377
  class Workspace
1791
- def initialize command=nil
1792
- @b = CommandBuilder.new command
1793
- @b.append 'workspace'
1794
- self
1378
+ def initialize builder
1379
+ @builder = builder
1380
+ @builder.append ' workspace'
1795
1381
  end
1796
-
1797
1382
  def new
1798
- @b.append '-new'
1383
+ @builder.append ' -new'
1799
1384
  self
1800
1385
  end
1801
-
1802
1386
  def no_prompt
1803
- @b.append '-noPrompt'
1387
+ @builder.append ' -noPrompt'
1804
1388
  self
1805
1389
  end
1806
-
1807
1390
  def template workspace_name
1808
- @b.append "-template:#{@b.format workspace_name}"
1391
+ @builder.append " -template:#{@builder.format workspace_name}"
1809
1392
  self
1810
1393
  end
1811
-
1812
1394
  def computer computer_name
1813
- @b.append "-computer:#{@b.format computer_name}"
1395
+ @builder.append " -computer:#{@builder.format computer_name}"
1814
1396
  self
1815
1397
  end
1816
-
1817
1398
  def comment comment
1818
- @b.append "-comment:#{@b.format comment}"
1399
+ @builder.append " -comment:#{@builder.format comment}"
1819
1400
  self
1820
1401
  end
1821
-
1822
1402
  def collection team_project_collection_url
1823
- @b.append "-collection:#{@b.format team_project_collection_url}"
1403
+ @builder.append " -collection:#{@builder.format team_project_collection_url}"
1824
1404
  self
1825
1405
  end
1826
-
1827
1406
  def permission permission
1828
- @b.append "-permission:#{@b.format permission}"
1407
+ @builder.append " -permission:#{@builder.format permission}"
1829
1408
  self
1830
1409
  end
1831
-
1832
1410
  def workspace_name workspace_name
1833
- @b.append "#{@b.format workspace_name}"
1411
+ @builder.append " #{@builder.format workspace_name}"
1834
1412
  self
1835
1413
  end
1836
-
1837
1414
  def login credentials
1838
- @b.append "-login:#{@b.format credentials}"
1415
+ @builder.append " -login:#{@builder.format credentials}"
1839
1416
  self
1840
1417
  end
1841
-
1842
1418
  def delete
1843
- @b.append '-delete'
1419
+ @builder.append ' -delete'
1844
1420
  self
1845
1421
  end
1846
-
1847
1422
  def new_name workspace_name
1848
- @b.append "-newName:#{@b.format workspace_name}"
1423
+ @builder.append " -newName:#{@builder.format workspace_name}"
1849
1424
  self
1850
1425
  end
1851
-
1852
1426
  def new_owner owner_name
1853
- @b.append "-newOwner:#{@b.format owner_name}"
1427
+ @builder.append " -newOwner:#{@builder.format owner_name}"
1854
1428
  self
1855
1429
  end
1856
-
1857
- def to_s
1858
- @b.to_s
1430
+ def to_s
1431
+ @builder.to_s
1859
1432
  end
1860
-
1861
1433
  end
1862
-
1863
1434
  class Workspaces
1864
- def initialize command=nil
1865
- @b = CommandBuilder.new command
1866
- @b.append 'workspaces'
1867
- self
1435
+ def initialize builder
1436
+ @builder = builder
1437
+ @builder.append ' workspaces'
1868
1438
  end
1869
-
1870
1439
  def owner owner_name
1871
- @b.append "-owner:#{@b.format owner_name}"
1440
+ @builder.append " -owner:#{@builder.format owner_name}"
1872
1441
  self
1873
1442
  end
1874
-
1875
1443
  def computer computer_name
1876
- @b.append "-computer:#{@b.format computer_name}"
1444
+ @builder.append " -computer:#{@builder.format computer_name}"
1877
1445
  self
1878
1446
  end
1879
-
1880
1447
  def collection team_project_collection_url
1881
- @b.append "-collection:#{@b.format team_project_collection_url}"
1448
+ @builder.append " -collection:#{@builder.format team_project_collection_url}"
1882
1449
  self
1883
1450
  end
1884
-
1885
1451
  def format format
1886
- @b.append "-format:#{@b.format format}"
1452
+ @builder.append " -format:#{@builder.format format}"
1887
1453
  self
1888
1454
  end
1889
-
1890
1455
  def update_user_name old_user_name
1891
- @b.append "-updateUserName:#{@b.format old_user_name}"
1456
+ @builder.append " -updateUserName:#{@builder.format old_user_name}"
1892
1457
  self
1893
1458
  end
1894
-
1895
1459
  def update_computer_name old_computer_name
1896
- @b.append "-updateComputerName:#{@b.format old_computer_name}"
1460
+ @builder.append " -updateComputerName:#{@builder.format old_computer_name}"
1897
1461
  self
1898
1462
  end
1899
-
1900
1463
  def workspace_name workspace_name
1901
- @b.append "#{@b.format workspace_name}"
1464
+ @builder.append " #{@builder.format workspace_name}"
1902
1465
  self
1903
1466
  end
1904
-
1905
1467
  def login credentials
1906
- @b.append "-login:#{@b.format credentials}"
1468
+ @builder.append " -login:#{@builder.format credentials}"
1907
1469
  self
1908
1470
  end
1909
-
1910
1471
  def remove workspace_name
1911
- @b.append "-remove:#{@b.format workspace_name}"
1472
+ @builder.append " -remove:#{@builder.format workspace_name}"
1912
1473
  self
1913
1474
  end
1914
-
1915
- def to_s
1916
- @b.to_s
1475
+ def to_s
1476
+ @builder.to_s
1917
1477
  end
1918
-
1919
1478
  end
1920
-
1921
- def tf
1922
- Tf.new
1479
+ def tf
1480
+ Tf.new CommandBuilder.new
1923
1481
  end
1924
-
1925
1482
  end
1926
-
1927
1483
  end
1928
-
1929
- def tf_tee_2010
1930
- Tf::TEE_2010::Tf.new
1484
+ def tf_tee_2010
1485
+ Tf::TEE_2010::Tf.new CommandBuilder.new
1931
1486
  end
1932
-
1933
1487
  end
1934
-