Class: FluentCommandBuilder::TeamFoundationTEE::V100::RemoveWorkspace

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, workspace_name) ⇒ RemoveWorkspace

Returns a new instance of RemoveWorkspace.



1871
1872
1873
1874
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_100.rb', line 1871

def initialize(underlying_builder, workspace_name)
  super underlying_builder
  @b.append " workspaces -remove:#{@b.format workspace_name, ','}"
end

Instance Method Details

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

Yields:

  • (@b)


1875
1876
1877
1878
1879
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_100.rb', line 1875

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