Sha256: b17dddd8a5642e404688cf0e828b8c3cc9087c9ec0642150eec24a41c47a1f5f

Contents?: true

Size: 226 Bytes

Versions: 16

Compression:

Stored size: 226 Bytes

Contents

#!/usr/bin/env bash

# runOnDocker SERVICE
runOnDocker() {
  if [[ $DOCKER_CONTAINER -ne 1 ]]; then
    echo "On Host. Executing command on container"
    docker-compose exec -T $1 $0
    exit $?
  fi
}

export -f runOnDocker

Version data entries

16 entries across 16 versions & 3 rubygems

Version Path
slayer_rails-0.5.4 bin/helpers/docker
slayer-0.5.4 bin/helpers/docker
slayer-0.5.3 bin/helpers/docker
slayer-0.5.2 bin/helpers/docker
slayer-0.5.1 bin/helpers/docker
phi_attrs-0.3.0 bin/helpers/docker
phi_attrs-0.2.4 bin/helpers/docker
slayer_rails-0.5.0.beta bin/helpers/docker
slayer-0.5.0.beta bin/helpers/docker
phi_attrs-0.2.2 bin/helpers/docker
phi_attrs-0.2.1 bin/helpers/docker
slayer-0.4.0.beta4 bin/helpers/docker
slayer_rails-0.4.0.beta4 bin/helpers/docker
slayer_rails-0.4.0.beta3 bin/helpers/docker
slayer-0.4.0.beta3 bin/helpers/docker
phi_attrs-0.2.0 bin/helpers/docker