Sha256: b044e2561ad892081221595124cf2421ef83bec39accb119bf65a40feef3b0c9

Contents?: true

Size: 785 Bytes

Versions: 7

Compression:

Stored size: 785 Bytes

Contents

module Playmo
  module Recipes
    class MarkupRecipe < Playmo::Recipe
      def setup
        question "Please choose markup language you prefer to use" do
          answer "Erb (by default)"  => :install_erb
          answer "Haml"              => :install_haml
          answer "Slim"              => :install_slim
        end
      end

    protected

      def install_erb
        # Do nothing
        store(:markup, :erb)
      end

      def install_haml
        gem "haml-rails"
        store(:markup, :haml)
      end

      def install_slim
        gem "slim-rails"
        store(:markup, :slim)
      end

    end
  end
end

# Write down this recipe to our Cookbook if it's available
Playmo::Cookbook.instance.use(Playmo::Recipes::MarkupRecipe) if defined?(Playmo::Cookbook)

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
playmo-0.0.18 lib/playmo/recipes/markup_recipe.rb
playmo-0.0.17 lib/playmo/recipes/markup_recipe.rb
playmo-0.0.14 lib/playmo/recipes/markup_recipe.rb
playmo-0.0.13 lib/playmo/recipes/markup_recipe.rb
playmo-0.0.12 lib/playmo/recipes/markup_recipe.rb
playmo-0.0.11 lib/playmo/recipes/markup_recipe.rb
playmo-0.0.10 lib/playmo/recipes/markup_recipe.rb