Method: Beaker::Options::Validator#validate_platform

Defined in:
lib/beaker/options/validator.rb

#validate_platform(host, name) ⇒ nil

Raise an error if host does not have a platform defined.

Parameters:

Returns:

  • (nil)

    Does not return anything



76
77
78
79
80
# File 'lib/beaker/options/validator.rb', line 76

def validate_platform(host, name)
  if !host['platform'] || host['platform'].empty?
    validator_error "Host #{name} does not have a platform specified"
  end
end