Skip to content

Commit

Permalink
Default task name is now override-able.
Browse files Browse the repository at this point in the history
  • Loading branch information
jimweirich committed Mar 25, 2013
1 parent c6b61c3 commit e00fdbe
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion lib/rake/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit e00fdbe

Please sign in to comment.