hummingbird-me/kitsu-server

View on GitHub
bin/util/import_geolite2_cities

Summary

Maintainability
Test Coverage
#!/usr/bin/env bash

set -e

cd "$(dirname "$0")"

./format_geolite2_cities_csv "$@" | ./format_import_csv_to_sql ip_cities | (
  cd ../../ && ./bin/rails dbconsole
)