Sha256: 3c3c9764949097acc9fa5cfdc04fac4e7bdf62e7c8452a011d8a99c91d9b60b0

Contents?: true

Size: 328 Bytes

Versions: 6

Compression:

Stored size: 328 Bytes

Contents

#!/bin/sh

set -e

if [ ! -z "$1" ]; then
  REDIS=$1
fi

: ${REDIS:=127.0.0.1:6379}

CONVERT="ruby -Ilib ./bin/chbs --trace convert --oformat redis "
for file in corpus/*.json; do
  basename=`basename $file .json`
  dest="${basename}:${REDIS}"
  echo "Loading $basename.json into $dest"
  eval $CONVERT $file ${dest}.redis
done

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
correct-horse-battery-staple-0.6.6 script/load_redis
correct-horse-battery-staple-0.6.5 script/load_redis
correct-horse-battery-staple-0.6.4 script/load_redis
correct-horse-battery-staple-0.6.3 script/load_redis
correct-horse-battery-staple-0.6.2 script/load_redis
correct-horse-battery-staple-0.6.1 script/load_redis