Class: FluentCommandBuilder::Tf::V2010::UnmapFolder

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

Instance Method Summary collapse

Methods inherited from CommandBase

#execute!, #to_s

Constructor Details

#initialize(builder) ⇒ UnmapFolder

Returns a new instance of UnmapFolder.



1908
1909
1910
1911
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 1908

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

Instance Method Details

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

Yields:

  • (@builder)


1924
1925
1926
1927
1928
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 1924

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

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

Yields:

  • (@builder)


1912
1913
1914
1915
1916
1917
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 1912

def (username, password=nil)
  @builder.append " /login:#{@builder.format username}"
  @builder.append ",#{@builder.format password}" unless password.nil?
  yield @builder if block_given?
  self
end

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

Yields:

  • (@builder)


1929
1930
1931
1932
1933
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 1929

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

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

Yields:

  • (@builder)


1918
1919
1920
1921
1922
1923
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 1918

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