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