Class: FluentCommandBuilder::TeamFoundation::V100::CheckinShelveset

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, shelveset_name, shelveset_owner = nil) ⇒ CheckinShelveset

Returns a new instance of CheckinShelveset.



431
432
433
434
435
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 431

def initialize(underlying_builder, shelveset_name, shelveset_owner=nil)
  super underlying_builder
  @b.append " checkin /shelveset:#{@b.format shelveset_name}"
  @b.append ";#{@b.format shelveset_owner}" unless shelveset_owner.nil?
end

Instance Method Details

#author(author_name) {|@b| ... } ⇒ Object

Yields:

  • (@b)


457
458
459
460
461
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 457

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

#bypass {|@b| ... } ⇒ Object

Yields:

  • (@b)


436
437
438
439
440
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 436

def bypass
  @b.append ' /bypass'
  yield @b if block_given?
  self
end

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

Yields:

  • (@b)


452
453
454
455
456
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 452

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

#force {|@b| ... } ⇒ Object

Yields:

  • (@b)


462
463
464
465
466
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 462

def force
  @b.append ' /force'
  yield @b if block_given?
  self
end

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

Yields:

  • (@b)


446
447
448
449
450
451
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 446

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

#no_prompt {|@b| ... } ⇒ Object

Yields:

  • (@b)


441
442
443
444
445
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 441

def no_prompt
  @b.append ' /noPrompt'
  yield @b if block_given?
  self
end