Method: Chef::UserV1#username

Defined in:
lib/chef/user_v1.rb

#username(arg = nil) ⇒ Object



65
66
67
68
# File 'lib/chef/user_v1.rb', line 65

def username(arg = nil)
  set_or_return(:username, arg,
    regex: /^[a-z0-9\-_]+$/)
end