Sha256: 0f897c8a9dc73bc29ce09e454d25aadc6920fe14bfe75788d4aaca9adecb5531
Contents?: true
Size: 443 Bytes
Versions: 5
Compression:
Stored size: 443 Bytes
Contents
module LogStash module Patterns module Core extend self BASE_PATH = ::File.expand_path('../../../patterns', ::File.dirname(__FILE__)) private_constant :BASE_PATH def path(type = 'legacy') case type = type.to_s when 'legacy', 'ecs-v1' ::File.join(BASE_PATH, type) else raise ArgumentError, "#{type.inspect} path not supported" end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems