lib/vagrant-invade/module/nfs/nfs.rb in vagrant-invade-0.6.4 vs lib/vagrant-invade/module/nfs/nfs.rb in vagrant-invade-0.7.0

- old
+ new

@@ -3,14 +3,13 @@ module InvadeModule class Nfs < InvadeModule attr_reader :result - attr_accessor :machine_name, :nfs_data + attr_accessor :nfs_data - def initialize(machine_name, nfs_data, result: nil) - @machine_name = machine_name + def initialize(nfs_data, result: nil) @nfs_data = nfs_data @result = result end def build @@ -18,11 +17,11 @@ begin # Values for nfs part functional = @nfs_data['functional'] - map_uid = @nfs_data['map_uid'] - map_gid = @nfs_data['map_gid'] + @nfs_data['map_uid'] ? map_uid = @nfs_data['map_uid'] : map_uid = Process.uid + @nfs_data['map_gid'] ? map_gid = @nfs_data['map_gid'] : map_gid = Process.gid verify_installed = @nfs_data['verify_installed'] eruby = Erubis::Eruby.new(File.read(self.get_template_path(__FILE__))) @result = eruby.result b rescue TypeError, SyntaxError, SystemCallError => e