Sha256: b13d50e0e8f9335e21ab02e681b06e9edd090e145a9938e716078cdf3f04c39b

Contents?: true

Size: 561 Bytes

Versions: 5

Compression:

Stored size: 561 Bytes

Contents

require 'yaml'
require 'erb'

module SayWhen
  class Configuration
    def self.default_options
      {}.tap do |defaults|
        defaults[:processor_strategy] = :simple
        defaults[:storage_strategy] = :memory
        defaults[:tick_length] = (ENV['SAY_WHEN_TICK_LENGTH'] || '5').to_i
        defaults[:queue] = ENV['SAY_WHEN_QUEUE'] || 'default'
        defaults[:reset_acquired_length] = (ENV['SAY_WHEN_RESET_ACQUIRED_LENGTH'] || '3600').to_i
        defaults[:store_executions] = false
        defaults[:table_prefix] = ''
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
say_when-2.2.2 lib/say_when/configuration.rb
say_when-2.2.1 lib/say_when/configuration.rb
say_when-2.2.0 lib/say_when/configuration.rb
say_when-2.1.1 lib/say_when/configuration.rb
say_when-2.1.0 lib/say_when/configuration.rb