Class: FluentCommandBuilder::TeamFoundation::V100::RollbackChangeset
- Inherits:
-
CommandBase
- Object
- CommandBase
- FluentCommandBuilder::TeamFoundation::V100::RollbackChangeset
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, changeset_from, changeset_to = nil, item_spec = nil) ⇒ RollbackChangeset
Returns a new instance of RollbackChangeset.
1494
1495
1496
1497
1498
1499
|
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 1494
def initialize(underlying_builder, changeset_from, changeset_to=nil, item_spec=nil)
super underlying_builder
@b.append " rollback /changeset:#{@b.format changeset_from}"
@b.append "~#{@b.format changeset_to}" unless changeset_to.nil?
@b.append " #{@b.format item_spec}" unless item_spec.nil?
end
|
Instance Method Details
#keep_merge_history {|@b| ... } ⇒ Object
1515
1516
1517
1518
1519
|
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 1515
def keep_merge_history
@b.append ' /keepMergeHistory'
yield @b if block_given?
self
end
|
#lock(lock_type) {|@b| ... } ⇒ Object
1505
1506
1507
1508
1509
|
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 1505
def lock(lock_type)
@b.append " /lock:#{@b.format lock_type}"
yield @b if block_given?
self
end
|
#login(username, password = nil) {|@b| ... } ⇒ Object
1520
1521
1522
1523
1524
1525
|
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 1520
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
1526
1527
1528
1529
1530
|
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 1526
def no_prompt
@b.append ' /noPrompt'
yield @b if block_given?
self
end
|
#recursive {|@b| ... } ⇒ Object
1500
1501
1502
1503
1504
|
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 1500
def recursive
@b.append ' /recursive'
yield @b if block_given?
self
end
|
#version(version_spec) {|@b| ... } ⇒ Object
1510
1511
1512
1513
1514
|
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 1510
def version(version_spec)
@b.append " /version:#{@b.format version_spec}"
yield @b if block_given?
self
end
|