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.



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

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)


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

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)


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

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)


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

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

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

Yields:

  • (@b)


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

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