vagrant-nfs_guest 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -20,9 +20,13 @@ module VagrantPlugins
20
20
  folders.each do |name, opts|
21
21
  if opts[:type] == :nfs_guest
22
22
  expanded_host_path = `printf #{opts[:hostpath]}`
23
- if not system("umount '#{expanded_host_path}'")
24
- @ui.info "NFS mounts still in use!"
25
- exit(1)
23
+ umount_msg = `umount '#{expanded_host_path}' 2>&1`
24
+ @ui.info umount_msg
25
+ if $?.exitstatus != 0
26
+ if not umount_msg.include? 'not currently mounted'
27
+ @ui.info "NFS mounts still in use!"
28
+ exit(1)
29
+ end
26
30
  end
27
31
  end
28
32
  end
@@ -1,5 +1,5 @@
1
1
  module VagrantPlugins
2
2
  module SyncedFolderNFSGuest
3
- VERSION = "0.0.3"
3
+ VERSION = "0.0.4"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-nfs_guest
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-12-15 00:00:00.000000000 Z
12
+ date: 2013-12-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -86,7 +86,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
86
86
  version: '0'
87
87
  segments:
88
88
  - 0
89
- hash: -982725208826208968
89
+ hash: 4128011817276071124
90
90
  required_rubygems_version: !ruby/object:Gem::Requirement
91
91
  none: false
92
92
  requirements:
@@ -95,7 +95,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
95
95
  version: '0'
96
96
  segments:
97
97
  - 0
98
- hash: -982725208826208968
98
+ hash: 4128011817276071124
99
99
  requirements: []
100
100
  rubyforge_project:
101
101
  rubygems_version: 1.8.23