Class: FluentCommandBuilder::TeamFoundation::V100::ReplaceShelveset

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

Returns a new instance of ReplaceShelveset.



1533
1534
1535
1536
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 1533

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)


1537
1538
1539
1540
1541
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 1537

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

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

Yields:

  • (@b)


1552
1553
1554
1555
1556
1557
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 1552

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)


1547
1548
1549
1550
1551
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 1547

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

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

Yields:

  • (@b)


1542
1543
1544
1545
1546
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 1542

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