Class: FluentCommandBuilder::TeamFoundationTEE::V101::DeleteWorkspace

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

Instance Method Summary collapse

Methods inherited from CommandBase

#configure!, #execute!, #to_s

Constructor Details

#initialize(underlying_builder, workspace_name, workspace_owner = nil) ⇒ DeleteWorkspace

Returns a new instance of DeleteWorkspace.



1884
1885
1886
1887
1888
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 1884

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

Instance Method Details

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

Yields:

  • (@b)


1889
1890
1891
1892
1893
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 1889

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

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

Yields:

  • (@b)


1894
1895
1896
1897
1898
1899
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 1894

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