Sha256: 78f4bf8ab26c3d0645dc7d32b77ed589bcb7a0eaab9cfd5d299e896e4a0338a0
Contents?: true
Size: 550 Bytes
Versions: 2
Compression:
Stored size: 550 Bytes
Contents
# frozen_string_literal: true module Sidekiq module Logstash # Class that allows to configure the gem behaviour. class Configuration attr_accessor :custom_options, :filter_args, :job_start_log, :keep_default_error_handler def initialize @filter_args = [] @job_start_log = false end # Added to ensure custom_options is a Proc def custom_options=(proc) raise ArgumentError, 'Argument must be a Proc.' unless proc.is_a?(Proc) @custom_options = proc end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
sidekiq-logstash-3.1.0 | lib/sidekiq/logstash/configuration.rb |
sidekiq-logstash-3.0.0 | lib/sidekiq/logstash/configuration.rb |