Sha256: 4f5c2c1b97a08e78060a084a306fd063677ca249b4fb9e58f129ab4de017853c

Contents?: true

Size: 232 Bytes

Versions: 9

Compression:

Stored size: 232 Bytes

Contents

module Wolverine
  class Configuration < Struct.new(:redis, :script_path)
    def redis
      super || @redis ||= Redis.new
    end

    def script_path
      super || @script_path ||= Rails.root + 'app/wolverine'
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
wolverine-0.2.2 lib/wolverine/configuration.rb
wolverine-0.2.1 lib/wolverine/configuration.rb
wolverine-0.2.0 lib/wolverine/configuration.rb
wolverine-0.1.3 lib/wolverine/configuration.rb
wolverine-0.1.2 lib/wolverine/configuration.rb
wolverine-0.1.1 lib/wolverine/configuration.rb
wolverine-0.1.0 lib/wolverine/configuration.rb
wolverine-0.0.4 lib/wolverine/configuration.rb
wolverine-0.0.3 lib/wolverine/configuration.rb