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:
parent
f9e33fc09a
commit
c159b501b0
3 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
# desc "Explaining what the task does"
|
||||
# task :<%= name %> do
|
||||
# # Task goes here
|
||||
# end
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue