Sha256: c804e0f1370deb7aba703ff1a3bfdecb007b2affe547be1e4686ad086243bbac
Contents?: true
Size: 603 Bytes
Versions: 5
Compression:
Stored size: 603 Bytes
Contents
module VagrantPlugins module HostDarwin module Cap class Version def self.version(env) r = Vagrant::Util::Subprocess.execute("sw_vers", "-productVersion") if r.exit_code != 0 raise Vagrant::Errors::DarwinVersionFailed, version: r.stdout, error: r.stderr end begin Gem::Version.new(r.stdout) rescue => err raise Vagrant::Errors::DarwinVersionFailed, version: r.stdout, error: err.message end end end end end end
Version data entries
5 entries across 5 versions & 2 rubygems