class Rake::Application

Public Instance Methods

display_error_message(ex) click to toggle source
# File lib/rake_exception_hook.rb, line 53
def display_error_message(ex)
    if RakeExceptionHook.except_hook
        RakeExceptionHook.except_hook.call ex
    end
    old_display_error_message ex
end
Also aliased as: old_display_error_message
old_display_error_message(ex)
top_level() click to toggle source
# File lib/rake_exception_hook.rb, line 35
def top_level
    run_with_threads do
        if options.show_tasks
          display_tasks_and_comments
        elsif options.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