Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
packer
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kristopher Ruzic
packer
Commits
66faf737
Commit
66faf737
authored
Jun 12, 2013
by
Mitchell Hashimoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
website: update new buidler interface
parent
521b59a6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
website/source/docs/extend/builder.html.markdown
website/source/docs/extend/builder.html.markdown
+4
-2
No files found.
website/source/docs/extend/builder.html.markdown
View file @
66faf737
...
@@ -38,7 +38,7 @@ type Builder interface {
...
@@ -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.
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment