Method: VirtualBox::AbstractModel::VersionMatcher#assert_version_match
- Defined in:
- lib/virtualbox/abstract_model/version_matcher.rb
#assert_version_match(req, cur) ⇒ Object
Asserts that two versions match. Otherwise raises an exception.
6 7 8 9 10 11 |
# File 'lib/virtualbox/abstract_model/version_matcher.rb', line 6 def assert_version_match(req, cur) if !version_match?(req, cur) = "Required version: #{req}; Current: #{cur}" raise Exceptions::UnsupportedVersionException.new() end end |