Making some APIs public.

#get_free_id and #get_free_uid become public.
master
Luka Vandervelden 2019-11-17 19:26:39 +01:00
parent 313c9edfd0
commit 142f80f663
1 changed files with 4 additions and 4 deletions

View File

@ -115,8 +115,8 @@ class Passwd
get_all_groups.map(&.to_csv).join("\n") + "\n"
end
private def get_free_uid
uid = 1000
def get_free_uid(starting_uid = 1000)
uid = starting_uid
users = get_all_users
@ -127,8 +127,8 @@ class Passwd
uid
end
private def get_free_gid
gid = 1000
def get_free_gid(starting_gid = 1000)
gid = starting_gid
users = get_all_users