Class: FluentCommandBuilder::TeamFoundation::V100::Configure

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, path_of_team_project = nil) ⇒ Configure

Returns a new instance of Configure.



498
499
500
501
502
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 498

def initialize(underlying_builder, path_of_team_project=nil)
  super underlying_builder
  @b.append ' configure'
  @b.append " #{@b.format path_of_team_project}" unless path_of_team_project.nil?
end

Instance Method Details

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

Yields:

  • (@b)


503
504
505
506
507
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 503

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)


508
509
510
511
512
513
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 508

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