Class: FluentCommandBuilder::TeamFoundation::V100::Undelete

Inherits:
CommandBase
  • Object
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, item_spec, deletion_id = nil) ⇒ Undelete



1693
1694
1695
1696
1697
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 1693

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)


1703
1704
1705
1706
1707
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 1703

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)


1713
1714
1715
1716
1717
1718
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 1713

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)


1698
1699
1700
1701
1702
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 1698

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

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

Yields:

  • (@b)


1708
1709
1710
1711
1712
# File 'lib/fluent_command_builder/command_builders/team_foundation_100.rb', line 1708

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