Class: FluentCommandBuilder::TeamFoundationTEE::V101::UnmapFolder

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

Returns a new instance of UnmapFolder.



1767
1768
1769
1770
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 1767

def initialize(underlying_builder)
  super underlying_builder
  @b.append ' workfold -unmap'
end

Instance Method Details

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

Yields:

  • (@b)


1783
1784
1785
1786
1787
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 1783

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)


1771
1772
1773
1774
1775
1776
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 1771

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

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

Yields:

  • (@b)


1788
1789
1790
1791
1792
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 1788

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

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

Yields:

  • (@b)


1777
1778
1779
1780
1781
1782
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 1777

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