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
a6194467
Commit
a6194467
authored
Jun 14, 2013
by
Mitchell Hashimoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
builder/*: Adhere to the new interface
parent
9f5a2475
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
10 deletions
+21
-10
builder/amazonebs/builder.go
builder/amazonebs/builder.go
+8
-4
builder/virtualbox/builder.go
builder/virtualbox/builder.go
+7
-3
builder/vmware/builder.go
builder/vmware/builder.go
+6
-3
No files found.
builder/amazonebs/builder.go
View file @
a6194467
...
...
@@ -44,10 +44,14 @@ type Builder struct {
runner
multistep
.
Runner
}
func
(
b
*
Builder
)
Prepare
(
raw
interface
{})
error
{
err
:=
mapstructure
.
Decode
(
raw
,
&
b
.
config
)
if
err
!=
nil
{
return
err
func
(
b
*
Builder
)
Prepare
(
raws
...
interface
{})
error
{
var
err
error
for
_
,
raw
:=
range
raws
{
err
:=
mapstructure
.
Decode
(
raw
,
&
b
.
config
)
if
err
!=
nil
{
return
err
}
}
if
b
.
config
.
SSHPort
==
0
{
...
...
builder/virtualbox/builder.go
View file @
a6194467
...
...
@@ -47,10 +47,14 @@ type config struct {
RawSSHWaitTimeout
string
`mapstructure:"ssh_wait_timeout"`
}
func
(
b
*
Builder
)
Prepare
(
raw
interface
{})
error
{
func
(
b
*
Builder
)
Prepare
(
raw
s
...
interface
{})
error
{
var
err
error
if
err
:=
mapstructure
.
Decode
(
raw
,
&
b
.
config
);
err
!=
nil
{
return
err
for
_
,
raw
:=
range
raws
{
err
:=
mapstructure
.
Decode
(
raw
,
&
b
.
config
)
if
err
!=
nil
{
return
err
}
}
if
b
.
config
.
GuestOSType
==
""
{
...
...
builder/vmware/builder.go
View file @
a6194467
...
...
@@ -49,9 +49,12 @@ type config struct {
RawSSHWaitTimeout
string
`mapstructure:"ssh_wait_timeout"`
}
func
(
b
*
Builder
)
Prepare
(
raw
interface
{})
error
{
if
err
:=
mapstructure
.
Decode
(
raw
,
&
b
.
config
);
err
!=
nil
{
return
err
func
(
b
*
Builder
)
Prepare
(
raws
...
interface
{})
error
{
for
_
,
raw
:=
range
raws
{
err
:=
mapstructure
.
Decode
(
raw
,
&
b
.
config
)
if
err
!=
nil
{
return
err
}
}
if
b
.
config
.
DiskName
==
""
{
...
...
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