Class: FluentCommandBuilder::TeamFoundation::V100::Resolve

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

Returns a new instance of Resolve.



1409
1410
1411
1412
1413
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 1409

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)


1414
1415
1416
1417
1418
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 1414

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)


1429
1430
1431
1432
1433
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 1429

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)


1449
1450
1451
1452
1453
1454
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 1449

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)


1439
1440
1441
1442
1443
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 1439

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

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

Yields:

  • (@b)


1444
1445
1446
1447
1448
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 1444

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

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

Yields:

  • (@b)


1424
1425
1426
1427
1428
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 1424

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

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

Yields:

  • (@b)


1419
1420
1421
1422
1423
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 1419

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

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

Yields:

  • (@b)


1434
1435
1436
1437
1438
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 1434

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