Class: FluentCommandBuilder::TeamFoundation::V100::ConfigureProxy

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

Returns a new instance of ConfigureProxy.



1304
1305
1306
1307
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 1304

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

Instance Method Details

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

Yields:

  • (@b)


1308
1309
1310
1311
1312
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 1308

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

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

Yields:

  • (@b)


1313
1314
1315
1316
1317
1318
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 1313

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