Class: CryptSetup
- Inherits:
-
Object
- Object
- CryptSetup
- Defined in:
- lib/cryptsetup.rb
Instance Method Summary collapse
- #configs ⇒ Object
- #format ⇒ Object
-
#initialize(devs, options) ⇒ CryptSetup
constructor
A new instance of CryptSetup.
- #keys ⇒ Object
- #swap_conf ⇒ Object
Constructor Details
#initialize(devs, options) ⇒ CryptSetup
Returns a new instance of CryptSetup.
4 5 6 7 8 9 10 11 12 13 14 |
# File 'lib/cryptsetup.rb', line 4 def initialize(devs, ) @boot = devs[:boot] @root = devs[:root] @home = devs[:home] @swap = devs[:swap] ||= nil @options = @luks = [:luks_name] @vg = [:vg_name] @fs = [:fs] ||= 'ext4' @mountpoint = [:mountpoint] ||= '/mnt/getch' end |
Instance Method Details
#configs ⇒ Object
28 29 30 31 32 33 |
# File 'lib/cryptsetup.rb', line 28 def configs config_boot config_root config_home config_swap end |
#format ⇒ Object
16 17 18 19 20 |
# File 'lib/cryptsetup.rb', line 16 def format format_boot format_root format_home end |
#keys ⇒ Object
22 23 24 25 26 |
# File 'lib/cryptsetup.rb', line 22 def keys add_boot_key add_root_key add_home_key end |
#swap_conf ⇒ Object
35 36 37 |
# File 'lib/cryptsetup.rb', line 35 def swap_conf config_swap end |