Class: FluentCommandBuilder::TeamFoundationTEE::V101::CheckinShelveset

Inherits:
CommandBase
  • Object
show all
Defined in:
lib/fluent_command_builder/command_builders/team_foundation_tee_101.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.



423
424
425
426
427
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 423

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)


449
450
451
452
453
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 449

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

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

Yields:

  • (@b)


428
429
430
431
432
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 428

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

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

Yields:

  • (@b)


444
445
446
447
448
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 444

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)


454
455
456
457
458
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 454

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

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

Yields:

  • (@b)


438
439
440
441
442
443
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 438

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)


433
434
435
436
437
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 433

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