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
44c61e53
Commit
44c61e53
authored
May 09, 2013
by
Mitchell Hashimoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Some additional logging
parent
6d0fa84e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
2 deletions
+11
-2
builder/amazonebs/builder.go
builder/amazonebs/builder.go
+2
-0
packer/build.go
packer/build.go
+9
-2
No files found.
builder/amazonebs/builder.go
View file @
44c61e53
...
...
@@ -4,6 +4,7 @@ import (
"encoding/json"
"errors"
"github.com/mitchellh/packer/packer"
"log"
)
type
config
struct
{
...
...
@@ -34,6 +35,7 @@ func (b *Builder) Prepare(raw interface{}) (err error) {
return
}
log
.
Printf
(
"Config: %+v
\n
"
,
b
.
config
)
return
}
...
...
packer/build.go
View file @
44c61e53
package
packer
import
"log"
// A Build represents a single job within Packer that is responsible for
// building some machine image artifact. Builds are meant to be parallelized.
type
Build
interface
{
...
...
@@ -41,9 +43,14 @@ func (b *coreBuild) Name() string {
// Prepare prepares the build by doing some initialization for the builder
// and any hooks. This _must_ be called prior to Run.
func
(
b
*
coreBuild
)
Prepare
()
error
{
func
(
b
*
coreBuild
)
Prepare
()
(
err
error
)
{
b
.
prepareCalled
=
true
return
b
.
builder
.
Prepare
(
b
.
rawConfig
)
err
=
b
.
builder
.
Prepare
(
b
.
rawConfig
)
if
err
!=
nil
{
log
.
Printf
(
"Build '%s' prepare failure: %s
\n
"
,
b
.
name
,
err
)
}
return
}
// Runs the actual build. Prepare must be called prior to running this.
...
...
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