Sha256: 25aaca0a5f3f64cb4fe20104c5a014168567abb3add55365919e9cd3171ee50e
Contents?: true
Size: 616 Bytes
Versions: 1
Compression:
Stored size: 616 Bytes
Contents
module Getch module FileSystem module Ext4 class Format < Getch::FileSystem::Ext4::Device def initialize super @state = Getch::States.new format end def format return if STATES[:format] exec("mkfs.fat -F32 #{@dev_esp}") if @dev_esp exec("mkswap -f #{@dev_swap}") exec("mkfs.ext4 -F #{@dev_root}") exec("mkfs.ext4 -F #{@dev_home}") if @dev_home @state.format end private def exec(cmd) Getch::Command.new(cmd).run! end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
getch-0.1.6 | lib/getch/filesystem/ext4/format.rb |