Class: FluentCommandBuilder::TeamFoundation::V100::ReplaceShelveset
- Inherits:
-
CommandBase
- Object
- CommandBase
- FluentCommandBuilder::TeamFoundation::V100::ReplaceShelveset
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
1537
1538
1539
1540
1541
|
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 1537
def ()
@b.append " /comment:#{@b.format }"
yield @b if block_given?
self
end
|
#login(username, password = nil) {|@b| ... } ⇒ Object
1552
1553
1554
1555
1556
1557
|
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 1552
def login(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
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
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
|