Sha256: 92fef95f165293fd744468e243c5a703993afd6612cced7b1902ffe4741ffd83

Contents?: true

Size: 447 Bytes

Versions: 7

Compression:

Stored size: 447 Bytes

Contents

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(target:)
    proxy_exec :remove, role.container_prefix, *role.proxy.remove_command_args(target: target)
  end

  private
    def proxy_exec(*command)
      docker :exec, proxy_container_name, "kamal-proxy", *command
    end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
kamal-2.0.0 lib/kamal/commands/app/proxy.rb
kamal-2.0.0.rc4 lib/kamal/commands/app/proxy.rb
kamal-2.0.0.rc3 lib/kamal/commands/app/proxy.rb
kamal-2.0.0.rc2 lib/kamal/commands/app/proxy.rb
kamal-2.0.0.rc1 lib/kamal/commands/app/proxy.rb
kamal-2.0.0.beta2 lib/kamal/commands/app/proxy.rb
kamal-2.0.0.beta1 lib/kamal/commands/app/proxy.rb