Class: FluentCommandBuilder::TeamFoundation::V100::AddProxyRecord

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) ⇒ AddProxyRecord

Returns a new instance of AddProxyRecord.



1322
1323
1324
1325
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 1322

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

Instance Method Details

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

Yields:

  • (@b)


1346
1347
1348
1349
1350
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 1346

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

#default(scope) {|@b| ... } ⇒ Object

Yields:

  • (@b)


1341
1342
1343
1344
1345
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 1341

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

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

Yields:

  • (@b)


1336
1337
1338
1339
1340
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 1336

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

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

Yields:

  • (@b)


1351
1352
1353
1354
1355
1356
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 1351

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

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

Yields:

  • (@b)


1326
1327
1328
1329
1330
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 1326

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

#site(site_name) {|@b| ... } ⇒ Object

Yields:

  • (@b)


1331
1332
1333
1334
1335
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 1331

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