Module: EasyType::Validators::FQDN
- Defined in:
- lib/easy_type/validators.rb
Overview
This validator validates if it is valid FQDN with at least a domain name
Class Method Summary collapse
Class Method Details
.unsafe_validate(value) ⇒ Object
156 157 158 159 |
# File 'lib/easy_type/validators.rb', line 156 def unsafe_validate(value) return if value == 'absent' fail Puppet::Error, "#{value} is not valid as a FQDN" unless value =~ ::EasyType::FQDN end |