Class: FluentCommandBuilder::Tf::V2010::DeleteProxyRecord

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

Returns a new instance of DeleteProxyRecord.



1343
1344
1345
1346
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 1343

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

Instance Method Details

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

Yields:

  • (@builder)


1347
1348
1349
1350
1351
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 1347

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)


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

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