Class: VagrantBindfs::Vagrant::Plugin

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

Class Method Summary collapse

Methods included from Capabilities

included, module_by_name

Class Method Details

.hooksObject



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

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

.synced_folders_hookObject



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

def synced_folders_hook
  if ::Vagrant::Action::Builtin.const_defined? :NFS
    ::Vagrant::Action::Builtin::NFS
  else
    ::Vagrant::Action::Builtin::SyncedFolders
  end
end