mirror of
https://github.com/elastic/logstash.git
synced 2025-04-23 22:27:21 -04:00
- move Shiftback hack
This commit is contained in:
parent
5969d5ca8e
commit
bbe2f52502
2 changed files with 11 additions and 11 deletions
|
@ -1,16 +1,5 @@
|
|||
require "test_utils"
|
||||
|
||||
|
||||
class Shiftback
|
||||
def initialize(&block)
|
||||
@block = block
|
||||
end
|
||||
|
||||
def <<(event)
|
||||
@block.call(event)
|
||||
end
|
||||
end # class Shiftback
|
||||
|
||||
describe "inputs/redis" do
|
||||
extend LogStash::RSpec
|
||||
require "redis"
|
||||
|
|
|
@ -99,3 +99,14 @@ module LogStash
|
|||
end # def agent
|
||||
end # module RSpec
|
||||
end # module LogStash
|
||||
|
||||
class Shiftback
|
||||
def initialize(&block)
|
||||
@block = block
|
||||
end
|
||||
|
||||
def <<(event)
|
||||
@block.call(event)
|
||||
end
|
||||
end # class Shiftback
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue