Class: FlyingSphinx::Commands::Base

Inherits:
ThinkingSphinx::Commands::Base
  • Object
show all
Defined in:
lib/flying_sphinx/commands/base.rb

Constant Summary collapse

DEFAULT_TIMEOUT =
60
INDEX_TIMEOUT =

3 hours

60 * 60 * 3
ERROR_MESSAGES =
{
  "BLOCKED"      => <<-TXT,
  "UNCONFIGURED" => <<-TXT,
  "INVALID PATH" => <<-TXT
INVALID PATH: Something has gone wrong with the uploading of your configuration.
Please contact Flying Sphinx Support: http://support.flying-sphinx.com
  TXT
}.freeze

Instance Method Summary collapse

Instance Method Details

#call_with_handlingObject



20
21
22
23
24
# File 'lib/flying_sphinx/commands/base.rb', line 20

def call_with_handling
  call
rescue FlyingSphinx::Error => error
  handle_failure error
end