Class: FluentCommandBuilder::TeamFoundationTEE::V101::CreateWorkspace

Inherits:
CommandBase
  • Object
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.



1840
1841
1842
1843
1844
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 1840

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

Yields:

  • (@b)


1866
1867
1868
1869
1870
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 1866

def collection(team_project_collection_url)
  @b.append " -collection:#{@b.format team_project_collection_url}"
  yield @b if block_given?
  self
end

#comment(comment) {|@b| ... } ⇒ Object

Yields:

  • (@b)


1861
1862
1863
1864
1865
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 1861

def comment(comment)
  @b.append " -comment:#{@b.format comment}"
  yield @b if block_given?
  self
end

#computer(computer_name) {|@b| ... } ⇒ Object

Yields:

  • (@b)


1856
1857
1858
1859
1860
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 1856

def computer(computer_name)
  @b.append " -computer:#{@b.format computer_name}"
  yield @b if block_given?
  self
end

#login(username, password = nil) {|@b| ... } ⇒ Object

Yields:

  • (@b)


1876
1877
1878
1879
1880
1881
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 1876

def (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

Yields:

  • (@b)


1845
1846
1847
1848
1849
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 1845

def no_prompt
  @b.append ' -noPrompt'
  yield @b if block_given?
  self
end

#permission(permission) {|@b| ... } ⇒ Object

Yields:

  • (@b)


1871
1872
1873
1874
1875
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 1871

def permission(permission)
  @b.append " -permission:#{@b.format permission}"
  yield @b if block_given?
  self
end

#template(workspace_name, workspace_owner = nil) {|@b| ... } ⇒ Object

Yields:

  • (@b)


1850
1851
1852
1853
1854
1855
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 1850

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