b9-3.2.3: A tool and library for building virtual machine images.
Safe HaskellNone
LanguageHaskell2010

B9.BuildInfo

Description

Provide information about the current build.

This module provides build meta information like build directory, build-id and build-time.

Since: 0.5.65

Synopsis

Documentation

withBuildInfo :: (Lifted IO e, MonadBaseControl IO (Eff e), Member B9ConfigReader e, Member ExcB9 e, Member EnvironmentReader e, Member LoggerReader e, HasCallStack) => Bool -> Eff (BuildInfoReader ': e) a -> Eff e a Source #

Create the build directories, generate (hash) the build-id and execute the given action.

Bindings added to the text template parameter environment:

  • projectRoot the directory that contains the sources of the project to build
  • buildDir the temporary directory used store the build artifacts passed into- or outof the build

Unless _keepTempDirs is True clean up the build directories after the actions returns - even if the action throws a runtime exception.

Since: 0.5.65

type BuildInfoReader = Reader BuildInfo Source #

Type alias for a BuildInfo Reader

Since: 0.5.65

isInteractive :: Member BuildInfoReader e => Eff e Bool Source #

Ask whether stdin of the B9 process should be redirected to the external commands executed during the build.

Since: 2.0.0