NAME

PiFlash::State - PiFlash::State class to store configuration, device info and program state

VERSION

version 0.0.2

SYNOPSIS

$bool = PiFlash::State::verbose()
PiFlash::State::odump
PiFlash::State->error("error message");

DESCRIPTION

This class contains internal functions used by PiFlash to gather data about available devices on the system and determine if they are SD card devices.

PiFlash uses this info to refuse to write/destroy a device which is not an SD card. This provides a safeguard while using root permissions against a potential error which has happened where users have accidentally erased the wrong block device, losing a hard drive they wanted to keep.

SEE ALSO

piflash, PiFlash::Command, PiFlash::Inspector, PiFlash::State

AUTHOR

Ian Kluft <cpan-dev@iankluft.com>

COPYRIGHT AND LICENSE

This software is Copyright (c) 2017-2018 by Ian Kluft.

This is free software, licensed under:

The Apache License, Version 2.0, January 2004