Class: FluentCommandBuilder::TeamFoundationTEE::V101::Undo

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) ⇒ Undo

Returns a new instance of Undo.



1612
1613
1614
1615
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 1612

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)


1638
1639
1640
1641
1642
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 1638

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)


1632
1633
1634
1635
1636
1637
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 1632

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)


1627
1628
1629
1630
1631
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 1627

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

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

Yields:

  • (@b)


1622
1623
1624
1625
1626
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 1622

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

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

Yields:

  • (@b)


1616
1617
1618
1619
1620
1621
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 1616

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