You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: spdk_path.rb
    path of file: ./repos/ubicloud/rhizome/host/lib
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

# YYY: Remove all checks against this after upgrading all legacy systems
LEGACY_SPDK_VERSION = "LEGACY_SPDK_VERSION"

DEFAULT_SPDK_VERSION = "v23.09-ubi-0.2"

m
    
  def self.hugepages_dir(spdk_version)
    # Hugepages path can't have any "-" characters. This is because mount
    # service name should match the path, and the "-" s in mount service name
    # are regarded as "/" s in the path.
    (spdk_version == LEGACY_SPDK_VERSION) ?
      File.join(home, "hugepages") :
      File.join(home, "hugepages.#{spdk_version.tr("-", ".")}")
  end