Class: VagrantPlugins::SyncedFolderNFSGuest::GuestLinux::Cap::ReadUserIDs
- Inherits:
-
Object
- Object
- VagrantPlugins::SyncedFolderNFSGuest::GuestLinux::Cap::ReadUserIDs
- Defined in:
- lib/vagrant-nfs_guest_vbfix/guests/linux/cap/read_user_ids.rb
Class Method Summary collapse
Class Method Details
.read_gid(machine) ⇒ Object
16 17 18 19 20 21 22 23 24 |
# File 'lib/vagrant-nfs_guest_vbfix/guests/linux/cap/read_user_ids.rb', line 16 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 |
.read_uid(machine) ⇒ Object
6 7 8 9 10 11 12 13 14 |
# File 'lib/vagrant-nfs_guest_vbfix/guests/linux/cap/read_user_ids.rb', line 6 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 |