Commit 77ae2014 authored by Rickard von Essen's avatar Rickard von Essen

Merge pull request #1438 from rickard-von-essen/parallels10

parallels: Support for Parallels Desktop 10
parents e3846e39 732c767b
...@@ -3,15 +3,17 @@ package common ...@@ -3,15 +3,17 @@ package common
import ( import (
"bytes" "bytes"
"fmt" "fmt"
"github.com/going/toolkit/xmlpath"
"log" "log"
"os" "os"
"os/exec" "os/exec"
"regexp" "regexp"
"strings" "strings"
"time" "time"
"github.com/going/toolkit/xmlpath"
) )
// Driver supporting Parallels Desktop for Mac v. 9 & 10
type Parallels9Driver struct { type Parallels9Driver struct {
// This is the path to the "prlctl" application. // This is the path to the "prlctl" application.
PrlctlPath string PrlctlPath string
...@@ -135,8 +137,8 @@ func (d *Parallels9Driver) Prlctl(args ...string) error { ...@@ -135,8 +137,8 @@ func (d *Parallels9Driver) Prlctl(args ...string) error {
func (d *Parallels9Driver) Verify() error { func (d *Parallels9Driver) Verify() error {
version, _ := d.Version() version, _ := d.Version()
if !strings.HasPrefix(version, "9.") { if !(strings.HasPrefix(version, "9.") || strings.HasPrefix(version, "10.")) {
return fmt.Errorf("The packer-parallels builder plugin only supports Parallels Desktop v. 9. You have: %s!\n", version) return fmt.Errorf("The packer-parallels builder plugin only supports Parallels Desktop v. 9 & 10. You have: %s!\n", version)
} }
return nil return nil
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment