vagrant-parallels 2.4.6 → 2.4.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3807a707245414fc1a6419373c68c65b5a3f9c905c0164240dd83143bc6821bc
4
- data.tar.gz: 3ddce5b9cccb67a558d6fdb87b49419d143f7793fc59bb081d18530e132625b7
3
+ metadata.gz: 3d5cf03cd20b2f6301ec9b033412547e74ade455d33ef10aa6b6658fb85e7d1d
4
+ data.tar.gz: 2aaf5d193753e305ccc90f4c3ee54aaefbf4c8bd31d82a5574c52930ece83aa9
5
5
  SHA512:
6
- metadata.gz: f21f6c48d73daa7a95e190e94f6748c6392739c9c0e9064ce2f8bd600285cc57c0ed6494b79a8362f10f553122636b3bc59c8a3fcd7758c3a7c64c339283aa19
7
- data.tar.gz: 7b0ca4b343421f1a2bc4a78d5074edb8de93485ab8c966196747c15232d33e6994005f8759c90e9cde050ea7a8a7617e1849bef6cb9755a254eab535d4c9a1a4
6
+ metadata.gz: d54417fb857c4a319e8a3b7368f42ad0229b441ba7a50502af06bf973f23452af4fac9ddcdfb16f4daef65c3c9ca3674d54ee4cd47c42512c9d19ff778af49a8
7
+ data.tar.gz: 03ede13340f7c101648242af048c357916f2564f8004c28c5b6759513281256f6fed1f70ed7bd97bee416593e721e0c90932c606eda9474532cec5257586e00c
data/README.md CHANGED
@@ -1,4 +1,5 @@
1
1
  # Vagrant Parallels Provider
