class ThinkingSphinx::Commands::IndexSQL

Public Instance Methods

call() click to toggle source
# File lib/thinking_sphinx/commands/index_sql.rb, line 4
def call
  if indices.empty?
    ThinkingSphinx.before_index_hooks.each { |hook| hook.call }
  end

  configuration.indexing_strategy.call(indices) do |index_names|
    configuration.guarding_strategy.call(index_names) do |names|
      controller.index *names, :verbose => options[:verbose]
    end
  end
end

Private Instance Methods

indices() click to toggle source
# File lib/thinking_sphinx/commands/index_sql.rb, line 18
def indices
  options[:indices] || []
end
type() click to toggle source
# File lib/thinking_sphinx/commands/index_sql.rb, line 22
def type
  'indexing'
end