Class: FluentCommandBuilder::TeamFoundationTEE::V101::Undelete

Inherits:
CommandBase
  • Object
show all
Defined in:
lib/fluent_command_builder/command_builders/team_foundation_tee_101.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.



1583
1584
1585
1586
1587
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 1583

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

Yields:

  • (@b)


1593
1594
1595
1596
1597
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 1593

def lock(lock_type)
  @b.append " -lock:#{@b.format lock_type}"
  yield @b if block_given?
  self
end

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

Yields:

  • (@b)


1603
1604
1605
1606
1607
1608
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 1603

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_get {|@b| ... } ⇒ Object

Yields:

  • (@b)


1588
1589
1590
1591
1592
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 1588

def no_get
  @b.append ' -noGet'
  yield @b if block_given?
  self
end

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

Yields:

  • (@b)


1598
1599
1600
1601
1602
# File 'lib/fluent_command_builder/command_builders/team_foundation_tee_101.rb', line 1598

def recursive
  @b.append ' -recursive'
  yield @b if block_given?
  self
end