b9-0.5.68.2: A tool and library for building virtual machine images.

Safe HaskellNone
LanguageHaskell2010

B9.Artifact.Readable.Interpreter

Description

Mostly effectful functions to assemble artifacts.

Synopsis

Documentation

buildArtifacts :: ArtifactGenerator -> B9 String Source #

Execute an ArtifactGenerator and return a B9Invocation that returns the build id obtained by getBuildId.

assemble :: ArtifactGenerator -> B9 [AssembledArtifact] Source #

Run an artifact generator to produce the artifacts.

getArtifactOutputFiles :: ArtifactGenerator -> Either SomeException [FilePath] Source #

Return a list of relative paths for the local files to be generated by the ArtifactGenerator. This excludes Shared and Transient image targets.

runArtifactGenerator :: Environment -> String -> String -> ArtifactGenerator -> Either SomeException [InstanceGenerator [TextFileWriter]] Source #

Interpret an ArtifactGenerator into a list of simple commands, i.e. InstanceGenerators

Since: 0.5.65

runArtifactAssembly :: IsB9 e => InstanceId -> FilePath -> ArtifactAssembly -> Eff e [ArtifactTarget] Source #

Create the ArtifactTarget from an ArtifactAssembly in the directory instanceDir

Since: 0.5.65

data InstanceGenerator e Source #

Instances
Eq e => Eq (InstanceGenerator e) Source # 
Instance details

Defined in B9.Artifact.Readable.Interpreter

Data e => Data (InstanceGenerator e) Source # 
Instance details

Defined in B9.Artifact.Readable.Interpreter

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> InstanceGenerator e -> c (InstanceGenerator e) #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c (InstanceGenerator e) #

toConstr :: InstanceGenerator e -> Constr #

dataTypeOf :: InstanceGenerator e -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c (InstanceGenerator e)) #

dataCast2 :: Typeable t => (forall d e0. (Data d, Data e0) => c (t d e0)) -> Maybe (c (InstanceGenerator e)) #

gmapT :: (forall b. Data b => b -> b) -> InstanceGenerator e -> InstanceGenerator e #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> InstanceGenerator e -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> InstanceGenerator e -> r #

gmapQ :: (forall d. Data d => d -> u) -> InstanceGenerator e -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> InstanceGenerator e -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> InstanceGenerator e -> m (InstanceGenerator e) #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> InstanceGenerator e -> m (InstanceGenerator e) #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> InstanceGenerator e -> m (InstanceGenerator e) #

Read e => Read (InstanceGenerator e) Source # 
Instance details

Defined in B9.Artifact.Readable.Interpreter

Show e => Show (InstanceGenerator e) Source # 
Instance details

Defined in B9.Artifact.Readable.Interpreter

data InstanceSources Source #

Internal data structure. Only exposed for unit testing.