# File lib/facter/operatingsystem/sunos.rb, line 45 def get_operatingsystemmajorrelease if get_operatingsystem == "Solaris" if match = get_operatingsystemrelease.match(/^(\d+)/) match.captures[0] end end end