Commit 82bf5fc7 authored by Mitchell Hashimoto's avatar Mitchell Hashimoto

plugin/*: update to latest API

parent b4567c63
...@@ -6,5 +6,10 @@ import ( ...@@ -6,5 +6,10 @@ import (
) )
func main() { func main() {
plugin.ServeBuilder(new(chroot.Builder)) server, err := plugin.Server()
if err != nil {
panic(err)
}
server.RegisterBuilder(new(chroot.Builder))
server.Serve()
} }
...@@ -6,5 +6,10 @@ import ( ...@@ -6,5 +6,10 @@ import (
) )
func main() { func main() {
plugin.ServeBuilder(new(ebs.Builder)) server, err := plugin.Server()
if err != nil {
panic(err)
}
server.RegisterBuilder(new(ebs.Builder))
server.Serve()
} }
...@@ -6,5 +6,10 @@ import ( ...@@ -6,5 +6,10 @@ import (
) )
func main() { func main() {
plugin.ServeBuilder(new(instance.Builder)) server, err := plugin.Server()
if err != nil {
panic(err)
}
server.RegisterBuilder(new(instance.Builder))
server.Serve()
} }
...@@ -6,5 +6,10 @@ import ( ...@@ -6,5 +6,10 @@ import (
) )
func main() { func main() {
plugin.ServeBuilder(new(digitalocean.Builder)) server, err := plugin.Server()
if err != nil {
panic(err)
}
server.RegisterBuilder(new(digitalocean.Builder))
server.Serve()
} }
...@@ -6,5 +6,10 @@ import ( ...@@ -6,5 +6,10 @@ import (
) )
func main() { func main() {
plugin.ServeBuilder(new(docker.Builder)) server, err := plugin.Server()
if err != nil {
panic(err)
}
server.RegisterBuilder(new(docker.Builder))
server.Serve()
} }
...@@ -6,5 +6,10 @@ import ( ...@@ -6,5 +6,10 @@ import (
) )
func main() { func main() {
plugin.ServeBuilder(new(openstack.Builder)) server, err := plugin.Server()
if err != nil {
panic(err)
}
server.RegisterBuilder(new(openstack.Builder))
server.Serve()
} }
...@@ -6,5 +6,10 @@ import ( ...@@ -6,5 +6,10 @@ import (
) )
func main() { func main() {
plugin.ServeBuilder(new(qemu.Builder)) server, err := plugin.Server()
if err != nil {
panic(err)
}
server.RegisterBuilder(new(qemu.Builder))
server.Serve()
} }
...@@ -6,5 +6,10 @@ import ( ...@@ -6,5 +6,10 @@ import (
) )
func main() { func main() {
plugin.ServeBuilder(new(virtualbox.Builder)) server, err := plugin.Server()
if err != nil {
panic(err)
}
server.RegisterBuilder(new(virtualbox.Builder))
server.Serve()
} }
...@@ -6,5 +6,10 @@ import ( ...@@ -6,5 +6,10 @@ import (
) )
func main() { func main() {
plugin.ServeBuilder(new(vmware.Builder)) server, err := plugin.Server()
if err != nil {
panic(err)
}
server.RegisterBuilder(new(vmware.Builder))
server.Serve()
} }
...@@ -6,5 +6,10 @@ import ( ...@@ -6,5 +6,10 @@ import (
) )
func main() { func main() {
plugin.ServeCommand(new(build.Command)) server, err := plugin.Server()
if err != nil {
panic(err)
}
server.RegisterCommand(new(build.Command))
server.Serve()
} }
...@@ -6,5 +6,10 @@ import ( ...@@ -6,5 +6,10 @@ import (
) )
func main() { func main() {
plugin.ServeCommand(new(fix.Command)) server, err := plugin.Server()
if err != nil {
panic(err)
}
server.RegisterCommand(new(fix.Command))
server.Serve()
} }
...@@ -6,5 +6,10 @@ import ( ...@@ -6,5 +6,10 @@ import (
) )
func main() { func main() {
plugin.ServeCommand(new(inspect.Command)) server, err := plugin.Server()
if err != nil {
panic(err)
}
server.RegisterCommand(new(inspect.Command))
server.Serve()
} }
...@@ -6,5 +6,10 @@ import ( ...@@ -6,5 +6,10 @@ import (
) )
func main() { func main() {
plugin.ServeCommand(new(validate.Command)) server, err := plugin.Server()
if err != nil {
panic(err)
}
server.RegisterCommand(new(validate.Command))
server.Serve()
} }
...@@ -6,5 +6,10 @@ import ( ...@@ -6,5 +6,10 @@ import (
) )
func main() { func main() {
plugin.ServePostProcessor(new(vagrant.PostProcessor)) server, err := plugin.Server()
if err != nil {
panic(err)
}
server.RegisterPostProcessor(new(vagrant.PostProcessor))
server.Serve()
} }
...@@ -6,5 +6,10 @@ import ( ...@@ -6,5 +6,10 @@ import (
) )
func main() { func main() {
plugin.ServePostProcessor(new(vsphere.PostProcessor)) server, err := plugin.Server()
if err != nil {
panic(err)
}
server.RegisterPostProcessor(new(vsphere.PostProcessor))
server.Serve()
} }
...@@ -6,5 +6,10 @@ import ( ...@@ -6,5 +6,10 @@ import (
) )
func main() { func main() {
plugin.ServeProvisioner(new(ansiblelocal.Provisioner)) server, err := plugin.Server()
if err != nil {
panic(err)
}
server.RegisterProvisioner(new(ansiblelocal.Provisioner))
server.Serve()
} }
...@@ -6,5 +6,10 @@ import ( ...@@ -6,5 +6,10 @@ import (
) )
func main() { func main() {
plugin.ServeProvisioner(new(chefsolo.Provisioner)) server, err := plugin.Server()
if err != nil {
panic(err)
}
server.RegisterProvisioner(new(chefsolo.Provisioner))
server.Serve()
} }
...@@ -6,5 +6,10 @@ import ( ...@@ -6,5 +6,10 @@ import (
) )
func main() { func main() {
plugin.ServeProvisioner(new(file.Provisioner)) server, err := plugin.Server()
if err != nil {
panic(err)
}
server.RegisterProvisioner(new(file.Provisioner))
server.Serve()
} }
...@@ -6,5 +6,10 @@ import ( ...@@ -6,5 +6,10 @@ import (
) )
func main() { func main() {
plugin.ServeProvisioner(new(puppetmasterless.Provisioner)) server, err := plugin.Server()
if err != nil {
panic(err)
}
server.RegisterProvisioner(new(puppetmasterless.Provisioner))
server.Serve()
} }
...@@ -6,5 +6,10 @@ import ( ...@@ -6,5 +6,10 @@ import (
) )
func main() { func main() {
plugin.ServeProvisioner(new(saltmasterless.Provisioner)) server, err := plugin.Server()
if err != nil {
panic(err)
}
server.RegisterProvisioner(new(saltmasterless.Provisioner))
server.Serve()
} }
...@@ -6,5 +6,10 @@ import ( ...@@ -6,5 +6,10 @@ import (
) )
func main() { func main() {
plugin.ServeProvisioner(new(shell.Provisioner)) server, err := plugin.Server()
if err != nil {
panic(err)
}
server.RegisterProvisioner(new(shell.Provisioner))
server.Serve()
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment