lib/vagrant/hosts/bsd.rb in vagrantup-0.8.5 vs lib/vagrant/hosts/bsd.rb in vagrantup-0.8.6

- old
+ new

@@ -1,10 +1,16 @@ +require 'vagrant/util/platform' + module Vagrant module Hosts # Represents a BSD host, such as FreeBSD and Darwin (Mac OS X). class BSD < Base include Util include Util::Retryable + + def self.distro_dispatch + return self if Util::Platform.darwin? || Util::Platform.bsd? + end def nfs? retryable(:tries => 10, :on => TypeError) do system("which nfsd > /dev/null 2>&1") end