Skip to content

Commit

Permalink
Merge pull request hashicorp#5 from hashicorp/pluginconstant
Browse files Browse the repository at this point in the history
add default name constant
  • Loading branch information
SwampDragons committed Jan 6, 2021
2 parents 6dec116 + 95028ad commit 17194f7
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions plugin/set.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,16 @@ import (
"github.com/hashicorp/packer/version"
)

// Use this name to make the name of the plugin in the packer template match
// the multiplugin suffix, instead of requiring a second part.
// For example, calling :
// pps.RegisterProvisioner(plugin.DEFAULT_NAME, new(CommentProvisioner))
// On a plugin named `packer-plugin-foo`, will make the `foo` provisioner available
// with your CommentProvisioner doing that. There can only be one unnamed
// plugin per plugin type.
const DEFAULT_NAME = "-packer-default-plugin-name-"


// Set is a plugin set. It's API is meant to be very close to what is returned
// by plugin.Server
// It can describe itself or run a single plugin using the CLI arguments.
Expand Down

0 comments on commit 17194f7

Please sign in to comment.