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

Returns a new instance of Undelete.



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

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)


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

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)


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

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)


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

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

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

Yields:

  • (@b)


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

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