# File lib/heroku/command/run.rb, line 12
  def rake
    app = extract_app
    cmd = args.join(' ')
    if cmd.length == 0
      display "Usage: heroku rake <command>"
    else
      heroku.start(app, "rake #{cmd}", :attached).each { |chunk| display(chunk, false) }
    end
  rescue Heroku::Client::AppCrashed => e
    error "Couldn't run rake\n#{e.message}"
  end