Module: Kamal::Commands::App::Proxy
- Included in:
- Kamal::Commands::App
- Defined in:
- lib/kamal/commands/app/proxy.rb
Instance Method Summary collapse
- #create_ssl_directory ⇒ Object
- #deploy(target:) ⇒ Object
- #live ⇒ Object
- #maintenance(**options) ⇒ Object
- #remove ⇒ Object
- #remove_proxy_app_directory ⇒ Object
Instance Method Details
#create_ssl_directory ⇒ Object
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 |
#live ⇒ Object
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(**) proxy_exec :stop, role.container_prefix, *role.proxy.stop_command_args(**) end |
#remove ⇒ Object
8 9 10 |
# File 'lib/kamal/commands/app/proxy.rb', line 8 def remove proxy_exec :remove, role.container_prefix end |
#remove_proxy_app_directory ⇒ Object
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 |