Method: Beaker::Options::Validator#validate_master_count
- Defined in:
- lib/beaker/options/validator.rb
#validate_master_count(count) ⇒ nil
Raise an error if the master count is incorrect.
118 119 120 121 122 |
# File 'lib/beaker/options/validator.rb', line 118 def validate_master_count(count) if count > 1 validator_error("Only one host/node may have the role 'master'.") end end |