From c51cd3e39c12790196f823849cb46cdfadef6250 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Mon, 27 Oct 2014 20:59:13 -0700 Subject: [PATCH] remove command configs --- config.go | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/config.go b/config.go index 7022fd202..091dce2c2 100644 --- a/config.go +++ b/config.go @@ -23,7 +23,6 @@ type config struct { PluginMaxPort uint Builders map[string]string - Commands map[string]string PostProcessors map[string]string `json:"post-processors"` Provisioners map[string]string } @@ -82,15 +81,6 @@ func (c *config) Discover() error { 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 // implementations from the defined plugins. func (c *config) LoadBuilder(name string) (packer.Builder, error) { @@ -153,12 +143,6 @@ func (c *config) discover(path string) error { return err } - err = c.discoverSingle( - filepath.Join(path, "packer-command-*"), &c.Commands) - if err != nil { - return err - } - err = c.discoverSingle( filepath.Join(path, "packer-post-processor-*"), &c.PostProcessors) if err != nil {