Commit c51cd3e3 authored by Mitchell Hashimoto's avatar Mitchell Hashimoto

remove command configs

parent 356b4882
...@@ -23,7 +23,6 @@ type config struct { ...@@ -23,7 +23,6 @@ type config struct {
PluginMaxPort uint PluginMaxPort uint
Builders map[string]string Builders map[string]string
Commands map[string]string
PostProcessors map[string]string `json:"post-processors"` PostProcessors map[string]string `json:"post-processors"`
Provisioners map[string]string Provisioners map[string]string
} }
...@@ -82,15 +81,6 @@ func (c *config) Discover() error { ...@@ -82,15 +81,6 @@ func (c *config) Discover() error {
return nil return nil
} }
// Returns an array of defined command names.
func (c *config) CommandNames() (result []string) {
result = make([]string, 0, len(c.Commands))
for name := range c.Commands {
result = append(result, name)
}
return
}
// This is a proper packer.BuilderFunc that can be used to load packer.Builder // This is a proper packer.BuilderFunc that can be used to load packer.Builder
// implementations from the defined plugins. // implementations from the defined plugins.
func (c *config) LoadBuilder(name string) (packer.Builder, error) { func (c *config) LoadBuilder(name string) (packer.Builder, error) {
...@@ -153,12 +143,6 @@ func (c *config) discover(path string) error { ...@@ -153,12 +143,6 @@ func (c *config) discover(path string) error {
return err return err
} }
err = c.discoverSingle(
filepath.Join(path, "packer-command-*"), &c.Commands)
if err != nil {
return err
}
err = c.discoverSingle( err = c.discoverSingle(
filepath.Join(path, "packer-post-processor-*"), &c.PostProcessors) filepath.Join(path, "packer-post-processor-*"), &c.PostProcessors)
if err != nil { if err != nil {
......
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