class ChefConfig::Config

def self.windows_installation_drive

Returns:
  • (String) - the drive letter
def self.windows_installation_drive
  if ChefConfig.windows?
    drive = File.expand_path(__FILE__).split("/", 2)[0]
    drive = ENV["SYSTEMDRIVE"] if drive.to_s == ""
    drive
  end
end