Sha256: 7ecd23cbfb2fb9e95a9883c390b787c7ade7b43d2e286f4c06f09f7245748f53
Contents?: true
Size: 849 Bytes
Versions: 1
Compression:
Stored size: 849 Bytes
Contents
module Playmo module Recipes class ThinkingSphinxRecipe < Playmo::Recipe source_root File.expand_path('../templates/thinking_sphinx_recipe', __FILE__) def setup question "Would you like to use Thinking Sphinx in this project?" => :install_ts end protected def install_ts gem 'thinking-sphinx', '~> 2.0.10' # TODO Add Whenever integration (see https://github.com/nesquena/cap-recipes) Event.events.listen(:after_install) do |event_data| template 'sphinx.yml', 'config/sphinx.yml' end end end end end # Write down this recipe to our Cookbook if it's available require File.dirname(__FILE__) + '/unicorn_recipe' Playmo::Cookbook.instance.insert_after(Playmo::Recipes::UnicornRecipe, Playmo::Recipes::ThinkingSphinxRecipe) if defined?(Playmo::Cookbook)
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
playmo-0.0.18 | lib/playmo/recipes/thinking_sphinx_recipe.rb |