Class: Getch::Tree::FS
- Inherits:
-
Object
- Object
- Getch::Tree::FS
- Defined in:
- lib/getch/tree.rb
Overview
call class depend on filesystem choosen.
Constant Summary collapse
- FS_TREE =
{ true => { # + encrypt true => { # + lvm ext4: FileSystem::Ext4::Hybrid }, false => { # - lvm ext4: FileSystem::Ext4::Encrypt, zfs: FileSystem::Zfs::Encrypt } }, false => { # - encrypt true => { # + lvm ext4: FileSystem::Ext4::Lvm }, false => { # - lvm ext4: FileSystem::Ext4::Minimal, zfs: FileSystem::Zfs::Minimal } } }.freeze
Instance Method Summary collapse
-
#initialize ⇒ FS
constructor
A new instance of FS.
- #select ⇒ Object
Constructor Details
Instance Method Details
#select ⇒ Object
52 53 54 |
# File 'lib/getch/tree.rb', line 52 def select FS_TREE[@encrypt][@lvm][@fs.to_sym] || @log.fatal('Error in FS_TREE or no comptatible options') end |