Method: Puppet::Settings::FileSetting#group=

Defined in:
lib/puppet/settings/file_setting.rb

#group=(value) ⇒ Object

Parameters:

  • value (String)

    the group to use on the created file (can only be “root” or “service”)



66
67
68
69
70
71
72
73
74
75
76
77
# File 'lib/puppet/settings/file_setting.rb', line 66

def group=(value)
  @group = case value
           when "root"
             Root.new
           when "service"
             # Group falls back to `nil` because we cannot assume that a "root" group exists.
             # Some systems have root group, others have wheel, others have something else.
             Service.new(:group, nil, @settings, :service_group_available?)
           else
             unknown_value(':group', value)
           end
end