Sha256: cca7045efa9a20856a7f236fb4486fcdd4a301a6246df7fed92995d2db0cad5c
Contents?: true
Size: 562 Bytes
Versions: 22
Compression:
Stored size: 562 Bytes
Contents
class KuberKit::Shell::Commands::DockerComposeCommands def run(shell, path, service:, args: nil, command: nil, detached: false, interactive: false) command_parts = [ "docker-compose", "-f #{path}", "run", ] command_parts << "-d" if detached command_parts << Array(args).join(" ") if args command_parts << service command_parts << command if command if interactive shell.interactive!(command_parts.join(" ")) else shell.exec!(command_parts.join(" "), merge_stderr: true) end end end
Version data entries
22 entries across 22 versions & 1 rubygems