Module: Kamal::Commands::App::Proxy

Included in:
Kamal::Commands::App
Defined in:
lib/kamal/commands/app/proxy.rb

Instance Method Summary collapse

Instance Method Details

#create_ssl_directoryObject



24
25
26
# File 'lib/kamal/commands/app/proxy.rb', line 24

def create_ssl_directory
  make_directory(File.join(config.proxy_boot.tls_directory, role.name))
end

#deploy(target:) ⇒ Object



4
5
6
# File 'lib/kamal/commands/app/proxy.rb', line 4

def deploy(target:)
  proxy_exec :deploy, role.container_prefix, *role.proxy.deploy_command_args(target: target)
end

#liveObject



12
13
14
# File 'lib/kamal/commands/app/proxy.rb', line 12

def live
  proxy_exec :resume, role.container_prefix
end

#maintenance(**options) ⇒ Object



16
17
18
# File 'lib/kamal/commands/app/proxy.rb', line 16

def maintenance(**options)
  proxy_exec :stop, role.container_prefix, *role.proxy.stop_command_args(**options)
end

#removeObject



8
9
10
# File 'lib/kamal/commands/app/proxy.rb', line 8

def remove
  proxy_exec :remove, role.container_prefix
end

#remove_proxy_app_directoryObject



20
21
22
# File 'lib/kamal/commands/app/proxy.rb', line 20

def remove_proxy_app_directory
  remove_directory config.proxy_boot.app_directory
end