Class: FluentCommandBuilder::TeamFoundationTEE::V100::Checkout

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 = nil) ⇒ Checkout

Returns a new instance of Checkout.



428
429
430
431
432
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_100.rb', line 428

def initialize(underlying_builder, item_spec=nil)
  super underlying_builder
  @b.append ' checkout'
  @b.append " #{@b.format item_spec}" unless item_spec.nil?
end

Instance Method Details

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

Yields:

  • (@b)


433
434
435
436
437
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_100.rb', line 433

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)


448
449
450
451
452
453
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_100.rb', line 448

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)


438
439
440
441
442
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_100.rb', line 438

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

#type(encoding) {|@b| ... } ⇒ Object

Yields:

  • (@b)


443
444
445
446
447
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_100.rb', line 443

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