Sha256: b4d8986ed23334ff9932502a9eba72c1806865f117a36665a5dc604e82ba5cf7

Contents?: true

Size: 254 Bytes

Versions: 2

Compression:

Stored size: 254 Bytes

Contents

require 'redis'

class GrapplingConfiguration
  include Singleton
  attr_accessor :redis_url, :name

  def redis
    uri = URI.parse(redis_url)
    Redis.new(:host => uri.host, :port => uri.port, :password => uri.password, :thread_safe => true)
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
grappling-0.1.0 lib/grappling/configuration.rb
grappling-0.0.3 lib/grappling/configuration.rb