Sha256: 38f165cceed3050cdf3aa1f564c976d9da7ac9ddefab9a10a544d1fd6ef171ca
Contents?: true
Size: 923 Bytes
Versions: 10
Compression:
Stored size: 923 Bytes
Contents
require "log4r" module VagrantPlugins module HyperV module Cap module ValidateDiskExt LOGGER = Log4r::Logger.new("vagrant::plugins::hyperv::validate_disk_ext") # The default set of disk formats that Hyper-V supports DEFAULT_DISK_EXT_LIST = ["vhd", "vhdx"].map(&:freeze).freeze DEFAULT_DISK_EXT = "vhdx".freeze # @param [Vagrant::Machine] machine # @param [String] disk_ext # @return [Bool] def self.validate_disk_ext(machine, disk_ext) DEFAULT_DISK_EXT_LIST.include?(disk_ext) end # @param [Vagrant::Machine] machine # @return [Array] def self.default_disk_exts(machine) DEFAULT_DISK_EXT_LIST end # @param [Vagrant::Machine] machine # @return [String] def self.set_default_disk_ext(machine) DEFAULT_DISK_EXT end end end end end
Version data entries
10 entries across 10 versions & 3 rubygems