vagrant-bindfs 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -46,8 +46,10 @@ module VagrantPlugins
46
46
 
47
47
  @machine = env[:machine]
48
48
 
49
- handle_bindfs_installation
50
- bind_folders if !binded_folders.empty?
49
+ unless binded_folders.empty?
50
+ handle_bindfs_installation
51
+ bind_folders
52
+ end
51
53
  end
52
54
 
53
55
  def binded_folders
@@ -15,7 +15,7 @@ module VagrantPlugins
15
15
  @__default_options.merge! new_options
16
16
  end
17
17
 
18
- def bind_folder(source_path, dest_path, opts = nil)
18
+ def bind_folder(source_path, dest_path, options = nil)
19
19
  options ||= {}
20
20
  options[:source_path] = source_path
21
21
  options[:dest_path] = dest_path
@@ -22,9 +22,11 @@ module VagrantPlugins
22
22
  Cap::Linux::BindfsInstalled
23
23
  end
24
24
 
25
- action_hook(:bindfs, :machine_action_up) do |hook|
26
- require 'vagrant-bindfs/bind'
27
- hook.prepend(Action::Bind)
25
+ require 'vagrant-bindfs/bind'
26
+ %w{up reload}.each do |action|
27
+ action_hook(:bindfs, "machine_action_#{action}".to_sym) do |hook|
28
+ hook.before(Vagrant::Action::Builtin::NFS, Action::Bind)
29
+ end
28
30
  end
29
31
  end
30
32
  end
@@ -1,3 +1,3 @@
1
1
  module VagrantBindfs
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: vagrant-bindfs
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.2.0
5
+ version: 0.2.1
6
6
  platform: ruby
7
7
  authors:
8
8
  - "Folken La\xC3\xABneck"
@@ -11,7 +11,7 @@ autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
13
 
14
- date: 2013-06-03 00:00:00 Z
14
+ date: 2013-06-04 00:00:00 Z
15
15
  dependencies: []
16
16
 
17
17
  description: A Vagrant plugin to automate bindfs mount in the VM. This allow you to change owner, group and permissions on files and, for example, work around NFS share permissions issues.