lib/playmo/recipes/compass_recipe.rb in playmo-0.0.18 vs lib/playmo/recipes/compass_recipe.rb in playmo-0.1.0
- old
+ new
@@ -1,19 +1,8 @@
-module Playmo
- module Recipes
- class CompassRecipe < Playmo::Recipe
- source_root File.expand_path('../templates/compass_recipe', __FILE__)
-
- def setup
- question "Would you like to use Compass in this project?" => :install_compass
- end
-
- def install_compass
- gem "compass", "~> 0.12.alpha.0"
- end
- end
+recipe :compass do
+ description 'This wll add Stylesheet Authoring Environment that makes your website design simpler to implement and easier to maintain'
+ after :application_controller
+
+ ask "Would you like to use Compass in this project?" do
+ gem "compass", "~> 0.12.alpha.0"
end
-end
-
-# Write down this recipe to our Cookbook if it's available
-require File.dirname(__FILE__) + '/application_controller_recipe'
-Playmo::Cookbook.instance.insert_after(Playmo::Recipes::ApplicationControllerRecipe, Playmo::Recipes::CompassRecipe) if defined?(Playmo::Cookbook)
+end
\ No newline at end of file