Sha256: 9eb3640414a2ca67d94b06eb43f88f8584c871ed309dcd5a07438f8ebfd39c2f
Contents?: true
Size: 973 Bytes
Versions: 1
Compression:
Stored size: 973 Bytes
Contents
module Kamal::Commands::App::Execution def execute_in_existing_container(*command, interactive: false, env:) docker :exec, ("-it" if interactive), *argumentize("--env", env), container_name, *command end def execute_in_new_container(*command, interactive: false, detach: false, env:) docker :run, ("-it" if interactive), ("--detach" if detach), ("--rm" unless detach), "--network", "kamal", *role&.env_args(host), *argumentize("--env", env), *role.logging_args, *config.volume_args, *role&.option_args, config.absolute_image, *command end def execute_in_existing_container_over_ssh(*command, env:) run_over_ssh execute_in_existing_container(*command, interactive: true, env: env), host: host end def execute_in_new_container_over_ssh(*command, env:) run_over_ssh execute_in_new_container(*command, interactive: true, env: env), host: host end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
kamal-2.4.0 | lib/kamal/commands/app/execution.rb |