class RedisFixtures::Configuration
Holds the configuration
Attributes
Root directory of the app (where the test or spec directory exists) Defaults to Rails.root or ‘pwd`, use only if using this gem in a non-Rails environment
Already established connection to Redis for the library to use One of :connection_pool, :connection_block, :connection_settings or :connection must be set
Connection Pool used to get a new Redis connection One of :connection_pool, :connection_block, :connection_settings or :connection must be set
Proc that yields a connection object when needed One of :connection_pool, :connection_block, :connection_settings or :connection must be set
Hash specifying the settings to connect to Redis. Gets passed to ‘Redis.new` One of :connection_pool, :connection_block, :connection_settings or :connection must be set Defaults to localhost:6379
Filename where to store the Redis fixtures. (Will be stored in regular fixtures path) Defaults to ‘redis.fixture’ Do not set a .yml extension, or it may get cleared out by other tools
Public Class Methods
# File lib/redis_fixtures/config.rb, line 33 def initialize @connection_settings = {host: 'localhost', port: 6379} @fixture_filename = "redis.fixture" @app_root = defined?(::Rails) ? ::Rails.root : Dir.pwd end