Method: Beaker::Options::Validator#validate_preserve_hosts
- Defined in:
- lib/beaker/options/validator.rb
#validate_preserve_hosts(hosts_setting) ⇒ nil
Raises an error if hosts_setting is not a supported preserve hosts value.
64 65 66 67 68 69 |
# File 'lib/beaker/options/validator.rb', line 64 def validate_preserve_hosts(hosts_setting) #check for valid preserve_hosts option if hosts_setting !~ VALID_PRESERVE_HOSTS validator_error("--preserve_hosts must be one of always, onfail, onpass or never, not '#{hosts_setting}'") end end |