Class: FluentCommandBuilder::TeamFoundationTEE::V101::Resolve

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

Returns a new instance of Resolve.



1377
1378
1379
1380
1381
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 1377

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

Instance Method Details

#auto(resolution) {|@b| ... } ⇒ Object

Yields:

  • (@b)


1382
1383
1384
1385
1386
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 1382

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

#convert_to_type(convert_type) {|@b| ... } ⇒ Object

Yields:

  • (@b)


1397
1398
1399
1400
1401
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 1397

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

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

Yields:

  • (@b)


1417
1418
1419
1420
1421
1422
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 1417

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

#new_name(path) {|@b| ... } ⇒ Object

Yields:

  • (@b)


1407
1408
1409
1410
1411
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 1407

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

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

Yields:

  • (@b)


1412
1413
1414
1415
1416
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 1412

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

#override_type(override_type) {|@b| ... } ⇒ Object

Yields:

  • (@b)


1392
1393
1394
1395
1396
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 1392

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

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

Yields:

  • (@b)


1387
1388
1389
1390
1391
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 1387

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

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

Yields:

  • (@b)


1402
1403
1404
1405
1406
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 1402

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