-
-
Save agibralter/37573a57810db641980fa3897cbf64d3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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