From 3a136aad77bbc07d8cae884ae6e6f711ff9fa9da Mon Sep 17 00:00:00 2001 From: Chris Lundquist Date: Wed, 11 May 2016 01:22:26 +0000 Subject: [PATCH] [lxc] remove vagrant post processor --- post-processor/vagrant/lxc.go | 30 ------------------------ post-processor/vagrant/lxc_test.go | 9 ------- post-processor/vagrant/post-processor.go | 3 --- 3 files changed, 42 deletions(-) delete mode 100644 post-processor/vagrant/lxc.go delete mode 100644 post-processor/vagrant/lxc_test.go diff --git a/post-processor/vagrant/lxc.go b/post-processor/vagrant/lxc.go deleted file mode 100644 index 24fff2edb..000000000 --- a/post-processor/vagrant/lxc.go +++ /dev/null @@ -1,30 +0,0 @@ -package vagrant - -import ( - "fmt" - "github.com/mitchellh/packer/packer" - "path/filepath" -) - -type LxcProvider struct{} - -func (p *LxcProvider) KeepInputArtifact() bool { - return false -} - -func (p *LxcProvider) Process(ui packer.Ui, artifact packer.Artifact, dir string) (vagrantfile string, metadata map[string]interface{}, err error) { - // Create the metadata - metadata = map[string]interface{}{"provider": "lxc", "version": "1.0.0"} - - // Copy all of the original contents into the temporary directory - for _, path := range artifact.Files() { - ui.Message(fmt.Sprintf("Copying: %s", path)) - - dstPath := filepath.Join(dir, filepath.Base(path)) - if err = CopyContents(dstPath, path); err != nil { - return - } - } - - return -} diff --git a/post-processor/vagrant/lxc_test.go b/post-processor/vagrant/lxc_test.go deleted file mode 100644 index f3fbc320c..000000000 --- a/post-processor/vagrant/lxc_test.go +++ /dev/null @@ -1,9 +0,0 @@ -package vagrant - -import ( - "testing" -) - -func TestLxcProvider_impl(t *testing.T) { - var _ Provider = new(LxcProvider) -} diff --git a/post-processor/vagrant/post-processor.go b/post-processor/vagrant/post-processor.go index 9a20ed5ae..aa65b2292 100644 --- a/post-processor/vagrant/post-processor.go +++ b/post-processor/vagrant/post-processor.go @@ -28,7 +28,6 @@ var builtins = map[string]string{ "packer.parallels": "parallels", "MSOpenTech.hyperv": "hyperv", "transcend.qemu": "libvirt", - "ustream.lxc": "lxc", } type Config struct { @@ -233,8 +232,6 @@ func providerForName(name string) Provider { return new(HypervProvider) case "libvirt": return new(LibVirtProvider) - case "lxc": - return new(LxcProvider) default: return nil }