Module: VagrantBindfs::Vagrant::Capabilities::Linux::SystemChecks
- Defined in:
- lib/vagrant-bindfs/vagrant/capabilities/linux/system_checks.rb
Overview
:nodoc:
Class Method Summary collapse
Class Method Details
.bindfs_exists_group(machine, group) ⇒ Object
14 15 16 17 |
# File 'lib/vagrant-bindfs/vagrant/capabilities/linux/system_checks.rb', line 14 def bindfs_exists_group(machine, group) group.nil? || machine.communicate.test("getent group #{group.shellescape}") end |
.bindfs_exists_user(machine, user) ⇒ Object
9 10 11 12 |
# File 'lib/vagrant-bindfs/vagrant/capabilities/linux/system_checks.rb', line 9 def bindfs_exists_user(machine, user) user.nil? || machine.communicate.test("getent passwd #{user.shellescape}") end |