Class: Sgpg::Cryptsetup
- Inherits:
-
Object
- Object
- Sgpg::Cryptsetup
- Defined in:
- lib/sgpg/cryptsetup.rb
Overview
Control program cryptsetup
Defined Under Namespace
Classes: InvalidDisk
Instance Method Summary collapse
- #close ⇒ Object
-
#initialize(disk) ⇒ Cryptsetup
constructor
A new instance of Cryptsetup.
-
#open ⇒ Object
Tails Linux make persistent volume on second partition ‘disk_name’2.
Constructor Details
#initialize(disk) ⇒ Cryptsetup
Returns a new instance of Cryptsetup.
10 11 12 13 14 15 |
# File 'lib/sgpg/cryptsetup.rb', line 10 def initialize(disk) raise "No disk #{disk} specified..." unless disk @disk = disk @mapname = 'sgpg' end |