Class: FluentCommandBuilder::TeamFoundationTEE::V101::Delete

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

Instance Method Summary collapse

Methods inherited from CommandBase

#configure!, #execute!, #to_s

Constructor Details

#initialize(underlying_builder, item_spec) ⇒ Delete

Returns a new instance of Delete.



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

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

Instance Method Details

#lock(lock_type) {|@b| ... } ⇒ Object

Yields:

  • (@b)


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

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

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

Yields:

  • (@b)


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

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

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

Yields:

  • (@b)


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

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