Skip to content

Commit

Permalink
Add example rake task to 'plugin new' generator
Browse files Browse the repository at this point in the history
  • Loading branch information
drogus committed Nov 2, 2010
1 parent f9e33fc commit c159b50
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ def gitignore

def lib
template "lib/%name%.rb"
template "lib/tasks/%name%_tasks.rake"
if full?
template "lib/%name%/engine.rb"
end
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# desc "Explaining what the task does"
# task :<%= name %> do
# # Task goes here
# end
1 change: 1 addition & 0 deletions railties/test/generators/plugin_new_generator_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
MIT-LICENSE
lib
lib/bukkits.rb
lib/tasks/bukkits_tasks.rake
script/rails
test/bukkits_test.rb
test/test_helper.rb
Expand Down

0 comments on commit c159b50

Please sign in to comment.