Skip to content

Instantly share code, notes, and snippets.

@agibralter
Created March 16, 2017 21:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save agibralter/37573a57810db641980fa3897cbf64d3 to your computer and use it in GitHub Desktop.
Save agibralter/37573a57810db641980fa3897cbf64d3 to your computer and use it in GitHub Desktop.
private def docker_compose(command_args : Array(String))
p = Process.new(
command: "docker-compose",
args: ["-f", "#{@dir}/docker-compose.yml"] + command_args,
input: true,
output: true,
error: true,
)
Signal::INT.trap do
p.kill(Signal::INT)
end
p.wait
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment