Module: VagrantBindfs::Vagrant::Capabilities::All::SystemChecks

Defined in:
lib/vagrant-bindfs/vagrant/capabilities/all/system_checks.rb

Overview

:nodoc:

Class Method Summary collapse

Class Method Details

.bindfs_exists_directory(machine, directory) ⇒ Object



9
10
11
# File 'lib/vagrant-bindfs/vagrant/capabilities/all/system_checks.rb', line 9

def bindfs_exists_directory(machine, directory)
  machine.communicate.test("test -d #{directory.shellescape}")
end

.bindfs_exists_mount(machine, directory) ⇒ Object



13
14
15
# File 'lib/vagrant-bindfs/vagrant/capabilities/all/system_checks.rb', line 13

def bindfs_exists_mount(machine, directory)
  machine.communicate.test("mount | grep '^bindfs' | grep #{directory.shellescape}")
end