Class: FluentCommandBuilder::Tf::TEE2010::Delete

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) ⇒ Delete

Returns a new instance of Delete.



470
471
472
473
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 470

def initialize(builder, item_spec)
  super builder
  @builder.append " delete #{@builder.format item_spec}"
end

Instance Method Details

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

Yields:

  • (@builder)


474
475
476
477
478
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 474

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)


484
485
486
487
488
489
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 484

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

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

Yields:

  • (@builder)


479
480
481
482
483
# File 'lib/fluent_command_builder/command_builders/tf_tee_2010.rb', line 479

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