Class: FluentCommandBuilder::TeamFoundationTEE::V100::Workspaces

Inherits:
CommandBase
  • Object
show all
Defined in:
lib/fluent_command_builder/command_builders/team_foundation_tee_100.rb

Instance Method Summary collapse

Methods inherited from CommandBase

#configure!, #execute!, #to_s

Constructor Details

#initialize(underlying_builder, workspace_name = nil) ⇒ Workspaces

Returns a new instance of Workspaces.



1829
1830
1831
1832
1833
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_100.rb', line 1829

def initialize(underlying_builder, workspace_name=nil)
  super underlying_builder
  @b.append ' workspaces'
  @b.append " #{@b.format workspace_name}" unless workspace_name.nil?
end

Instance Method Details

#collection(team_project_collection_url) {|@b| ... } ⇒ Object

Yields:

  • (@b)


1844
1845
1846
1847
1848
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_100.rb', line 1844

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

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

Yields:

  • (@b)


1839
1840
1841
1842
1843
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_100.rb', line 1839

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

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

Yields:

  • (@b)


1849
1850
1851
1852
1853
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_100.rb', line 1849

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

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

Yields:

  • (@b)


1864
1865
1866
1867
1868
1869
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_100.rb', line 1864

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

#owner(owner_name) {|@b| ... } ⇒ Object

Yields:

  • (@b)


1834
1835
1836
1837
1838
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_100.rb', line 1834

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

#update_computer_name(old_computer_name) {|@b| ... } ⇒ Object

Yields:

  • (@b)


1859
1860
1861
1862
1863
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_100.rb', line 1859

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

#update_user_name(old_user_name) {|@b| ... } ⇒ Object

Yields:

  • (@b)


1854
1855
1856
1857
1858
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_100.rb', line 1854

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