lib/capistrano/tasks/runit.rake in capistrano-pumaio-3.0.1 vs lib/capistrano/tasks/runit.rake in capistrano-pumaio-3.0.2
- old
+ new
@@ -1,16 +1,15 @@
require 'capistrano/dsl/base_paths'
require 'capistrano/dsl/runit_paths'
require 'capistrano/helpers/base'
require 'capistrano/helpers/runit'
-include Capistrano::DSL::BasePaths
-include Capistrano::DSL::RunitPaths
-include Capistrano::Helpers::Base
-include Capistrano::Helpers::Runit
-
# require 'capistrano/runit'
namespace :puma do
+ include Capistrano::DSL::BasePaths
+ include Capistrano::DSL::RunitPaths
+ include Capistrano::Helpers::Base
+ include Capistrano::Helpers::Runit
desc 'Setup Puma configuration'
task :setup do
on roles(:app) do
execute :mkdir, "-p #{fetch(:sockets_path)}" if test("[ ! -d '#{fetch(:sockets_path)}' ]")
execute :mkdir, "-p '#{fetch(:puma_remote_config_folder)}'" if test("[ ! -d '#{fetch(:puma_remote_config_folder)}' ]")