| Safe Haskell | None | 
|---|---|
| Language | Haskell2010 | 
B9.Artifact.Readable.Interpreter
Description
Mostly effectful functions to assemble artifacts.
Synopsis
- buildArtifacts :: ArtifactGenerator -> B9 String
 - assemble :: ArtifactGenerator -> B9 [AssembledArtifact]
 - getArtifactOutputFiles :: ArtifactGenerator -> Either SomeException [FilePath]
 - runArtifactGenerator :: Environment -> String -> String -> ArtifactGenerator -> Either SomeException [InstanceGenerator [TextFileWriter]]
 - runArtifactAssembly :: IsB9 e => InstanceId -> FilePath -> ArtifactAssembly -> Eff e [ArtifactTarget]
 - data InstanceGenerator e = IG InstanceId e ArtifactAssembly
 - runInstanceGenerator :: IsB9 e => InstanceGenerator FilePath -> Eff e AssembledArtifact
 - data InstanceSources = InstanceSources {
- isEnv :: Environment
 - isSources :: [ArtifactSource]
 
 
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 #
Constructors
| IG InstanceId e ArtifactAssembly | 
Instances
runInstanceGenerator :: IsB9 e => InstanceGenerator FilePath -> Eff e AssembledArtifact Source #
Run an
data InstanceSources Source #
Internal data structure. Only exposed for unit testing.
Constructors
| InstanceSources | |
Fields 
  | |
Instances
| Eq InstanceSources Source # | |
Defined in B9.Artifact.Readable.Interpreter Methods (==) :: InstanceSources -> InstanceSources -> Bool # (/=) :: InstanceSources -> InstanceSources -> Bool #  | |
| Show InstanceSources Source # | |
Defined in B9.Artifact.Readable.Interpreter Methods showsPrec :: Int -> InstanceSources -> ShowS # show :: InstanceSources -> String # showList :: [InstanceSources] -> ShowS #  | |