packer: move constants into a single const()

This commit is contained in:
Mitchell Hashimoto 2013-07-15 09:55:41 +09:00
parent afea628e2c
commit f621f88913
1 changed files with 11 additions and 9 deletions

View File

@ -6,17 +6,19 @@ import (
"sync" "sync"
) )
const (
// This is the key in configurations that is set to the name of the // This is the key in configurations that is set to the name of the
// build. // build.
const BuildNameConfigKey = "packer_build_name" BuildNameConfigKey = "packer_build_name"
// This is the key in configurations that is set to "true" when Packer // This is the key in configurations that is set to "true" when Packer
// debugging is enabled. // debugging is enabled.
const DebugConfigKey = "packer_debug" DebugConfigKey = "packer_debug"
// This is the key in configurations that is set to "true" when Packer // This is the key in configurations that is set to "true" when Packer
// force build is enabled. // force build is enabled.
const ForceConfigKey = "packer_force" ForceConfigKey = "packer_force"
)
// A Build represents a single job within Packer that is responsible for // A Build represents a single job within Packer that is responsible for
// building some machine image artifact. Builds are meant to be parallelized. // building some machine image artifact. Builds are meant to be parallelized.