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
1495
1496
1497
1498
1499
1500
|
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 1495
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
1516
1517
1518
1519
1520
|
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 1516
def keep_merge_history
@b.append ' /keepMergeHistory'
yield @b if block_given?
self
end
|
#lock(lock_type) {|@b| ... } ⇒ Object
1506
1507
1508
1509
1510
|
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 1506
def lock(lock_type)
@b.append " /lock:#{@b.format lock_type}"
yield @b if block_given?
self
end
|
#login(username, password = nil) {|@b| ... } ⇒ Object
1521
1522
1523
1524
1525
1526
|
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 1521
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
1527
1528
1529
1530
1531
|
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 1527
def no_prompt
@b.append ' /noPrompt'
yield @b if block_given?
self
end
|
#recursive {|@b| ... } ⇒ Object
1501
1502
1503
1504
1505
|
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 1501
def recursive
@b.append ' /recursive'
yield @b if block_given?
self
end
|
#version(version_spec) {|@b| ... } ⇒ Object
1511
1512
1513
1514
1515
|
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 1511
def version(version_spec)
@b.append " /version:#{@b.format version_spec}"
yield @b if block_given?
self
end
|