Module: VagrantBindfs::Vagrant::Capabilities::Darwin::SystemChecks

Defined in:
lib/vagrant-bindfs/vagrant/capabilities/darwin/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/darwin/system_checks.rb', line 14

def bindfs_exists_group(machine, group)
  group.nil? ||
    machine.communicate.test("test -n \"$(dscacheutil -q group -a name #{group.shellescape})\"")
end

.bindfs_exists_user(machine, user) ⇒ Object



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

def bindfs_exists_user(machine, user)
  user.nil? ||
    machine.communicate.test("test -n \"$(dscacheutil -q user -a name #{user.shellescape})\"")
end