Class: FluentCommandBuilder::TeamFoundationTEE::V100::Undo

Inherits:
CommandBase
  • Object
show all
Defined in:
lib/fluent_command_builder/command_builders/team_foundation_tee_100.rb

Instance Method Summary collapse

Methods inherited from CommandBase

#configure!, #execute!, #to_s

Constructor Details

#initialize(underlying_builder, item_spec) ⇒ Undo

Returns a new instance of Undo.



1494
1495
1496
1497
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_100.rb', line 1494

def initialize(underlying_builder, item_spec)
  super underlying_builder
  @b.append " undo #{@b.format item_spec}"
end

Instance Method Details

#collection(team_project_collection_url) {|@b| ... } ⇒ Object

Yields:

  • (@b)


1520
1521
1522
1523
1524
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_100.rb', line 1520

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

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

Yields:

  • (@b)


1514
1515
1516
1517
1518
1519
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_100.rb', line 1514

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)


1509
1510
1511
1512
1513
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_100.rb', line 1509

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

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

Yields:

  • (@b)


1504
1505
1506
1507
1508
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_100.rb', line 1504

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

#workspace(workspace_name, workspace_owner = nil) {|@b| ... } ⇒ Object

Yields:

  • (@b)


1498
1499
1500
1501
1502
1503
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_100.rb', line 1498

def workspace(workspace_name, workspace_owner=nil)
  @b.append " -workspace:#{@b.format workspace_name}"
  @b.append ";#{@b.format workspace_owner}" unless workspace_owner.nil?
  yield @b if block_given?
  self
end