Class: FluentCommandBuilder::TeamFoundationTEE::V101::ModifyWorkspace
- Inherits:
-
CommandBase
- Object
- CommandBase
- FluentCommandBuilder::TeamFoundationTEE::V101::ModifyWorkspace
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 = nil, workspace_owner = nil) ⇒ ModifyWorkspace
Returns a new instance of ModifyWorkspace.
1902
1903
1904
1905
1906
1907
|
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 1902
def initialize(underlying_builder, workspace_name=nil, workspace_owner=nil)
super underlying_builder
@b.append ' workspace '
@b.append "#{@b.format workspace_name}" unless workspace_name.nil?
@b.append ";#{@b.format workspace_owner}" unless workspace_owner.nil?
end
|
Instance Method Details
#collection(team_project_collection_url) {|@b| ... } ⇒ Object
1918
1919
1920
1921
1922
|
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 1918
def collection(team_project_collection_url)
@b.append " -collection:#{@b.format team_project_collection_url}"
yield @b if block_given?
self
end
|
1913
1914
1915
1916
1917
|
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 1913
def ()
@b.append " -comment:#{@b.format }"
yield @b if block_given?
self
end
|
#computer(computer_name) {|@b| ... } ⇒ Object
1908
1909
1910
1911
1912
|
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 1908
def computer(computer_name)
@b.append " -computer:#{@b.format computer_name}"
yield @b if block_given?
self
end
|
#login(username, password = nil) {|@b| ... } ⇒ Object
1928
1929
1930
1931
1932
1933
|
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 1928
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
|
#new_name(workspace_name) {|@b| ... } ⇒ Object
1934
1935
1936
1937
1938
|
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 1934
def new_name(workspace_name)
@b.append " -newName:#{@b.format workspace_name}"
yield @b if block_given?
self
end
|
#new_owner(owner_name) {|@b| ... } ⇒ Object
1939
1940
1941
1942
1943
|
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 1939
def new_owner(owner_name)
@b.append " -newOwner:#{@b.format owner_name}"
yield @b if block_given?
self
end
|
#permission(permission) {|@b| ... } ⇒ Object
1923
1924
1925
1926
1927
|
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 1923
def permission(permission)
@b.append " -permission:#{@b.format permission}"
yield @b if block_given?
self
end
|