Class: FluentCommandBuilder::Tf::TEE2010::RemoveWorkspace

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

Instance Method Summary collapse

Methods inherited from CommandBase

#execute!, #to_s

Constructor Details

#initialize(builder, workspace_name) ⇒ RemoveWorkspace



1954
1955
1956
1957
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 1954

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

Instance Method Details

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

Yields:

  • (@builder)


1958
1959
1960
1961
1962
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 1958

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