Module: Wurk::Preflight::RedisGuard::ReadOnly

Defined in:
lib/wurk/preflight/redis_guard.rb

Overview

Lets through the reads a preflight may send, and the handshake.

Instance Method Summary collapse

Instance Method Details

#call(command, _config) ⇒ Object



37
38
39
40
# File 'lib/wurk/preflight/redis_guard.rb', line 37

def call(command, _config)
  RedisGuard.check!(command)
  super
end

#call_pipelined(commands, _config) ⇒ Object



42
43
44
45
# File 'lib/wurk/preflight/redis_guard.rb', line 42

def call_pipelined(commands, _config)
  commands.each { |command| RedisGuard.check!(command) }
  super
end