Class: FluentCommandBuilder::Tf::V2010::ConfigureProxy

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

Returns a new instance of ConfigureProxy.



1289
1290
1291
1292
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 1289

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

Instance Method Details

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

Yields:

  • (@builder)


1293
1294
1295
1296
1297
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 1293

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)


1298
1299
1300
1301
1302
1303
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 1298

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