|
|
|
@ -43,16 +43,16 @@ type Environment interface {
|
|
|
|
// An implementation of an Environment that represents the Packer core
|
|
|
|
// An implementation of an Environment that represents the Packer core
|
|
|
|
// environment.
|
|
|
|
// environment.
|
|
|
|
type coreEnvironment struct {
|
|
|
|
type coreEnvironment struct {
|
|
|
|
commands []string
|
|
|
|
commands []string
|
|
|
|
components ComponentFinder
|
|
|
|
components ComponentFinder
|
|
|
|
ui Ui
|
|
|
|
ui Ui
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// This struct configures new environments.
|
|
|
|
// This struct configures new environments.
|
|
|
|
type EnvironmentConfig struct {
|
|
|
|
type EnvironmentConfig struct {
|
|
|
|
Commands []string
|
|
|
|
Commands []string
|
|
|
|
Components ComponentFinder
|
|
|
|
Components ComponentFinder
|
|
|
|
Ui Ui
|
|
|
|
Ui Ui
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// DefaultEnvironmentConfig returns a default EnvironmentConfig that can
|
|
|
|
// DefaultEnvironmentConfig returns a default EnvironmentConfig that can
|
|
|
|
|