class LogStash::Outputs::LogstashAzureBlobOutput::PathValidator
a sub class of LogstashAzureBlobOutput
valdiates the path for the temporary directory
Constants
- INVALID_CHARACTERS
Public Class Methods
matches_re()
click to toggle source
define the invalid characters that shouldn't be in the path name
# File lib/logstash/outputs/blob/path_validator.rb, line 14 def self.matches_re /[#{Regexp.escape(INVALID_CHARACTERS)}]/ end
valid?(name)
click to toggle source
boolean method to check if a name is valid
# File lib/logstash/outputs/blob/path_validator.rb, line 9 def self.valid?(name) name.match(matches_re).nil? end