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.



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

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)


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

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)


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

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)


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

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)


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

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

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

Yields:

  • (@b)


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

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

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

Yields:

  • (@b)


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

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

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

Yields:

  • (@b)


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

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

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

Yields:

  • (@b)


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

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