class Gitlab::QA::Support::GitlabVersionInfo

def current_major

Returns:
  • (Integer) -
def current_major
  @current_major ||= current_version.match(COMPONENT_PATTERN)[:major].to_i
end