Permalink
Browse files

Default task name is now override-able.

  • Loading branch information...
1 parent c6b61c3 commit e00fdbe1f68ccddd13fa8d44b12e3588c8d73cfc @jimweirich committed Jan 14, 2013
Showing with 7 additions and 1 deletion.
  1. +7 −1 lib/rake/application.rb
View
@@ -637,7 +637,13 @@ def collect_tasks
@top_level_tasks << arg unless arg =~ /^-/
end
end
- @top_level_tasks.push("default") if @top_level_tasks.size == 0
+ @top_level_tasks.push(default_task_name) if @top_level_tasks.empty?
+ end
+
+ # Default task name ("default").
+ # (May be overridden by subclasses)
+ def default_task_name
+ "default"
end
# Add a file to the list of files to be imported.

0 comments on commit e00fdbe

Please sign in to comment.