Class: FluentCommandBuilder::TeamFoundation::V100::Workspaces

Inherits:
CommandBase
  • Object
show all
Defined in:
lib/fluent_command_builder/command_builders/team_foundation_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.



2104
2105
2106
2107
2108
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 2104

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)


2119
2120
2121
2122
2123
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 2119

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)


2114
2115
2116
2117
2118
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 2114

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

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

Yields:

  • (@b)


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

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

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

Yields:

  • (@b)


2139
2140
2141
2142
2143
2144
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 2139

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)


2109
2110
2111
2112
2113
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 2109

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)


2134
2135
2136
2137
2138
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 2134

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)


2129
2130
2131
2132
2133
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 2129

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