website: update new buidler interface
This commit is contained in:
parent
521b59a6fa
commit
66faf73799
|
@ -38,7 +38,7 @@ type Builder interface {
|
||||||
// Run is where the actual build should take place. It takes a Ui to
|
// Run is where the actual build should take place. It takes a Ui to
|
||||||
// send messages to the user, Hook to execute hooks, and Cache in order
|
// send messages to the user, Hook to execute hooks, and Cache in order
|
||||||
// to save files across runs.
|
// to save files across runs.
|
||||||
Run(Ui, Hook, Cache) Artifact
|
Run(Ui, Hook, Cache) (Artifact, error)
|
||||||
|
|
||||||
// Cancel cancels a possibly running Builder. This should block until
|
// Cancel cancels a possibly running Builder. This should block until
|
||||||
// the builder actually cancels and cleans up after itself.
|
// the builder actually cancels and cleans up after itself.
|
||||||
|
@ -87,7 +87,9 @@ how the built-in builders are all implemented.
|
||||||
|
|
||||||
Finally, as a result of `Run`, an implementation of `packer.Artifact` should
|
Finally, as a result of `Run`, an implementation of `packer.Artifact` should
|
||||||
be returned. More details on creating a `packer.Artifact` are covered in the
|
be returned. More details on creating a `packer.Artifact` are covered in the
|
||||||
artifact section below.
|
artifact section below. If something goes wrong during the build, an error
|
||||||
|
can be returned, as well. Note that it is perfectly fine to produce no artifact
|
||||||
|
and no error, although this is rare.
|
||||||
|
|
||||||
### The "Cancel" Method
|
### The "Cancel" Method
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue