View Source Smokestack.FactoryBuilder (smokestack v0.9.1)

Executes a factory and returns it's result.

Summary

Types

Manually specify some attributes.

Functions

Execute the named factory, if possible.

Types

@type attrs_option() :: {:attrs, Enumerable.t({atom(), any()})}

Manually specify some attributes.

@type error() :: any()
@type option() :: attrs_option()
@type result() :: %{optional(atom()) => any()}

Functions

@spec build(Smokestack.Dsl.Factory.t(), [option()]) ::
  {:ok, result()} | {:error, error()}

Execute the named factory, if possible.