Copyright | (c) 2017 Red Hat Inc. |
---|---|
License | LGPL |
Maintainer | https://github.com/weldr |
Stability | alpha |
Portability | portable |
Safe Haskell | None |
Language | Haskell2010 |
BDCS.Export.Utils
Description
Miscellaneous utilities useful in exporting objects.
- runHacks :: (MonadBaseControl IO m, MonadError String m, MonadLoggerIO m) => FilePath -> m ()
- runTmpfiles :: (MonadBaseControl IO m, MonadError String m, MonadLoggerIO m) => FilePath -> m ()
Documentation
runHacks :: (MonadBaseControl IO m, MonadError String m, MonadLoggerIO m) => FilePath -> m () Source #
Run filesystem hacks needed to make a directory tree bootable. Any exporter that produces a finished image should call this function. Otherwise, it is not generally useful and should be avoided. The exact hacks required is likely to change over time.
Any exceptions from Exception
will be convered into Except
style
exceptions, which can then be handled via catchError from that module.
runTmpfiles :: (MonadBaseControl IO m, MonadError String m, MonadLoggerIO m) => FilePath -> m () Source #