Sha256: b927872de39c186395ae0bd0aa18f824cc37db54fb9f19660a8e1c9eb85bbfd4
Contents?: true
Size: 887 Bytes
Versions: 5
Compression:
Stored size: 887 Bytes
Contents
module VagrantPlugins module Invade module InvadeModule class Nfs < InvadeModule attr_reader :result attr_accessor :machine_name, :nfs_data def initialize(machine_name, nfs_data, result: nil) @machine_name = machine_name @nfs_data = nfs_data @result = result end def build b = binding begin # Values for nfs part functional = @nfs_data['functional'] map_uid = @nfs_data['map_uid'] map_gid = @nfs_data['map_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 raise(e) end end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems