# File lib/heroku/commands/pgbackups.rb, line 32 def index backups = [] pgbackup_client.get_transfers.each { |t| next unless t['to_name'] == 'BACKUP' && !t['error_at'] && !t['destroyed_at'] backups << [backup_name(t['to_url']), t['created_at'], t['size'], t['from_name'], ] } if backups.empty? display("No backups. Capture one with `heroku pgbackups:capture`.") else display Display.new.render([["ID", "Backup Time", "Size", "Database"]], backups) end end