Class: FluentCommandBuilder::TeamFoundationTEE::V100::Destroy

Inherits:
CommandBase
  • Object
show all
Defined in:
lib/fluent_command_builder/command_builders/team_foundation_tee_100.rb

Instance Method Summary collapse

Methods inherited from CommandBase

#configure!, #execute!, #to_s

Constructor Details

#initialize(underlying_builder, item_spec) ⇒ Destroy

Returns a new instance of Destroy.



478
479
480
481
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_100.rb', line 478

def initialize(underlying_builder, item_spec)
  super underlying_builder
  @b.append " destroy #{@b.format item_spec}"
end

Instance Method Details

#collection(team_project_collection_url) {|@b| ... } ⇒ Object

Yields:

  • (@b)


523
524
525
526
527
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_100.rb', line 523

def collection(team_project_collection_url)
  @b.append " -collection:#{@b.format team_project_collection_url}"
  yield @b if block_given?
  self
end

#force {|@b| ... } ⇒ Object

Yields:

  • (@b)


507
508
509
510
511
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_100.rb', line 507

def force
  @b.append ' -force'
  yield @b if block_given?
  self
end

#keep_history {|@b| ... } ⇒ Object

Yields:

  • (@b)


482
483
484
485
486
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_100.rb', line 482

def keep_history
  @b.append ' -keepHistory'
  yield @b if block_given?
  self
end

#login(username, password = nil) {|@b| ... } ⇒ Object

Yields:

  • (@b)


517
518
519
520
521
522
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_100.rb', line 517

def (username, password=nil)
  @b.append " -login:#{@b.format username}"
  @b.append ",#{@b.format_password password}" unless password.nil?
  yield @b if block_given?
  self
end

#no_prompt {|@b| ... } ⇒ Object

Yields:

  • (@b)


502
503
504
505
506
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_100.rb', line 502

def no_prompt
  @b.append ' -noPrompt'
  yield @b if block_given?
  self
end

#preview {|@b| ... } ⇒ Object

Yields:

  • (@b)


492
493
494
495
496
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_100.rb', line 492

def preview
  @b.append ' -preview'
  yield @b if block_given?
  self
end

#silent {|@b| ... } ⇒ Object

Yields:

  • (@b)


512
513
514
515
516
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_100.rb', line 512

def silent
  @b.append ' -silent'
  yield @b if block_given?
  self
end

#start_cleanup {|@b| ... } ⇒ Object

Yields:

  • (@b)


497
498
499
500
501
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_100.rb', line 497

def start_cleanup
  @b.append ' -startCleanup'
  yield @b if block_given?
  self
end

#stop_at(version_spec) {|@b| ... } ⇒ Object

Yields:

  • (@b)


487
488
489
490
491
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_100.rb', line 487

def stop_at(version_spec)
  @b.append " -stopAt:#{@b.format version_spec}"
  yield @b if block_given?
  self
end