Class: FluentCommandBuilder::TeamFoundation::V100::UnmapFolder

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

Returns a new instance of UnmapFolder.



1923
1924
1925
1926
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 1923

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

Instance Method Details

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

Yields:

  • (@b)


1939
1940
1941
1942
1943
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 1939

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)


1927
1928
1929
1930
1931
1932
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 1927

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)


1944
1945
1946
1947
1948
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 1944

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

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

Yields:

  • (@b)


1933
1934
1935
1936
1937
1938
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 1933

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