lib/capistrano/tasks/nginx.cap in capistrano3-puma-0.7.0 vs lib/capistrano/tasks/nginx.cap in capistrano3-puma-0.8.0

- old
+ new

@@ -1,9 +1,9 @@ -namespace :nginx do +namespace :puma do desc "Setup nginx configuration" - task :config do - on roles(:puma_nginx) do - template_puma("nginx_conf", "/tmp/nginx_#{fetch(:nginx_config_name)}") + task :nginx_config do + on roles(:puma_nginx) do |role| + template_puma("nginx_conf", "/tmp/nginx_#{fetch(:nginx_config_name)}", role) sudo :mv, "/tmp/nginx_#{fetch(:nginx_config_name)} #{fetch(:nginx_sites_available_path)}/#{fetch(:nginx_config_name)}" sudo :ln, '-fs', "#{fetch(:nginx_sites_available_path)}/#{fetch(:nginx_config_name)} #{fetch(:nginx_sites_enabled_path)}/#{fetch(:nginx_config_name)}" end end end