Class: CryptReboot::SafeTemp::Mounter
- Inherits:
-
Object
- Object
- CryptReboot::SafeTemp::Mounter
- Defined in:
- lib/crypt_reboot/safe_temp/mounter.rb
Overview
Mount ramfs at the given mount point, yield and unmount. We don’t want the contents of directory to be swapped, therefore ramfs is used instead of tmpfs.
Instance Method Summary collapse
Instance Method Details
#call(dir, &block) ⇒ Object
9 10 11 12 |
# File 'lib/crypt_reboot/safe_temp/mounter.rb', line 9 def call(dir, &block) mounter.call(dir) run(dir, &block) end |