Permalink
Browse files

Ensure we don't leave off the type to override anymore and make it ea…

…sier to see the examples at a code level.
  • Loading branch information...
parndt committed Dec 23, 2010
1 parent 48f4b6b commit ac7e08d1aae45695587fe949fd10048bae664082
Showing with 11 additions and 8 deletions.
  1. +11 −8 core/lib/tasks/refinery.rake
@@ -115,14 +115,17 @@ namespace :refinery do
end
else
puts "You didn't specify anything to override. Here's some examples:"
- puts "rake refinery:override view=pages/home"
- puts "rake refinery:override view=pages/home theme=demolicious"
- puts "rake refinery:override view=**/*menu"
- puts "rake refinery:override view=shared/_menu_branch"
- puts "rake refinery:override javascript=jquery"
- puts "rake refinery:override stylesheet=refinery/site_bar"
- puts "rake refinery:override controller=pages"
- puts "rake refinery:override model=page"
+ {
+ :view => ['pages/home', 'pages/home theme=demolicious', '**/*menu', 'shared/_menu_branch'],
+ :javascript => %w(jquery),
+ :stylesheet => %w(refinery/site_bar),
+ :controller => %w(pages),
+ :model => %w(page)
+ }.each do |type, examples|
+ examples.each do |example|
+ puts "rake refinery:override #{type}=#{example}"
+ end
+ end
end
end

0 comments on commit ac7e08d

Please sign in to comment.