2
+
2
3
  [![Gem Version](https://badge.fury.io/rb/vagrant-parallels.svg)](https://badge.fury.io/rb/vagrant-parallels)
3
4
  [![Build Status](https://travis-ci.org/Parallels/vagrant-parallels.svg?branch=master)](https://travis-ci.org/Parallels/vagrant-parallels)
4
5
  [![Code Climate](https://codeclimate.com/github/Parallels/vagrant-parallels.svg)](https://codeclimate.com/github/Parallels/vagrant-parallels)
@@ -7,16 +8,18 @@ _Vagrant Parallels Provider_ is a plugin for [Vagrant](https://www.vagrantup.com
7
8
  allowing to manage [Parallels Desktop](https://www.parallels.com/products/desktop/)
8
9
  virtual machines on macOS hosts.
9
10
 
10
- ### Requirements
11
+ ## Requirements
12
+
11
13
  - [Vagrant v1.9.7](https://www.vagrantup.com) or higher
12
14
  - [Parallels Desktop 11 for Mac](https://www.parallels.com/products/desktop/) or higher
13
15
 
14
- *Note:* Only **Pro** and **Business** editions of **Parallels Desktop for Mac**
16
+ _Note:_ Only **Pro**, **Business** and **Enterprise** editions of **Parallels Desktop for Mac**
15
17
  are compatible with this Vagrant provider.
16
18
  Standard edition doesn't have a full command line functionality and can not be used
17
19
  with Vagrant.
18
20
 
19
21
  ## Features
22
+
20
23
  The Parallels provider supports all basic Vagrant features, including Shared Folders,
21
24
  Private and Public Networking, Forwarded ports and Vagrant Share.
22
25
 
@@ -24,6 +27,7 @@ If you're just getting started with Vagrant, it is highly recommended that you
24
27
  read the official [Vagrant documentation](https://docs.vagrantup.com/v2/) first.
25
28
 
26
29
  ## Installation
30
+
27
31
  Make sure that you have [Parallels Desktop for Mac](https://www.parallels.com/products/desktop/)
28
32
  and [Vagrant](https://www.vagrantup.com/downloads.html) properly installed. We recommend
29
33
  that you use the latest versions of these products.
@@ -31,15 +35,14 @@ that you use the latest versions of these products.
31
35
  Additionally, you'll need the command line software development tools provided as a part of Xcode
32
36
  to be able to build the plugin on your machine. To install these, run this command:
33
37
 
38
+ ```shell
39
+ xcode-select --install
34
40
  ```
35
- $ xcode-select --install
36
- ```
37
-
38
41
 
39
42
  You can then install the Parallels provider plugin for Vagrant. Run this command to install it:
40
43
 
41
- ```
42
- $ vagrant plugin install vagrant-parallels
44
+ ```shell
45
+ vagrant plugin install vagrant-parallels
43
46
  ```
44
47
 
45
48
  ## Provider Documentation
@@ -48,9 +51,10 @@ More information about the Parallels provider is available in
48
51
  [Vagrant Parallels Documentation](https://parallels.github.io/vagrant-parallels/docs/)
49
52
 
50
53
  We recommend you to start from these pages:
51
- * [Usage](https://parallels.github.io/vagrant-parallels/docs/usage.html)
52
- * [Getting Started](https://parallels.github.io/vagrant-parallels/docs/getting-started.html)
53
- * [Boxes](https://parallels.github.io/vagrant-parallels/docs/boxes/index.html)
54
+
55
+ - [Usage](https://parallels.github.io/vagrant-parallels/docs/usage.html)
56
+ - [Getting Started](https://parallels.github.io/vagrant-parallels/docs/getting-started.html)
57
+ - [Boxes](https://parallels.github.io/vagrant-parallels/docs/boxes/index.html)
54
58
 
55
59
  ## Getting Help
56
60
 
@@ -59,8 +63,8 @@ please report it on the [Issue Tracker](https://github.com/Parallels/vagrant-par
59
63
 
60
64
  ## License and Authors
61
65
 
62
- * Author: Youssef Shahin <yshahin@gmail.com>
63
- * Author: Mikhail Zholobov <legal90@gmail.com>
64
- * Copyright 2013-2023, Parallels International GmbH.
66
+ - Author: Youssef Shahin <yshahin@gmail.com>
67
+ - Author: Mikhail Zholobov <legal90@gmail.com>
68
+ - Copyright 2013-2023, Parallels International GmbH.
65
69
 
66
70
  Vagrant Parallels Provider is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT).
@@ -38,10 +38,27 @@ module VagrantPlugins
38
38
 
39
39
  # prl_fsd does not support the _netdev option, so we need to remove it from the mount options
40
40
  # for supported mount_options check prl_fsd --help in guest machine after installing Parallels Tools
41
- prl_fsd_mount_options = mount_options.split(',').reject { |opt| opt == '_netdev' }.join(',')
41
+
42
+ # the `share` option needs to be passed as an extra `--share` argument
43
+
44
+ prl_fsd_mount_options = mount_options.split(',').reject { |opt| opt == '_netdev' }
45
+
46
+ prl_fsd_mount_options << "big_writes"
47
+ prl_fsd_mount_options << "fsname=#{name}"
48
+ prl_fsd_mount_options << "subtype=prl_fsd"
49
+
50
+ if mount_options.include?('share')
51
+ share_flag = '--share'
52
+ prl_fsd_mount_options.reject! { |opt| opt == 'share' || opt.start_with?('uid=', 'gid=') }
53
+ else
54
+ share_flag = ''
55
+ end
56
+
57
+ o_options = prl_fsd_mount_options.join(',')
58
+
42
59
  mount_command = <<-CMD
43
60
  if [ -f /usr/bin/prl_fsd ]; then
44
- prl_fsd #{guest_path} -o big_writes,#{prl_fsd_mount_options},fsname=#{name},subtype=prl_fsd --sf=#{name}
61
+ prl_fsd #{guest_path} -o #{o_options} #{share_flag} --sf=#{name}
45
62
  else
46
63
  mount -t #{mount_type} -o #{mount_options} #{name} #{guest_path}
47
64
  fi
@@ -1,5 +1,5 @@
1
1
  module VagrantPlugins
2
2
  module Parallels
3
- VERSION = '2.4.6'
3
+ VERSION = '2.4.7'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-parallels
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.6
4
+ version: 2.4.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mikhail Zholobov
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2025-04-09 00:00:00.000000000 Z
12
+ date: 2025-06-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: nokogiri