-
Notifications
You must be signed in to change notification settings - Fork 482
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replaced Kamal::Commands::Proxy::Exec with Kamal::Commands::App::Prox…
…y and Kamal::Commands::Accessory::Proxy
- Loading branch information
1 parent
14068b3
commit f367ca8
Showing
4 changed files
with
20 additions
and
16 deletions.
There are no files selected for viewing
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
4 changes: 2 additions & 2 deletions
4
lib/kamal/commands/proxy/exec.rb → lib/kamal/commands/accessory/proxy.rb
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
module Kamal::Commands::App::Proxy | ||
delegate :proxy_container_name, to: :config | ||
|
||
def deploy(target:) | ||
proxy_exec :deploy, role.container_prefix, *role.proxy.deploy_command_args(target: target) | ||
end | ||
|
||
def remove | ||
proxy_exec :remove, role.container_prefix | ||
end | ||
|
||
private | ||
def proxy_exec(*command) | ||
docker :exec, proxy_container_name, "kamal-proxy", *command | ||
end | ||
end |