Class: FluentCommandBuilder::Tf::V2010::Workspaces

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

Instance Method Summary collapse

Methods inherited from CommandBase

#execute!, #to_s

Constructor Details

#initialize(builder, workspace_name = nil) ⇒ Workspaces

Returns a new instance of Workspaces.



2088
2089
2090
2091
2092
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 2088

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)


2103
2104
2105
2106
2107
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 2103

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)


2098
2099
2100
2101
2102
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 2098

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

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

Yields:

  • (@builder)


2108
2109
2110
2111
2112
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 2108

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

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

Yields:

  • (@builder)


2123
2124
2125
2126
2127
2128
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 2123

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)


2093
2094
2095
2096
2097
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 2093

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)


2118
2119
2120
2121
2122
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 2118

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)


2113
2114
2115
2116
2117
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 2113

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