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
d6efe3c7
Commit
d6efe3c7
authored
May 08, 2013
by
Mitchell Hashimoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
builder/amazonebs, plugin/builder-amazon-ebs
parent
c164b4c2
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
61 additions
and
0 deletions
+61
-0
Makefile
Makefile
+2
-0
builder/amazonebs/builder.go
builder/amazonebs/builder.go
+20
-0
builder/amazonebs/builder_test.go
builder/amazonebs/builder_test.go
+14
-0
plugin/builder-amazon-ebs/Makefile
plugin/builder-amazon-ebs/Makefile
+15
-0
plugin/builder-amazon-ebs/main.go
plugin/builder-amazon-ebs/main.go
+10
-0
No files found.
Makefile
View file @
d6efe3c7
...
@@ -10,6 +10,8 @@ all:
...
@@ -10,6 +10,8 @@ all:
go get
-d
-v
./...
go get
-d
-v
./...
@
echo
"
$(OK_COLOR)
--> Compiling Packer...
$(NO_COLOR)
"
@
echo
"
$(OK_COLOR)
--> Compiling Packer...
$(NO_COLOR)
"
go build
-v
-o
bin/packer
go build
-v
-o
bin/packer
@
echo
"
$(OK_COLOR)
--> Compiling Builder: Amazon EBS...
$(NO_COLOR)
"
$(MAKE)
-C
plugin/builder-amazon-ebs
@
echo
"
$(OK_COLOR)
--> Compiling Command: Build...
$(NO_COLOR)
"
@
echo
"
$(OK_COLOR)
--> Compiling Command: Build...
$(NO_COLOR)
"
$(MAKE)
-C
plugin/command-build
$(MAKE)
-C
plugin/command-build
...
...
builder/amazon/builder.go
→
builder/amazon
ebs
/builder.go
View file @
d6efe3c7
package
amazon
package
amazonebs
import
(
"github.com/mitchellh/packer/packer"
)
type
config
struct
{
type
config
struct
{
AccessKey
string
AccessKey
string
...
@@ -11,12 +15,6 @@ type Builder struct {
...
@@ -11,12 +15,6 @@ type Builder struct {
config
config
config
config
}
}
func
(
b
*
Builder
)
ConfigInterface
()
interface
{}
{
func
(
*
Builder
)
Prepare
(
interface
{})
{}
return
&
b
.
config
}
func
(
*
Builder
)
Prepare
()
{
func
(
*
Builder
)
Run
(
packer
.
Build
,
packer
.
Ui
)
{}
}
func
(
b
*
Builder
)
Build
()
{
}
builder/amazonebs/builder_test.go
0 → 100644
View file @
d6efe3c7
package
amazonebs
import
(
"cgl.tideland.biz/asserts"
"github.com/mitchellh/packer/packer"
"testing"
)
func
TestBuilder_ImplementsBuilder
(
t
*
testing
.
T
)
{
assert
:=
asserts
.
NewTestingAsserts
(
t
,
true
)
var
actual
packer
.
Builder
assert
.
Implementor
(
&
Builder
{},
&
actual
,
"should be a Builder"
)
}
plugin/builder-amazon-ebs/Makefile
0 → 100644
View file @
d6efe3c7
PLUGIN_NAME
=
packer-builder-amazon-ebs
plugin
:
go get
-d
-v
./...
go build
-v
-o
$(ROOTDIR)
/bin/
$(PLUGIN_NAME)
format
:
go
fmt
./...
test
:
@
go list
-f
'{{range .TestImports}}{{.}}\
{{end}}'
./... | xargs
-n1
go get
-d
go
test
./...
.PHONY
:
all format test
plugin/builder-amazon-ebs/main.go
0 → 100644
View file @
d6efe3c7
package
main
import
(
"github.com/mitchellh/packer/builder/amazonebs"
"github.com/mitchellh/packer/packer/plugin"
)
func
main
()
{
plugin
.
ServeBuilder
(
new
(
amazonebs
.
Builder
))
}
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