Class: FluentCommandBuilder::TeamFoundationTEE::V100::MapFolder

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

Instance Method Summary collapse

Methods inherited from CommandBase

#configure!, #execute!, #to_s

Constructor Details

#initialize(underlying_builder, server_folder, local_folder) ⇒ MapFolder

Returns a new instance of MapFolder.



1625
1626
1627
1628
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_100.rb', line 1625

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

Instance Method Details

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

Yields:

  • (@b)


1641
1642
1643
1644
1645
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_100.rb', line 1641

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)


1629
1630
1631
1632
1633
1634
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_100.rb', line 1629

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)


1635
1636
1637
1638
1639
1640
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_100.rb', line 1635

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