Sha256: 26c713c81e2eba5edbf863c43615577d0b45e85e465ef8853398f2f6780e2854

Contents?: true

Size: 689 Bytes

Versions: 1

Compression:

Stored size: 689 Bytes

Contents

module Playmo
  module Recipes
    class UnicornRecipe < Playmo::Recipe
      source_root File.expand_path('../templates/unicorn_recipe', __FILE__)

      def setup
        question "Would you like to use Unicorn as web server in production?" => :install_compass
      end

      def install_compass
        gem "unicorn", :group => :production
        template "unicorn.rb", "config/unicorn.rb"
      end
    end
  end
end

# Write down this recipe to our Cookbook if it's available
require File.dirname(__FILE__) + '/application_helper_recipe'
Playmo::Cookbook.instance.insert_after(Playmo::Recipes::ApplicationHelperRecipe, Playmo::Recipes::UnicornRecipe) if defined?(Playmo::Cookbook)

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
playmo-0.0.18 lib/playmo/recipes/unicorn_recipe.rb