Class: FluentCommandBuilder::TeamFoundationTEE::V100::DeleteWorkspace
- Inherits:
-
CommandBase
- Object
- CommandBase
- FluentCommandBuilder::TeamFoundationTEE::V100::DeleteWorkspace
show all
- Defined in:
- lib/fluent_command_builder/command_builders/team_foundation_tee_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.
1766
1767
1768
1769
1770
|
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_100.rb', line 1766
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
1771
1772
1773
1774
1775
|
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_100.rb', line 1771
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
1776
1777
1778
1779
1780
1781
|
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_100.rb', line 1776
def login(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
|