Sha256: 788b21389e291ff627493d06d704c108188defd1ad569a8c480d820c9c02848c

Contents?: true

Size: 718 Bytes

Versions: 9

Compression:

Stored size: 718 Bytes

Contents

module Capistrano
  module DSL
    module UnicornPaths

      def unicorn_initd_file
        "/etc/init.d/#{fetch(:unicorn_service)}"
      end

      def unicorn_default_config_file
        shared_path.join('config/unicorn.rb')
      end

      def unicorn_default_pid_file
        shared_path.join('tmp/pids/unicorn.pid')
      end

      def unicorn_log_dir
        shared_path.join('log')
      end

      def unicorn_log_file
        unicorn_log_dir.join('unicorn.stdout.log')
      end

      def unicorn_error_log_file
        unicorn_log_dir.join('unicorn.stderr.log')
      end

      def unicorn_default_logrotate_config_file
        "/etc/logrotate.d/#{fetch(:unicorn_service)}"
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
capistrano-unicorn-nginx-5.2.0 lib/capistrano/dsl/unicorn_paths.rb
capistrano-unicorn-nginx-5.1.0 lib/capistrano/dsl/unicorn_paths.rb
capistrano-unicorn-nginx-5.0.0 lib/capistrano/dsl/unicorn_paths.rb
capistrano-unicorn-nginx-4.2.0 lib/capistrano/dsl/unicorn_paths.rb
capistrano-unicorn-nginx-4.1.0 lib/capistrano/dsl/unicorn_paths.rb
capistrano-unicorn-nginx-4.0.0 lib/capistrano/dsl/unicorn_paths.rb
capistrano-unicorn-nginx-3.4.0 lib/capistrano/dsl/unicorn_paths.rb
capistrano-unicorn-nginx-3.3.3 lib/capistrano/dsl/unicorn_paths.rb
capistrano-unicorn-nginx-3.3.2 lib/capistrano/dsl/unicorn_paths.rb