# class Chef::Resource::Group

### Public Class Methods

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

    # File lib/chef/resource/group.rb, line 28
    def initialize(name, run_context=nil)
      super
      @resource_name = :group
      @group_name = name
      @gid = nil
      @members = []
      @excluded_members = []
      @action = :create
      @append = false
      @non_unique = false
      @allowed_actions.push(:create, :remove, :modify, :manage)
    end

### Public Instance Methods

append(arg=nil) click to toggle source

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

excluded_members(arg=nil) click to toggle source

    # File lib/chef/resource/group.rb, line 68
    def excluded_members(arg=nil)
      converted_members = arg.is_a?(String) ? [].push(arg) : arg
      set_or_return(
        :excluded_members,
        converted_members,
        :kind_of => [ Array ]
      )
    end

gid(arg=nil) click to toggle source

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

group_name(arg=nil) click to toggle source

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

members(arg=nil) click to toggle source

    # File lib/chef/resource/group.rb, line 57
    def members(arg=nil)
      converted_members = arg.is_a?(String) ? [].push(arg) : arg
      set_or_return(
        :members,
        converted_members,
        :kind_of => [ Array ]
      )
    end

Also aliased as: users
non_unique(arg=nil) click to toggle source

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

system(arg=nil) click to toggle source

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

users(arg=nil)
Alias for: members