Method: VagrantPlugins::SshConfigManager::FileLocker#with_exclusive_lock

Defined in:
lib/vagrant_ssh_config_manager/file_locker.rb

#with_exclusive_lock(timeout: DEFAULT_TIMEOUT, &block) ⇒ Object

Acquire an exclusive lock on the file



26
27
28
# File 'lib/vagrant_ssh_config_manager/file_locker.rb', line 26

def with_exclusive_lock(timeout: DEFAULT_TIMEOUT, &block)
  with_lock(LOCK_EXCLUSIVE, timeout: timeout, &block)
end