builder/parallels: Added platform check

This commit is contained in:
Mikhail Zholobov 2014-08-11 10:18:35 +04:00
parent 9ad2b98673
commit 10be7e27de
1 changed files with 5 additions and 0 deletions

View File

@ -45,6 +45,11 @@ type Driver interface {
func NewDriver() (Driver, error) {
var prlctlPath string
if runtime.GOOS != "darwin" {
return nil, fmt.Errorf(
"Parallels builder works only on \"darwin\" platform!")
}
if prlctlPath == "" {
var err error
prlctlPath, err = exec.LookPath("prlctl")