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

Version Path
vagrant-unbundled-2.3.6.0 plugins/hosts/darwin/cap/version.rb
tamtam-vagrant-reload-1.2.1 vendor/cache/vagrant-2092df529ae7/plugins/hosts/darwin/cap/version.rb
vagrant-unbundled-2.3.3.0 plugins/hosts/darwin/cap/version.rb
vagrant-unbundled-2.3.2.0 plugins/hosts/darwin/cap/version.rb
vagrant-unbundled-2.2.19.0 plugins/hosts/darwin/cap/version.rb