Sha256: 55d2f9efd1ceee6f43d59b1bf3ec10be728000599f7f3cefce7fcd45a984a4c1
Contents?: true
Size: 716 Bytes
Versions: 14
Compression:
Stored size: 716 Bytes
Contents
module VagrantPlugins module SyncedFolderNFSGuest module GuestLinux module Cap class ReadUserIDs def self.read_uid(machine) command = "id -u" result = "" machine.communicate.execute(command) do |type, data| result << data if type == :stdout end result.chomp.split("\n").first end def self.read_gid(machine) command = "id -g" result = "" machine.communicate.execute(command) do |type, data| result << data if type == :stdout end result.chomp.split("\n").first end end end end end end
Version data entries
14 entries across 14 versions & 2 rubygems