Commit 46a05857 authored by Mitchell Hashimoto's avatar Mitchell Hashimoto

provisioner/shell and plugin/provisioner-shell

parent 84891701
package main
import (
"github.com/mitchellh/packer/provisioner/shell"
"github.com/mitchellh/packer/packer/plugin"
)
func main() {
plugin.ServeProvisioner(new(shell.Provisioner))
}
// This package implements a provisioner for Packer that executes
// shell scripts within the remote machine.
package shell
import (
"github.com/mitchellh/packer/packer"
)
// TODO(mitchellh): config
type config struct {
}
type Provisioner struct {
config config
}
func (p *Provisioner) Prepare(raw interface{}, ui packer.Ui) {
}
func (p *Provisioner) Provision(ui packer.Ui, comm packer.Communicator) {
ui.Say("PROVISIONING SOME STUFF")
}
package shell
import (
"github.com/mitchellh/packer/packer"
"testing"
)
func TestProvisioner_Impl(t *testing.T) {
var raw interface{}
raw = &Provisioner{}
if _, ok := raw.(packer.Provisioner); !ok {
t.Fatalf("must be a Provisioner")
}
}
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