Class: FluentCommandBuilder::Tf::TEE2010::Workspaces

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

Instance Method Summary collapse

Methods inherited from CommandBase

#execute!, #to_s

Constructor Details

#initialize(builder, workspace_name = nil) ⇒ Workspaces



1911
1912
1913
1914
1915
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 1911

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

Instance Method Details

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

Yields:

  • (@builder)


1926
1927
1928
1929
1930
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 1926

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

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

Yields:

  • (@builder)


1921
1922
1923
1924
1925
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 1921

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

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

Yields:

  • (@builder)


1931
1932
1933
1934
1935
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 1931

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

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

Yields:

  • (@builder)


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

def (username, password=nil)
  @builder.append " -login:#{@builder.format username}"
  @builder.append ",#{@builder.format password}" unless password.nil?
  yield @builder if block_given?
  self
end

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

Yields:

  • (@builder)


1916
1917
1918
1919
1920
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 1916

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

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

Yields:

  • (@builder)


1941
1942
1943
1944
1945
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 1941

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

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

Yields:

  • (@builder)


1936
1937
1938
1939
1940
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 1936

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