Class: FluentCommandBuilder::Tf::V2010::Undelete

Inherits:
CommandBase
  • Object
show all
Defined in:
lib/fluent_command_builder/command_builders/tf_2010.rb

Instance Method Summary collapse

Methods inherited from CommandBase

#execute!, #to_s

Constructor Details

#initialize(builder, item_spec, deletion_id = nil) ⇒ Undelete

Returns a new instance of Undelete.



1677
1678
1679
1680
1681
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 1677

def initialize(builder, item_spec, deletion_id=nil)
  super builder
  @builder.append " undelete #{@builder.format item_spec}"
  @builder.append ";#{@builder.format deletion_id}" unless deletion_id.nil?
end

Instance Method Details

#lock(lock_type) {|@builder| ... } ⇒ Object

Yields:

  • (@builder)


1687
1688
1689
1690
1691
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 1687

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

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

Yields:

  • (@builder)


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

def (username, password=nil)
  @builder.append " /login:#{@builder.format username}"
  @builder.append ",#{@builder.format password}" unless password.nil?
  yield @builder if block_given?
  self
end

#no_get {|@builder| ... } ⇒ Object

Yields:

  • (@builder)


1682
1683
1684
1685
1686
# File 'lib/fluent_command_builder/command_builders/tf_2010.rb', line 1682

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

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

Yields:

  • (@builder)


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

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