Sha256: 9c69786342af5b567cac6d47d5b777aa24c1da23c9a05779e6ee3795adde992e

Contents?: true

Size: 990 Bytes

Versions: 19

Compression:

Stored size: 990 Bytes

Contents

require "vagrant"
require 'vagrant/util/platform'

require Vagrant.source_root.join("plugins/hosts/bsd/host")

module VagrantPlugins
  module HostFreeBSD
    class Host < VagrantPlugins::HostBSD::Host
      class FreeBSDHostError < Vagrant::Errors::VagrantError
        error_namespace("vagrant.hosts.freebsd")
      end

      include Vagrant::Util
      include Vagrant::Util::Retryable

      def self.match?
        Vagrant::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

19 entries across 19 versions & 6 rubygems

Version Path
tamtam-vagrant-reload-1.1.3 vendor/cache/vagrant-0ac2a8738841/plugins/hosts/freebsd/host.rb
tamtam-vagrant-reload-1.1.2 vendor/cache/vagrant-0ac2a8738841/plugins/hosts/freebsd/host.rb
tamtam-vagrant-reload-1.1.1 vendor/cache/vagrant-0ac2a8738841/plugins/hosts/freebsd/host.rb
tamtam-vagrant-reload-1.1 vendor/cache/vagrant-0ac2a8738841/plugins/hosts/freebsd/host.rb
tnargav-1.3.6 plugins/hosts/freebsd/host.rb
tnargav-1.3.3 plugins/hosts/freebsd/host.rb
vagrant-shell-0.2.9 demo/templates/vendor/bundle/ruby/1.9.1/gems/tnargav-1.2.2/plugins/hosts/freebsd/host.rb
tnargav-1.2.3 plugins/hosts/freebsd/host.rb
vagrant-shell-0.2.8 demo/templates/vendor/bundle/ruby/1.9.1/gems/tnargav-1.2.2/plugins/hosts/freebsd/host.rb
vagrant-shell-0.2.6 vendor/bundle/gems/tnargav-1.2.2/plugins/hosts/freebsd/host.rb
vagrant-shell-0.2.5 vendor/bundle/gems/tnargav-1.2.2/plugins/hosts/freebsd/host.rb
tnargav-1.2.2 plugins/hosts/freebsd/host.rb
vagrantup-1.1.3 plugins/hosts/freebsd/host.rb
vagrantup-1.1.2 plugins/hosts/freebsd/host.rb
vagrantup-1.1.1 plugins/hosts/freebsd/host.rb
vagrantup-1.1.0 plugins/hosts/freebsd/host.rb
vagrantup-1.1.4 plugins/hosts/freebsd/host.rb
vagrant-actionio-0.0.9 vendor/bundle/bundler/gems/vagrant-c74251a1d9c0/plugins/hosts/freebsd/host.rb
vagrant-lxc-0.0.1 vendor/vagrant/plugins/hosts/freebsd/host.rb