Sha256: 49c5381e643b4c2fec60b72fd8d1ca65fefe7ecc00b7b0cb2994924f7ab09f6a

Contents?: true

Size: 438 Bytes

Versions: 1

Compression:

Stored size: 438 Bytes

Contents

module Getch
  module FileSystem
    module Zfs
      class Format < Getch::FileSystem::Zfs::Device
        def initialize
          super
          @state = Getch::States.new()
          format
        end

        def format
          return if STATES[:format]
          system("mkfs.fat -F32 #{@dev_boot_efi}") if @dev_boot_efi
          system("mkswap -f #{@dev_swap}")
          @state.format
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
getch-0.1.0 lib/getch/filesystem/zfs/format.rb