Module: VagrantBindfs::Vagrant::Capabilities::All::SystemChecks
- Defined in:
- lib/vagrant-bindfs/vagrant/capabilities/all/system_checks.rb
Class Method Summary collapse
- .bindfs_exists_directory(machine, directory) ⇒ Object
- .bindfs_exists_mount(machine, directory) ⇒ Object
Class Method Details
.bindfs_exists_directory(machine, directory) ⇒ Object
8 9 10 |
# File 'lib/vagrant-bindfs/vagrant/capabilities/all/system_checks.rb', line 8 def bindfs_exists_directory(machine, directory) machine.communicate.test("test -d #{directory.shellescape}") end |
.bindfs_exists_mount(machine, directory) ⇒ Object
12 13 14 |
# File 'lib/vagrant-bindfs/vagrant/capabilities/all/system_checks.rb', line 12 def bindfs_exists_mount(machine, directory) machine.communicate.test("mount | grep '^bindfs' | grep #{directory.shellescape}") end |