Class: FluentCommandBuilder::Tf::V2010::AddProxyRecord

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

Returns a new instance of AddProxyRecord.



1306
1307
1308
1309
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 1306

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

Instance Method Details

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

Yields:

  • (@builder)


1330
1331
1332
1333
1334
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 1330

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

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

Yields:

  • (@builder)


1325
1326
1327
1328
1329
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 1325

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

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

Yields:

  • (@builder)


1320
1321
1322
1323
1324
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 1320

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

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

Yields:

  • (@builder)


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

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

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

Yields:

  • (@builder)


1310
1311
1312
1313
1314
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 1310

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

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

Yields:

  • (@builder)


1315
1316
1317
1318
1319
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 1315

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