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.



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

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)


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

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)


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

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)


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

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)


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

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

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

Yields:

  • (@b)


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

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

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

Yields:

  • (@b)


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

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

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

Yields:

  • (@b)


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

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

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

Yields:

  • (@b)


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

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