lib/capistrano/puma/jungle.rb in capistrano3-puma-3.0.2 vs lib/capistrano/puma/jungle.rb in capistrano3-puma-3.0.3

- old
+ new

@@ -9,20 +9,18 @@ def define_tasks eval_rakefile File.expand_path('../../tasks/jungle.rake', __FILE__) end - private - - def debian_install - template_puma 'puma-deb', "#{fetch(:tmp_dir)}/puma", @role + def debian_install(role) + template_puma 'puma-deb', "#{fetch(:tmp_dir)}/puma", role execute "chmod +x #{fetch(:tmp_dir)}/puma" sudo "mv #{fetch(:tmp_dir)}/puma /etc/init.d/puma" sudo 'update-rc.d -f puma defaults' end - def rhel_install - template_puma 'puma-rpm', "#{fetch(:tmp_dir)}/puma", @role + def rhel_install(role) + template_puma 'puma-rpm', "#{fetch(:tmp_dir)}/puma", role execute "chmod +x #{fetch(:tmp_dir)}/puma" sudo "mv #{fetch(:tmp_dir)}/puma /etc/init.d/puma" sudo 'chkconfig --add puma' end end