Class: FluentCommandBuilder::AppCfgPython::V16::VacuumIndexes

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

Instance Method Summary collapse

Methods inherited from CommandBase

#execute!, #to_s

Constructor Details

#initialize(builder, directory) ⇒ VacuumIndexes

Returns a new instance of VacuumIndexes.



552
553
554
555
# File 'lib/fluent_command_builder/command_builders/appcfg_python_16.rb', line 552

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

Instance Method Details

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

Yields:

  • (@builder)


556
557
558
559
560
# File 'lib/fluent_command_builder/command_builders/appcfg_python_16.rb', line 556

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