Class: FluentCommandBuilder::TeamFoundation::V100::RollbackToVersion

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, version_spec, item_spec) ⇒ RollbackToVersion

Returns a new instance of RollbackToVersion.



1458
1459
1460
1461
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 1458

def initialize(underlying_builder, version_spec, item_spec)
  super underlying_builder
  @b.append " rollback /toVersion:#{@b.format version_spec} #{@b.format item_spec}"
end

Instance Method Details

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

Yields:

  • (@b)


1477
1478
1479
1480
1481
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 1477

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

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

Yields:

  • (@b)


1467
1468
1469
1470
1471
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 1467

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)


1482
1483
1484
1485
1486
1487
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 1482

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

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

Yields:

  • (@b)


1488
1489
1490
1491
1492
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 1488

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

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

Yields:

  • (@b)


1462
1463
1464
1465
1466
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 1462

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

#version(version_spec) {|@b| ... } ⇒ Object

Yields:

  • (@b)


1472
1473
1474
1475
1476
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 1472

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