Class: VagrantBindfs::Vagrant::Plugin

Inherits:
Object
  • Object
show all
Includes:
Capabilities
Defined in:
lib/vagrant-bindfs/vagrant/plugin.rb

Overview

:nodoc:

Class Method Summary collapse

Methods included from Capabilities

included, module_by_name

Class Method Details

.hooksObject



27
28
29
30
31
32
# File 'lib/vagrant-bindfs/vagrant/plugin.rb', line 27

def hooks
  @hooks ||= {
    synced_folders: synced_folders_hook,
    provision: ::Vagrant::Action::Builtin::Provision
  }
end

.synced_folders_hookObject



34
35
36
37
38
39
40
# File 'lib/vagrant-bindfs/vagrant/plugin.rb', line 34

def synced_folders_hook
  if ::Vagrant::Action::Builtin.const_defined?(:NFS, false)
    ::Vagrant::Action::Builtin::NFS
  else
    ::Vagrant::Action::Builtin::SyncedFolders
  end
end