class Getch::FileSystem::Ext4::Encrypt::Format
Public Class Methods
new()
click to toggle source
Calls superclass method
Getch::FileSystem::Ext4::Encrypt::Device::new
# File lib/getch/filesystem/ext4/encrypt/format.rb, line 6 def initialize super @state = Getch::States.new() format end
Public Instance Methods
format()
click to toggle source
# File lib/getch/filesystem/ext4/encrypt/format.rb, line 12 def format return if STATES[:format] exec("mkfs.fat -F32 #{@dev_esp}") if @dev_esp exec("mkfs.ext4 -F #{@luks_root}") exec("mkfs.ext4 -F #{@luks_home}") if @dev_home @state.format end
Private Instance Methods
exec(cmd)
click to toggle source
# File lib/getch/filesystem/ext4/encrypt/format.rb, line 22 def exec(cmd) Getch::Command.new(cmd).run! end