Sha256: 6f14121ded15cd422666ed2a503251bf37291d35273586686f0aa3fcbe2bab71
Contents?: true
Size: 1.16 KB
Versions: 1
Compression:
Stored size: 1.16 KB
Contents
require_relative "../../unix_mount_helpers" module VagrantPlugins module SyncedFolderSMB module Cap module MountOptions extend VagrantPlugins::SyncedFolder::UnixMountHelpers 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] mnt_opts = [] if machine.env.host.capability?(:smb_mount_options) mnt_opts += machine.env.host.capability(:smb_mount_options) else mnt_opts << "sec=ntlmssp" end mnt_opts << "credentials=/etc/smb_creds_#{name}" mnt_opts << "uid=#{mount_uid}" mnt_opts << "gid=#{mount_gid}" if !ENV['VAGRANT_DISABLE_SMBMFSYMLINKS'] mnt_opts << "mfsymlinks" end mnt_opts = merge_mount_options(mnt_opts, options[:mount_options] || []) mount_options = mnt_opts.join(",") return mount_options, mount_uid, mount_gid end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
vagrant-unbundled-2.2.10.0 | plugins/synced_folders/smb/cap/mount_options.rb |