Class: FluentCommandBuilder::TeamFoundationTEE::V100::Undelete
- Inherits:
-
CommandBase
- Object
- CommandBase
- FluentCommandBuilder::TeamFoundationTEE::V100::Undelete
show all
- Defined in:
- lib/fluent_command_builder/command_builders/team_foundation_tee_100.rb
Instance Method Summary
collapse
Methods inherited from CommandBase
#configure!, #execute!, #to_s
Constructor Details
#initialize(underlying_builder, item_spec, deletion_id = nil) ⇒ Undelete
Returns a new instance of Undelete.
1465
1466
1467
1468
1469
|
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_100.rb', line 1465
def initialize(underlying_builder, item_spec, deletion_id=nil)
super underlying_builder
@b.append " undelete #{@b.format item_spec}"
@b.append ";#{@b.format deletion_id}" unless deletion_id.nil?
end
|
Instance Method Details
#lock(lock_type) {|@b| ... } ⇒ Object
1475
1476
1477
1478
1479
|
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_100.rb', line 1475
def lock(lock_type)
@b.append " -lock:#{@b.format lock_type}"
yield @b if block_given?
self
end
|
#login(username, password = nil) {|@b| ... } ⇒ Object
1485
1486
1487
1488
1489
1490
|
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_100.rb', line 1485
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_get {|@b| ... } ⇒ Object
1470
1471
1472
1473
1474
|
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_100.rb', line 1470
def no_get
@b.append ' -noGet'
yield @b if block_given?
self
end
|
#recursive {|@b| ... } ⇒ Object
1480
1481
1482
1483
1484
|
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_100.rb', line 1480
def recursive
@b.append ' -recursive'
yield @b if block_given?
self
end
|