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
766d217e
Commit
766d217e
authored
Jun 12, 2015
by
Chris Bednarski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Pull config into the builder
parent
64fd3a33
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
builder/file/builder.go
builder/file/builder.go
+8
-2
No files found.
builder/file/builder.go
View file @
766d217e
...
@@ -33,8 +33,14 @@ type Builder struct {
...
@@ -33,8 +33,14 @@ type Builder struct {
//
//
// Prepare should return a list of warnings along with any errors
// Prepare should return a list of warnings along with any errors
// that occured while preparing.
// that occured while preparing.
func
(
b
*
Builder
)
Prepare
(
...
interface
{})
([]
string
,
error
)
{
func
(
b
*
Builder
)
Prepare
(
raws
...
interface
{})
([]
string
,
error
)
{
return
nil
,
nil
c
,
warnings
,
errs
:=
NewConfig
(
raws
...
)
if
errs
!=
nil
{
return
warnings
,
errs
}
b
.
config
=
c
return
warnings
,
nil
}
}
// Run is where the actual build should take place. It takes a Build and a Ui.
// Run is where the actual build should take place. It takes a Build and a Ui.
...
...
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