Sha256: 106f779e13bb3e7c7438298922dfd6aee0b227dc93276158f49d9edabe12c11c

Contents?: true

Size: 872 Bytes

Versions: 30

Compression:

Stored size: 872 Bytes

Contents

require 'vagrant/util/platform'

module Vagrant
  module Hosts
    # Represents a FreeBSD host
    class FreeBSD < BSD
      class FreeBSDHostError < Errors::VagrantError
        error_namespace("vagrant.hosts.freebsd")
      end

      include Util
      include Util::Retryable

      def self.match?
        Util::Platform.freebsd?
      end

      # Normal, mid-range precedence.
      def self.precedence
        5
      end

      def nfs_export(id, ip, folders)
        folders.each do |folder_name, folder_values|
          if folder_values[:hostpath] =~ /\s+/
            raise FreeBSDHostError, :_key => :nfs_whitespace
          end
        end

        super
      end

      def initialize(*args)
        super

        @nfs_restart_command = "sudo /etc/rc.d/mountd onereload"
        @nfs_exports_template = "nfs/exports_freebsd"
      end
    end
  end
end

Version data entries

30 entries across 30 versions & 6 rubygems

Version Path
bmhatfield-vagrant-1.0.10 lib/vagrant/hosts/freebsd.rb
bmhatfield-vagrant-1.0.9 lib/vagrant/hosts/freebsd.rb
bmhatfield-vagrant-1.0.8 lib/vagrant/hosts/freebsd.rb
bmhatfield-vagrant-1.0.7 lib/vagrant/hosts/freebsd.rb
vagrantup-1.0.7 lib/vagrant/hosts/freebsd.rb
vagrantup-1.0.6 lib/vagrant/hosts/freebsd.rb
vagrantup-1.0.5 lib/vagrant/hosts/freebsd.rb
vagrantup-1.0.4 lib/vagrant/hosts/freebsd.rb
vagrantup-1.0.3 lib/vagrant/hosts/freebsd.rb
vagrantup-1.0.2 lib/vagrant/hosts/freebsd.rb
vagrantup-1.0.1 lib/vagrant/hosts/freebsd.rb
vagrantup-1.0.0 lib/vagrant/hosts/freebsd.rb
vagrantup-0.9.99.2 lib/vagrant/hosts/freebsd.rb
vagrantup-0.9.99.1 lib/vagrant/hosts/freebsd.rb
vagrantup-0.9.7 lib/vagrant/hosts/freebsd.rb
vagrantup-0.9.6 lib/vagrant/hosts/freebsd.rb
vagrantup-0.9.5 lib/vagrant/hosts/freebsd.rb
vagrant-fixed-ssh-1.0.7 lib/vagrant/hosts/freebsd.rb
vagrant-1.0.7 lib/vagrant/hosts/freebsd.rb
vagrant-1.0.6 lib/vagrant/hosts/freebsd.rb