add exec_on helper

so we don't repeat the remote docker invocation command (complete with
hard-coded port) over and over again.
This commit is contained in:
Matthias Radestock committed 2015-04-22 09:25:42 +01:00
1 parent 3ad186d727
commit a7c9fd272c
8 files changed
+19 -12

No files matched your search

+7
View File
@@ -57,6 +57,13 @@ weave_on() {
DOCKER_HOST=tcp://$host:2375 $WEAVE $@
}
exec_on() {
host=$1
container=$2
shift 2
docker -H tcp://$host:2375 exec $container "$@"
}
start_suite() {
whitely echo $@
}