Class: FluentCommandBuilder::TeamFoundation::V100::Delete

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

Instance Method Summary collapse

Methods inherited from CommandBase

#configure!, #execute!, #to_s

Constructor Details

#initialize(underlying_builder, item_spec) ⇒ Delete



516
517
518
519
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 516

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)


520
521
522
523
524
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 520

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)


530
531
532
533
534
535
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 530

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)


525
526
527
528
529
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 525

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