Class: FluentCommandBuilder::Tf::V2010::MapFolder

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, server_folder, local_folder) ⇒ MapFolder

Returns a new instance of MapFolder.



1885
1886
1887
1888
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 1885

def initialize(builder, server_folder, local_folder)
  super builder
  @builder.append " workfold /map #{@builder.format server_folder} #{@builder.format local_folder}"
end

Instance Method Details

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

Yields:

  • (@builder)


1901
1902
1903
1904
1905
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 1901

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)


1889
1890
1891
1892
1893
1894
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 1889

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

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

Yields:

  • (@builder)


1895
1896
1897
1898
1899
1900
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 1895

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