Class: FluentCommandBuilder::TeamFoundation::V100::ListProxyRecords

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, url) ⇒ ListProxyRecords

Returns a new instance of ListProxyRecords.



1375
1376
1377
1378
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 1375

def initialize(underlying_builder, url)
  super underlying_builder
  @b.append " proxy /list #{@b.format url, ' '}"
end

Instance Method Details

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

Yields:

  • (@b)


1379
1380
1381
1382
1383
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 1379

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

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

Yields:

  • (@b)


1384
1385
1386
1387
1388
1389
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 1384

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