class LogStash::Outputs::LogstashAzureBlobOutput::WritableDirectoryValidator

a sub class of LogstashAzureBlobOutput validates that the specified tmeporary directory can be accesed with write permission

Public Class Methods

valid?(path) click to toggle source

Checks if a path is valid @param path [String] String that represents the path

# File lib/logstash/outputs/blob/writable_directory_validator.rb, line 10
def self.valid?(path)
  FileUtils.mkdir_p(path) unless Dir.exist?(path)
  ::File.writable?(path)
rescue
  false
end