Class: FluentCommandBuilder::TeamFoundationTEE::V101::ReplaceShelveset

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) ⇒ ReplaceShelveset

Returns a new instance of ReplaceShelveset.



1424
1425
1426
1427
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 1424

def initialize(underlying_builder, shelveset_name)
  super underlying_builder
  @b.append " shelve -replace #{@b.format shelveset_name}"
end

Instance Method Details

#comment(comment) {|@b| ... } ⇒ Object

Yields:

  • (@b)


1428
1429
1430
1431
1432
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 1428

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

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

Yields:

  • (@b)


1443
1444
1445
1446
1447
1448
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 1443

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)


1438
1439
1440
1441
1442
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 1438

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

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

Yields:

  • (@b)


1433
1434
1435
1436
1437
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 1433

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