Class: Rake::Application
- Inherits:
-
Object
- Object
- Rake::Application
- Defined in:
- lib/rake_exception_hook.rb
Instance Method Summary collapse
Instance Method Details
#display_error_message(ex) ⇒ Object
53 54 55 56 57 58 |
# File 'lib/rake_exception_hook.rb', line 53 def (ex) if RakeExceptionHook.except_hook RakeExceptionHook.except_hook.call ex end ex end |
#old_display_error_message ⇒ Object
52 |
# File 'lib/rake_exception_hook.rb', line 52 alias_method :old_display_error_message, :display_error_message |
#top_level ⇒ Object
35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 |
# File 'lib/rake_exception_hook.rb', line 35 def top_level run_with_threads do if .show_tasks display_tasks_and_comments elsif .show_prereqs display_prerequisites else if RakeExceptionHook.start_hook RakeExceptionHook.start_hook.call end top_level_tasks.each { |task_name| invoke_task(task_name) } if RakeExceptionHook.finish_hook RakeExceptionHook.finish_hook.call end end end end |