Class: FluentCommandBuilder::Tf::V2010::ShowServerFolderMappings

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

Returns a new instance of ShowServerFolderMappings.



1862
1863
1864
1865
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 1862

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

Instance Method Details

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

Yields:

  • (@builder)


1878
1879
1880
1881
1882
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 1878

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)


1866
1867
1868
1869
1870
1871
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 1866

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)


1872
1873
1874
1875
1876
1877
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 1872

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