Class: FluentCommandBuilder::TeamFoundation::V100::ModifyWorkspace
- Inherits:
-
CommandBase
- Object
- CommandBase
- FluentCommandBuilder::TeamFoundation::V100::ModifyWorkspace
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 = nil, workspace_owner = nil) ⇒ ModifyWorkspace
Returns a new instance of ModifyWorkspace.
2059
2060
2061
2062
2063
2064
|
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 2059
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
2075
2076
2077
2078
2079
|
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 2075
def collection(team_project_collection_url)
@b.append " /collection:#{@b.format team_project_collection_url}"
yield @b if block_given?
self
end
|
2070
2071
2072
2073
2074
|
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 2070
def ()
@b.append " /comment:#{@b.format comment}"
yield @b if block_given?
self
end
|
#computer(computer_name) {|@b| ... } ⇒ Object
2065
2066
2067
2068
2069
|
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 2065
def computer(computer_name)
@b.append " /computer:#{@b.format computer_name}"
yield @b if block_given?
self
end
|
#login(username, password = nil) {|@b| ... } ⇒ Object
2085
2086
2087
2088
2089
2090
|
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 2085
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
2091
2092
2093
2094
2095
|
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 2091
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
2096
2097
2098
2099
2100
|
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 2096
def new_owner(owner_name)
@b.append " /newOwner:#{@b.format owner_name}"
yield @b if block_given?
self
end
|
#permission(permission) {|@b| ... } ⇒ Object
2080
2081
2082
2083
2084
|
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 2080
def permission(permission)
@b.append " /permission:#{@b.format permission}"
yield @b if block_given?
self
end
|