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.



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

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)


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

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)


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

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

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

Yields:

  • (@b)


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

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

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

Yields:

  • (@b)


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

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)


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

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)


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

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)


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

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