Class: FluentCommandBuilder::TeamFoundation::V100::CreateWorkspace
- Inherits:
-
CommandBase
- Object
- CommandBase
- FluentCommandBuilder::TeamFoundation::V100::CreateWorkspace
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) ⇒ CreateWorkspace
Returns a new instance of CreateWorkspace.
1997
1998
1999
2000
2001
|
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 1997
def initialize(underlying_builder, workspace_name, workspace_owner=nil)
super underlying_builder
@b.append " workspace /new #{@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
2023
2024
2025
2026
2027
|
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 2023
def collection(team_project_collection_url)
@b.append " /collection:#{@b.format team_project_collection_url}"
yield @b if block_given?
self
end
|
2018
2019
2020
2021
2022
|
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 2018
def ()
@b.append " /comment:#{@b.format }"
yield @b if block_given?
self
end
|
#computer(computer_name) {|@b| ... } ⇒ Object
2013
2014
2015
2016
2017
|
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 2013
def computer(computer_name)
@b.append " /computer:#{@b.format computer_name}"
yield @b if block_given?
self
end
|
#login(username, password = nil) {|@b| ... } ⇒ Object
2033
2034
2035
2036
2037
2038
|
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 2033
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
|
#no_prompt {|@b| ... } ⇒ Object
2002
2003
2004
2005
2006
|
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 2002
def no_prompt
@b.append ' /noPrompt'
yield @b if block_given?
self
end
|
#permission(permission) {|@b| ... } ⇒ Object
2028
2029
2030
2031
2032
|
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 2028
def permission(permission)
@b.append " /permission:#{@b.format permission}"
yield @b if block_given?
self
end
|
#template(workspace_name, workspace_owner = nil) {|@b| ... } ⇒ Object
2007
2008
2009
2010
2011
2012
|
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 2007
def template(workspace_name, workspace_owner=nil)
@b.append " /template:#{@b.format workspace_name}"
@b.append ";#{@b.format workspace_owner}" unless workspace_owner.nil?
yield @b if block_given?
self
end
|