Sha256: f533f6fd6ecea8e593a6f9645ea398fbc029fe589baf2b4f1d02b43ca574dee2

Contents?: true

Size: 899 Bytes

Versions: 7

Compression:

Stored size: 899 Bytes

Contents

#!/bin/bash
set -x
set -e
shopt -s expand_aliases

alias zold="$1"

port=`python -c 'import socket; s=socket.socket(); s.bind(("", 0)); print(s.getsockname()[1]); s.close()'`

mkdir server
cd server
zold node --host=localhost --port=${port} --bind-port=${port} --threads=0 &
pid=$!
trap "kill -9 $pid" EXIT
cd ..

while ! nc -z localhost ${port}; do
  sleep 0.1
done

zold remote clean
zold remote add localhost ${port}
zold remote show

zold --public-key id_rsa.pub create 0000000000000000
target=`zold --public-key id_rsa.pub create`
invoice=`zold invoice ${target}`
zold --private-key id_rsa pay 0000000000000000 ${invoice} 14.99 'To save the world!'
zold propagate 0000000000000000
zold show
zold show 0000000000000000

zold push 0000000000000000
zold fetch 0000000000000000 --ignore-score-weakness
zold diff 0000000000000000
zold merge 0000000000000000
zold clean 0000000000000000

echo 'DONE'

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
zold-0.4.1 fixtures/scripts/push-and-pull.sh
zold-0.4 fixtures/scripts/push-and-pull.sh
zold-0.3.4 fixtures/scripts/push-and-pull.sh
zold-0.3.3 fixtures/scripts/push-and-pull.sh
zold-0.3.2 fixtures/scripts/push-and-pull.sh
zold-0.3.1 fixtures/scripts/push-and-pull.sh
zold-0.3 fixtures/scripts/push-and-pull.sh