Class: FluentCommandBuilder::Tf::TEE2010::DeleteWorkspace

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, workspace_owner = nil) ⇒ DeleteWorkspace



1849
1850
1851
1852
1853
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 1849

def initialize(builder, workspace_name, workspace_owner=nil)
  super builder
  @builder.append " workspace -delete #{@builder.format workspace_name}"
  @builder.append ";#{@builder.format workspace_owner}" unless workspace_owner.nil?
end

Instance Method Details

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

Yields:

  • (@builder)


1854
1855
1856
1857
1858
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 1854

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

#login(username, password = nil) {|@builder| ... } ⇒ Object

Yields:

  • (@builder)


1859
1860
1861
1862
1863
1864
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 1859

def (username, password=nil)
  @builder.append " -login:#{@builder.format username}"
  @builder.append ",#{@builder.format password}" unless password.nil?
  yield @builder if block_given?
  self
end