Class: FluentCommandBuilder::TeamFoundation::V100::RemoveWorkspace

Inherits:
CommandBase
  • Object
show all
Defined in:
lib/fluent_command_builder/command_builders/team_foundation_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.



2146
2147
2148
2149
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 2146

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)


2150
2151
2152
2153
2154
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 2150

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