Skip to content

Commit

Permalink
Merge pull request hashicorp#3363 from mitchellh/f-remove-plugins
Browse files Browse the repository at this point in the history
Cleanup plugin code that is no longer used
  • Loading branch information
cbednarski committed Mar 18, 2016
2 parents cf87a33 + 0fb97a1 commit 8040317
Show file tree
Hide file tree
Showing 77 changed files with 39 additions and 635 deletions.
15 changes: 0 additions & 15 deletions plugin/builder-amazon-chroot/main.go

This file was deleted.

1 change: 0 additions & 1 deletion plugin/builder-amazon-chroot/main_test.go

This file was deleted.

15 changes: 0 additions & 15 deletions plugin/builder-amazon-ebs/main.go

This file was deleted.

1 change: 0 additions & 1 deletion plugin/builder-amazon-ebs/main_test.go

This file was deleted.

15 changes: 0 additions & 15 deletions plugin/builder-amazon-instance/main.go

This file was deleted.

1 change: 0 additions & 1 deletion plugin/builder-amazon-instance/main_test.go

This file was deleted.

15 changes: 0 additions & 15 deletions plugin/builder-digitalocean/main.go

This file was deleted.

1 change: 0 additions & 1 deletion plugin/builder-digitalocean/main_test.go

This file was deleted.

15 changes: 0 additions & 15 deletions plugin/builder-docker/main.go

This file was deleted.

1 change: 0 additions & 1 deletion plugin/builder-docker/main_test.go

This file was deleted.

15 changes: 0 additions & 15 deletions plugin/builder-file/main.go

This file was deleted.

15 changes: 0 additions & 15 deletions plugin/builder-googlecompute/main.go

This file was deleted.

1 change: 0 additions & 1 deletion plugin/builder-googlecompute/main_test.go

This file was deleted.

15 changes: 0 additions & 15 deletions plugin/builder-null/main.go

This file was deleted.

1 change: 0 additions & 1 deletion plugin/builder-null/main_test.go

This file was deleted.

15 changes: 0 additions & 15 deletions plugin/builder-openstack/main.go

This file was deleted.

1 change: 0 additions & 1 deletion plugin/builder-openstack/main_test.go

This file was deleted.

15 changes: 0 additions & 15 deletions plugin/builder-parallels-iso/main.go

This file was deleted.

1 change: 0 additions & 1 deletion plugin/builder-parallels-iso/main_test.go

This file was deleted.

15 changes: 0 additions & 15 deletions plugin/builder-parallels-pvm/main.go

This file was deleted.

1 change: 0 additions & 1 deletion plugin/builder-parallels-pvm/main_test.go

This file was deleted.

15 changes: 0 additions & 15 deletions plugin/builder-qemu/main.go

This file was deleted.

1 change: 0 additions & 1 deletion plugin/builder-qemu/main_test.go

This file was deleted.

15 changes: 0 additions & 15 deletions plugin/builder-virtualbox-iso/main.go

This file was deleted.

1 change: 0 additions & 1 deletion plugin/builder-virtualbox-iso/main_test.go

This file was deleted.

15 changes: 0 additions & 15 deletions plugin/builder-virtualbox-ovf/main.go

This file was deleted.

1 change: 0 additions & 1 deletion plugin/builder-virtualbox-ovf/main_test.go

This file was deleted.

15 changes: 0 additions & 15 deletions plugin/builder-vmware-iso/main.go

This file was deleted.

1 change: 0 additions & 1 deletion plugin/builder-vmware-iso/main_test.go

This file was deleted.

15 changes: 0 additions & 15 deletions plugin/builder-vmware-vmx/main.go

This file was deleted.

1 change: 0 additions & 1 deletion plugin/builder-vmware-vmx/main_test.go

This file was deleted.

36 changes: 36 additions & 0 deletions plugin/example/main.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
// This is an example plugin. In packer 0.9.0 and up, core plugins are compiled
// into the main binary so these files are no longer necessary for the packer
// project.
//
// However, it is still possible to create a third-party plugin for packer that
// is distributed independently from the packer distribution. These continue to
// work in the same way. They will be loaded from the same directory as packer
// by looking for packer-[builder|provisioner|post-processor]-plugin-name. For
// example:
//
// packer-builder-docker
//
// Look at command/plugin.go to see how the core plugins are loaded now, but the
// format below was used for packer <= 0.8.6 and is forward-compatible.
package main

import (
"github.com/mitchellh/packer/builder/amazon/chroot"
"github.com/mitchellh/packer/packer/plugin"
"github.com/mitchellh/packer/post-processor/docker-push"
"github.com/mitchellh/packer/provisioner/powershell"
)

func main() {
server, err := plugin.Server()
if err != nil {
panic(err)
}
// Choose the appropriate type of plugin. You should only use one of these
// at a time, which means you will have a separate plugin for each builder,
// provisioner, or post-processor.
server.RegisterBuilder(new(chroot.Builder))
server.RegisterPostProcessor(new(dockerpush.PostProcessor))
server.RegisterProvisioner(new(powershell.Provisioner))
server.Serve()
}
3 changes: 3 additions & 0 deletions plugin/example/main_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// Core Packer plugins included a _test.go file to make sure they compiled
// correctly when running packer tests. For custom plugins this file is optional.
package main
15 changes: 0 additions & 15 deletions plugin/post-processor-artifice/main.go

This file was deleted.

15 changes: 0 additions & 15 deletions plugin/post-processor-atlas/main.go

This file was deleted.

1 change: 0 additions & 1 deletion plugin/post-processor-atlas/main_test.go

This file was deleted.

15 changes: 0 additions & 15 deletions plugin/post-processor-compress/main.go

This file was deleted.

1 change: 0 additions & 1 deletion plugin/post-processor-compress/main_test.go

This file was deleted.

15 changes: 0 additions & 15 deletions plugin/post-processor-docker-import/main.go

This file was deleted.

1 change: 0 additions & 1 deletion plugin/post-processor-docker-import/main_test.go

This file was deleted.

Loading

0 comments on commit 8040317

Please sign in to comment.