Ruby script for auto ingestion