Sha256: e4d8b97835b2759714d0bd9488021dcf9bf73949d2a8ce37f97e9d54ea6f4a46
Contents?: true
Size: 1.09 KB
Versions: 1
Compression:
Stored size: 1.09 KB
Contents
require_relative "../../../synced_folders/unix_mount_helpers" module VagrantPlugins module ProviderVirtualBox module Cap module MountOptions extend VagrantPlugins::SyncedFolder::UnixMountHelpers VB_MOUNT_TYPE = "vboxsf".freeze # Returns mount options for a virual box synced folder # # @param [Machine] machine # @param [String] name of mount # @param [String] path of mount on guest # @param [Hash] hash of mount options def self.mount_options(machine, name, guest_path, options) mount_options = options.fetch(:mount_options, []) detected_ids = detect_owner_group_ids(machine, guest_path, mount_options, options) mount_uid = detected_ids[:uid] mount_gid = detected_ids[:gid] mount_options << "uid=#{mount_uid}" mount_options << "gid=#{mount_gid}" mount_options = mount_options.join(',') return mount_options, mount_uid, mount_gid end def self.mount_type(machine) return VB_MOUNT_TYPE end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
vagrant-unbundled-2.2.10.0 | plugins/providers/virtualbox/cap/mount_options.rb |