Class: FluentCommandBuilder::TeamFoundationTEE::V101::CreateWorkspace
- Inherits:
-
CommandBase
- Object
- CommandBase
- FluentCommandBuilder::TeamFoundationTEE::V101::CreateWorkspace
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, workspace_owner = nil) ⇒ CreateWorkspace
Returns a new instance of CreateWorkspace.
1841
1842
1843
1844
1845
|
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 1841
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
1867
1868
1869
1870
1871
|
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 1867
def collection(team_project_collection_url)
@b.append " -collection:#{@b.format team_project_collection_url}"
yield @b if block_given?
self
end
|
1862
1863
1864
1865
1866
|
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 1862
def ()
@b.append " -comment:#{@b.format comment}"
yield @b if block_given?
self
end
|
#computer(computer_name) {|@b| ... } ⇒ Object
1857
1858
1859
1860
1861
|
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 1857
def computer(computer_name)
@b.append " -computer:#{@b.format computer_name}"
yield @b if block_given?
self
end
|
#login(username, password = nil) {|@b| ... } ⇒ Object
1877
1878
1879
1880
1881
1882
|
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 1877
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
1846
1847
1848
1849
1850
|
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 1846
def no_prompt
@b.append ' -noPrompt'
yield @b if block_given?
self
end
|
#permission(permission) {|@b| ... } ⇒ Object
1872
1873
1874
1875
1876
|
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 1872
def permission(permission)
@b.append " -permission:#{@b.format permission}"
yield @b if block_given?
self
end
|
#template(workspace_name, workspace_owner = nil) {|@b| ... } ⇒ Object
1851
1852
1853
1854
1855
1856
|
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 1851
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
|