# class Chef::Resource::User

### Public Class Methods

new(name, run_context=nil) click to toggle source
Calls superclass method Chef::Resource.new

    # File lib/chef/resource/user.rb, line 29
    def initialize(name, run_context=nil)
      super
      @resource_name = :user
      @username = name
      @comment = nil
      @uid = nil
      @gid = nil
      @home = nil
      @shell = nil
      @password = nil
      @system = false
      @manage_home = false
      @non_unique = false
      @action = :create
      @supports = {
        :manage_home => false,
        :non_unique => false
      }
      @allowed_actions.push(:create, :remove, :modify, :manage, :lock, :unlock)
    end

### Public Instance Methods

comment(arg=nil) click to toggle source

    # File lib/chef/resource/user.rb, line 58
    def comment(arg=nil)
      set_or_return(
        :comment,
        arg,
        :kind_of => [ String ]
      )
    end

gid(arg=nil) click to toggle source

    # File lib/chef/resource/user.rb, line 74
    def gid(arg=nil)
      set_or_return(
        :gid,
        arg,
        :kind_of => [ String, Integer ]
      )
    end

Also aliased as: group
group(arg=nil)
Alias for: gid
home(arg=nil) click to toggle source

    # File lib/chef/resource/user.rb, line 84
    def home(arg=nil)
      set_or_return(
        :home,
        arg,
        :kind_of => [ String ]
      )
    end

manage_home(arg=nil) click to toggle source

    # File lib/chef/resource/user.rb, line 116
    def manage_home(arg=nil)
      set_or_return(
        :manage_home,
        arg,
        :kind_of => [ TrueClass, FalseClass ]
      )
    end

non_unique(arg=nil) click to toggle source

    # File lib/chef/resource/user.rb, line 124
    def non_unique(arg=nil)
      set_or_return(
        :non_unique,
        arg,
        :kind_of => [ TrueClass, FalseClass ]
      )
    end

password(arg=nil) click to toggle source

    # File lib/chef/resource/user.rb, line 100
    def password(arg=nil)
      set_or_return(
        :password,
        arg,
        :kind_of => [ String ]
      )
    end

shell(arg=nil) click to toggle source

    # File lib/chef/resource/user.rb, line 92
    def shell(arg=nil)
      set_or_return(
        :shell,
        arg,
        :kind_of => [ String ]
      )
    end

system(arg=nil) click to toggle source

    # File lib/chef/resource/user.rb, line 108
    def system(arg=nil)
      set_or_return(
        :system,
        arg,
        :kind_of => [ TrueClass, FalseClass ]
      )
    end

uid(arg=nil) click to toggle source

    # File lib/chef/resource/user.rb, line 66
    def uid(arg=nil)
      set_or_return(
        :uid,
        arg,
        :kind_of => [ String, Integer ]
      )
    end

username(arg=nil) click to toggle source

    # File lib/chef/resource/user.rb, line 50
    def username(arg=nil)
      set_or_return(
        :username,
        arg,
        :kind_of => [ String ]
      )
    end