Making some APIs public.
#get_free_id and #get_free_uid become public.
This commit is contained in:
parent
313c9edfd0
commit
142f80f663
@ -115,8 +115,8 @@ class Passwd
|
|||||||
get_all_groups.map(&.to_csv).join("\n") + "\n"
|
get_all_groups.map(&.to_csv).join("\n") + "\n"
|
||||||
end
|
end
|
||||||
|
|
||||||
private def get_free_uid
|
def get_free_uid(starting_uid = 1000)
|
||||||
uid = 1000
|
uid = starting_uid
|
||||||
|
|
||||||
users = get_all_users
|
users = get_all_users
|
||||||
|
|
||||||
@ -127,8 +127,8 @@ class Passwd
|
|||||||
uid
|
uid
|
||||||
end
|
end
|
||||||
|
|
||||||
private def get_free_gid
|
def get_free_gid(starting_gid = 1000)
|
||||||
gid = 1000
|
gid = starting_gid
|
||||||
|
|
||||||
users = get_all_users
|
users = get_all_users
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user