Class: FluentCommandBuilder::Tf::V2010::ListProxyRecords

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

Returns a new instance of ListProxyRecords.



1360
1361
1362
1363
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 1360

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

Instance Method Details

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

Yields:

  • (@builder)


1364
1365
1366
1367
1368
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 1364

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

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

Yields:

  • (@builder)


1369
1370
1371
1372
1373
1374
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 1369

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