Class: FluentCommandBuilder::TeamFoundation::V100::Branches

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, item_spec) ⇒ Branches



309
310
311
312
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 309

def initialize(underlying_builder, item_spec)
  super underlying_builder
  @b.append " branches #{@b.format item_spec}"
end

Instance Method Details

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

Yields:

  • (@b)


318
319
320
321
322
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 318

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)


323
324
325
326
327
328
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 323

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

#version(version_spec) {|@b| ... } ⇒ Object

Yields:

  • (@b)


313
314
315
316
317
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 313

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