Sha256: ad8694f5223e9149ba305c35f8e325ba0ab6ffedf6ff992d829bec5d5a53cbe6

Contents?: true

Size: 546 Bytes

Versions: 5

Compression:

Stored size: 546 Bytes

Contents

# frozen_string_literal: true

require 'pathname'

module Capistrano
  module Ops
    module Logs
      module Paths
        def rails_log_file_path
          shared_path.join fetch(:rails_log_file_name) || "log/#{fetch(:rails_env)}.log"
        end

        def sidekiq_log_file_path
          shared_path.join fetch(:sidekiq_log_file_name) || 'log/sidekiq.log'
        end

        def sidekiq_error_log_file_path
          shared_path.join fetch(:sidekiq_error_log_file_name) || 'log/sidekiq.error.log'
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
capistrano-ops-1.0.4 lib/capistrano/ops/logs/paths.rb
capistrano-ops-1.0.3 lib/capistrano/ops/logs/paths.rb
capistrano-ops-1.0.2 lib/capistrano/ops/logs/paths.rb
capistrano-ops-1.0.1 lib/capistrano/ops/logs/paths.rb
capistrano-ops-1.0.0 lib/capistrano/ops/logs/paths.rb