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
a7c12fad
Commit
a7c12fad
authored
Jun 27, 2013
by
Mitchell Hashimoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove the "compress" post-processor for now
parent
df577b02
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
48 deletions
+0
-48
plugin/post-processor-compress/main.go
plugin/post-processor-compress/main.go
+0
-10
post-processor/compress/post-processor.go
post-processor/compress/post-processor.go
+0
-38
No files found.
plugin/post-processor-compress/main.go
deleted
100644 → 0
View file @
df577b02
package
main
import
(
"github.com/mitchellh/packer/packer/plugin"
"github.com/mitchellh/packer/post-processor/compress"
)
func
main
()
{
plugin
.
ServePostProcessor
(
new
(
compress
.
PostProcessor
))
}
post-processor/compress/post-processor.go
deleted
100644 → 0
View file @
df577b02
// compress implements the packer.PostProcessor interface and adds a
// post-processor for compressing output.
package
compress
import
(
"errors"
"github.com/mitchellh/mapstructure"
"github.com/mitchellh/packer/packer"
)
type
Config
struct
{
Format
string
}
type
PostProcessor
struct
{
config
Config
}
func
(
p
*
PostProcessor
)
Configure
(
raw
interface
{})
error
{
if
err
:=
mapstructure
.
Decode
(
raw
,
&
p
.
config
);
err
!=
nil
{
return
err
}
if
p
.
config
.
Format
==
""
{
p
.
config
.
Format
=
"tar.gz"
}
if
p
.
config
.
Format
!=
"tar.gz"
{
return
errors
.
New
(
"only 'tar.gz' is a supported format right now"
)
}
return
nil
}
func
(
p
*
PostProcessor
)
PostProcess
(
ui
packer
.
Ui
,
artifact
packer
.
Artifact
)
(
packer
.
Artifact
,
error
)
{
ui
.
Say
(
"We made it to here."
)
return
nil
,
nil
}
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