Class: FluentCommandBuilder::TeamFoundation::V100::Undo

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

Returns a new instance of Undo.



1721
1722
1723
1724
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 1721

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)


1747
1748
1749
1750
1751
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 1747

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)


1741
1742
1743
1744
1745
1746
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 1741

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)


1736
1737
1738
1739
1740
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 1736

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

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

Yields:

  • (@b)


1731
1732
1733
1734
1735
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 1731

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

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

Yields:

  • (@b)


1725
1726
1727
1728
1729
1730
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 1725

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