Sha256: 6b5cbd80e481a79448f4e52c87b315e49c79ecf220a9e9367e0b51fff86bb21d

Contents?: true

Size: 772 Bytes

Versions: 4

Compression:

Stored size: 772 Bytes

Contents

module Capistrano
  module DSL
    module UnicornPaths

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

      def unicorn_default_launchd_plist
        "~/Library/LaunchAgents/apps.#{fetch(:application)}.unicorn.plist"
      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
        "/usr/local/etc/logrotate.d/#{fetch(:application)}_production"
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
capistrano-unicorn-nginx-osx-3.4.0.4 lib/capistrano/dsl/unicorn_paths.rb
capistrano-unicorn-nginx-osx-3.4.0.3 lib/capistrano/dsl/unicorn_paths.rb
capistrano-unicorn-nginx-osx-3.4.0.2 lib/capistrano/dsl/unicorn_paths.rb
capistrano-unicorn-nginx-osx-3.4.0.1 lib/capistrano/dsl/unicorn_paths.rb