# File lib/heroku/command/pg.rb, line 263 def restore_with(restore_param) restore = heroku_postgresql_client.create_restore(restore_param) restore_id = restore[:id] ticking do |ticks| restore = heroku_postgresql_client.get_restore(restore_id) display_progress(restore[:progress], ticks) if restore[:error_at] display("\nAn error occured while restoring the backup") display(restore[:log]) break elsif restore[:finished_at] display("Restore complete") break end end end