Merge pull request #1145 from progrium/1135_mh-docker-options-over-ssh

allow docker-options over ssh. plus test. closes #1135
This commit is contained in:
Michael Hobbs committed 2015-04-24 15:40:45 -07:00
commit 31fafe55d3
2 files changed
+12 -1

No files matched your search

+1 -1
View File
@@ -37,7 +37,7 @@ fi
if [[ -n "$SSH_ORIGINAL_COMMAND" ]]; then if [[ -n "$SSH_ORIGINAL_COMMAND" ]]; then
export -n SSH_ORIGINAL_COMMAND export -n SSH_ORIGINAL_COMMAND
if [[ $1 =~ config-* ]];then if [[ $1 =~ config-* ]] || [[ $1 =~ docker-options* ]];then
xargs $0 <<<$SSH_ORIGINAL_COMMAND xargs $0 <<<$SSH_ORIGINAL_COMMAND
exit $? exit $?
else else
+11
View File
@@ -149,3 +149,14 @@ teardown() {
assert_success assert_success
deploy_app deploy_app
} }
@test "docker-options:add (all phases over SSH)" {
run ssh dokku@dokku.me docker-options:add $TEST_APP build,deploy,run \"-v /tmp\"
echo "output: "$output
echo "status: "$status
assert_success
run /bin/bash -c "dokku docker-options $TEST_APP | egrep '\-v /tmp' | wc -l | grep -q 3"
echo "output: "$output
echo "status: "$status
assert_success
}