Class: FluentCommandBuilder::TeamFoundationTEE::V101::ShowServerFolderMappings

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

Returns a new instance of ShowServerFolderMappings.



1720
1721
1722
1723
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 1720

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

Instance Method Details

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

Yields:

  • (@b)


1736
1737
1738
1739
1740
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 1736

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)


1724
1725
1726
1727
1728
1729
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 1724

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

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

Yields:

  • (@b)


1730
1731
1732
1733
1734
1735
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 1730

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