Class: FluentCommandBuilder::TeamFoundation::V100::DeleteWorkspace

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

Returns a new instance of DeleteWorkspace.



2041
2042
2043
2044
2045
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 2041

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)


2046
2047
2048
2049
2050
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 2046

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)


2051
2052
2053
2054
2055
2056
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 2051

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