rally/doc/samples/plugins/unpack_plugins_samles.sh
Olga Kopylova 2c368272c9 Improve plugins and apply loading for runners and contexts plugins
Provide plugins loading for runners and contexts, improve samples.
Plugins now can be loaded from ~/.rally/plugins and /opt/rally/plugins
and any it's subdirectories.

Closes-Bug: #1320942

Change-Id: I213086e7eae17e297c398c301f5ed8d2331d951e
2014-10-24 10:25:10 +00:00

12 lines
471 B
Bash
Executable File

#!/bin/bash
samples_unpacked_dir="$(dirname "${BASH_SOURCE[0]}" )"
dirs=( $(find "$samples_unpacked_dir" -maxdepth 1 -type d -printf '%P\n') )
samples=~/.rally/plugins/samples
mkdir -p "$samples"
for dir in "${dirs[@]}"; do
cp -r $samples_unpacked_dir/$dir $samples
printf "\nTo test $dir plugin run next command:\n"
printf "rally task start --task $samples/$dir/test_$dir.yaml\n"
printf "or \nrally task start --task $samples/$dir/test_$dir.json\n"
done