vagrant-nfs_guest 0.1.4 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e97ac578150a2727e68ad6b145a8e0e1930fb847
4
- data.tar.gz: 20b94b0d05c5623f9795d49022a55767191d8860
3
+ metadata.gz: 28f6ca8678072ec9a07eb4916c3fc3c54468a2a0
4
+ data.tar.gz: b0584ef2f9b892fa2fdcef05bd3ebba48e91ee3b
5
5
  SHA512:
6
- metadata.gz: c8d1db44a16ee5695893ae80eb1e9ec88be1debfcb0104a3ce06bde144fa8894df6cabf52f82bd493f1781e0f404eb8e08160e0752e3d4174be792559ee022d7
7
- data.tar.gz: 9926c33a284c8a7c6e9fcd44852db43cc214ea50f8de3bab8d2379cd7c5b9a0cedcfd14f143c5db2c892954c52f826af6d339d6bdad1dbf2581c3869071d993c
6
+ metadata.gz: e2506b4dfd29a2096b0edce82cb176d1079daa84c2458d42510736f66acba1ca214e94e0fc0d03d4f36c94cdb100e93d7186c69a2e5626a9ebaba350cce678d3
7
+ data.tar.gz: da96e2efe228f047a55d036da7fc8d452760c69c4d7ef4d031738ce8c7e3793468dc6aab210e1745e37f3684cb82b5eebf9aa7913096d2c4293dc15cf0031cf0
@@ -10,7 +10,7 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
10
10
  # please see the online documentation at vagrantup.com.
11
11
 
12
12
  # Every Vagrant virtual environment requires a box to build off of.
13
- config.vm.box = "hashicorp/precise64"
13
+ config.vm.box = "ubuntu/trusty64"
14
14
 
15
15
  # The url from where the 'config.vm.box' box will be fetched if it
16
16
  # doesn't already exist on the user's system.
@@ -142,8 +142,13 @@ module VagrantPlugins
142
142
  error_class: Errors::GuestNFSError,
143
143
  error_key: :nfs_create_mounts_failed
144
144
  )
145
+
146
+ # Folder options
147
+ opts[:owner] ||= machine.ssh_info[:username]
148
+ opts[:group] ||= machine.ssh_info[:username]
149
+
145
150
  machine.communicate.sudo(
146
- "chown -R vagrant:vagrant #{expanded_guest_path}",
151
+ "chown -R #{opts[:owner]}:#{opts[:group]} #{expanded_guest_path}",
147
152
  error_class: Errors::GuestNFSError,
148
153
  error_key: :nfs_create_mounts_failed
149
154
  )
@@ -1,5 +1,5 @@
1
1
  module VagrantPlugins
2
2
  module SyncedFolderNFSGuest
3
- VERSION = "0.1.4"
3
+ VERSION = "0.1.5"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-nfs_guest
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alan Garfield
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-10 00:00:00.000000000 Z
11
+ date: 2015-08-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler