1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Add example rake task to 'plugin new' generator

This commit is contained in:
Piotr Sarnacki 2010-11-02 15:44:07 +01:00
parent f9e33fc09a
commit c159b501b0
3 changed files with 6 additions and 0 deletions

View file

@ -29,6 +29,7 @@ module Rails
def lib
template "lib/%name%.rb"
template "lib/tasks/%name%_tasks.rake"
if full?
template "lib/%name%/engine.rb"
end

View file

@ -0,0 +1,4 @@
# desc "Explaining what the task does"
# task :<%= name %> do
# # Task goes here
# end

View file

@ -11,6 +11,7 @@ DEFAULT_PLUGIN_FILES = %w(
MIT-LICENSE
lib
lib/bukkits.rb
lib/tasks/bukkits_tasks.rake
script/rails
test/bukkits_test.rb
test/test_helper.rb