Class: FluentCommandBuilder::Tf::TEE2010::Undelete

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



1548
1549
1550
1551
1552
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 1548

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)


1558
1559
1560
1561
1562
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 1558

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)


1568
1569
1570
1571
1572
1573
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 1568

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)


1553
1554
1555
1556
1557
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 1553

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

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

Yields:

  • (@builder)


1563
1564
1565
1566
1567
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 1563

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