Class: FluentCommandBuilder::Tf::V2010::RemoveWorkspace

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

Instance Method Summary collapse

Methods inherited from CommandBase

#execute!, #to_s

Constructor Details

#initialize(builder, workspace_name) ⇒ RemoveWorkspace



2131
2132
2133
2134
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 2131

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)


2135
2136
2137
2138
2139
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 2135

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