Method: Beaker::Options::Validator#validate_path
- Defined in:
- lib/beaker/options/validator.rb
#validate_path(path) ⇒ Object
Raise an error if path is not a valid file or directory
134 135 136 137 138 |
# File 'lib/beaker/options/validator.rb', line 134 def validate_path(path) return unless !File.file?(path) && !File.directory?(path) validator_error("#{path} used as a file option but is not a file or directory!") end |