Class: FlyingSphinx::Commands::Base
- Inherits:
-
ThinkingSphinx::Commands::Base
- Object
- ThinkingSphinx::Commands::Base
- FlyingSphinx::Commands::Base
- Defined in:
- lib/flying_sphinx/commands/base.rb
Direct Known Subclasses
Clear, Configure, IndexSQL, Merge, Prepare, Rebuild, Reset, Restart, Rotate, Running, Start, StartAttached, Stop
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_handling ⇒ Object
20 21 22 23 24 |
# File 'lib/flying_sphinx/commands/base.rb', line 20 def call_with_handling call rescue ::Error => error handle_failure error end |