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"      => "BLOCKED: Single-index processing is not permitted for your plan level\n  TXT\n  \"UNCONFIGURED\" => <<-TXT,\nUNCONFIGURED: This command can only be run once you have provided your Sphinx\nconfiguration (via the ts:configure or ts:rebuild tasks).\n  TXT\n  \"INVALID PATH\" => <<-TXT\nINVALID PATH: Something has gone wrong with the uploading of your configuration.\nPlease contact Flying Sphinx Support: http://support.flying-sphinx.com\n  TXT\n}.freeze\n",

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