Sha256: fc4be5a6bcbb1b469df3dbbf313659d8d85364106bdc4365b9e9b6d97dc6fe0e

Contents?: true

Size: 655 Bytes

Versions: 2

Compression:

Stored size: 655 Bytes

Contents

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

      def setup
        silently do
          remove_file 'app/helpers/application_helper.rb'
          copy_file   'application_helper.rb', 'app/helpers/application_helper.rb'
        end
      end
    end
  end
end

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
playmo-0.0.11 lib/playmo/recipes/application_helper_recipe.rb
playmo-0.0.10 lib/playmo/recipes/application_helper_recipe.rb