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.



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

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)


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

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)


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

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

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

Yields:

  • (@b)


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

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

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

Yields:

  • (@b)


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

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)


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

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)


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

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)


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

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