module Airbrake::Rake::Task

def notify_airbrake(exception, args)

def notify_airbrake(exception, args)
  notice = Airbrake.build_notice(exception)
  notice[:context][:component] = 'rake'
  notice[:context][:action] = name
  notice[:params].merge!(
    rake_task: task_info,
    execute_args: args,
    argv: ARGV.join(' '),
  )
  Airbrake.notify_sync(notice)
end