Class: FluentCommandBuilder::Tf::V2010::CheckinShelveset

Inherits:
CommandBase
  • Object
show all
Defined in:
lib/fluent_command_builder/command_builders/tf_2010.rb

Instance Method Summary collapse

Methods inherited from CommandBase

#execute!, #to_s

Constructor Details

#initialize(builder, shelveset_name, shelveset_owner = nil) ⇒ CheckinShelveset

Returns a new instance of CheckinShelveset.



416
417
418
419
420
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 416

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

Instance Method Details

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

Yields:

  • (@builder)


442
443
444
445
446
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 442

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

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

Yields:

  • (@builder)


421
422
423
424
425
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 421

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

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

Yields:

  • (@builder)


437
438
439
440
441
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 437

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

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

Yields:

  • (@builder)


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

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

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

Yields:

  • (@builder)


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

def (username, password=nil)
  @builder.append " /login:#{@builder.format username}"
  @builder.append ",#{@builder.format password}" unless password.nil?
  yield @builder if block_given?
  self
end

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

Yields:

  • (@builder)


426
427
428
429
430
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 426

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