Class: CryptSetup
- Inherits:
-
Object
- Object
- CryptSetup
- Defined in:
- lib/cryptsetup.rb
Overview
Used to interact with dmcrypt
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.
7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/cryptsetup.rb', line 7 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
31 32 33 34 35 36 |
# File 'lib/cryptsetup.rb', line 31 def configs config_boot config_root config_home config_swap end |
#format ⇒ Object
19 20 21 22 23 |
# File 'lib/cryptsetup.rb', line 19 def format format_boot format_root format_home end |
#keys ⇒ Object
25 26 27 28 29 |
# File 'lib/cryptsetup.rb', line 25 def keys add_boot_key add_root_key add_home_key end |
#swap_conf ⇒ Object
38 39 40 |
# File 'lib/cryptsetup.rb', line 38 def swap_conf config_swap end |