From a7c12fadc655e058a01b56fc2e6304dbd1676831 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Thu, 27 Jun 2013 08:32:15 -0700 Subject: [PATCH] Remove the "compress" post-processor for now --- plugin/post-processor-compress/main.go | 10 ------ post-processor/compress/post-processor.go | 38 ----------------------- 2 files changed, 48 deletions(-) delete mode 100644 plugin/post-processor-compress/main.go delete mode 100644 post-processor/compress/post-processor.go diff --git a/plugin/post-processor-compress/main.go b/plugin/post-processor-compress/main.go deleted file mode 100644 index 4b7aeaa68..000000000 --- a/plugin/post-processor-compress/main.go +++ /dev/null @@ -1,10 +0,0 @@ -package main - -import ( - "github.com/mitchellh/packer/packer/plugin" - "github.com/mitchellh/packer/post-processor/compress" -) - -func main() { - plugin.ServePostProcessor(new(compress.PostProcessor)) -} diff --git a/post-processor/compress/post-processor.go b/post-processor/compress/post-processor.go deleted file mode 100644 index 5af39a78a..000000000 --- a/post-processor/compress/post-processor.go +++ /dev/null @@ -1,38 +0,0 @@ -// 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 -}