github.phpd.cn/hashicorp/packer@v1.3.2/builder/parallels/common/prlctl_post_config.go (about)

     1  package common
     2  
     3  import (
     4  	"github.com/hashicorp/packer/template/interpolate"
     5  )
     6  
     7  // PrlctlPostConfig contains the configuration for running "prlctl" commands
     8  // in the end of artifact build.
     9  type PrlctlPostConfig struct {
    10  	PrlctlPost [][]string `mapstructure:"prlctl_post"`
    11  }
    12  
    13  // Prepare sets the default value of "PrlctlPost" property.
    14  func (c *PrlctlPostConfig) Prepare(ctx *interpolate.Context) []error {
    15  	if c.PrlctlPost == nil {
    16  		c.PrlctlPost = make([][]string, 0)
    17  	}
    18  
    19  	return nil
    20  }