hummingbird-me/kitsu-server

View on GitHub
bin/util/import_geolite2_locations

Summary

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

set -e

cd "$(dirname "$0")"

./format_geolite2_locations_csv "$@" | ./format_import_csv_to_sql geonames | (
  cd ../../ && ./bin/rails dbconsole
)