Class: FluentCommandBuilder::TeamFoundationTEE::V101::Workspaces

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 = nil) ⇒ Workspaces

Returns a new instance of Workspaces.



1947
1948
1949
1950
1951
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 1947

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)


1962
1963
1964
1965
1966
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 1962

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)


1957
1958
1959
1960
1961
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 1957

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

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

Yields:

  • (@b)


1967
1968
1969
1970
1971
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 1967

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

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

Yields:

  • (@b)


1982
1983
1984
1985
1986
1987
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 1982

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)


1952
1953
1954
1955
1956
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 1952

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)


1977
1978
1979
1980
1981
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 1977

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)


1972
1973
1974
1975
1976
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 1972

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