Exception: ActiveSambaLdap::PrimaryGroupCanNotBeDestroyed

Inherits:
Error
  • Object
show all
Defined in:
lib/active_samba_ldap/base.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from GetTextSupport

included

Constructor Details

#initialize(group, members) ⇒ PrimaryGroupCanNotBeDestroyed

Returns a new instance of PrimaryGroupCanNotBeDestroyed.



76
77
78
79
80
81
82
# File 'lib/active_samba_ldap/base.rb', line 76

def initialize(group, members)
  @group = group
  @members = members
  format = _("cannot destroy group '%s' due to members who belong " \
             "to the group as primary group: %s")
  super(format % [group, members.join(', ')])
end

Instance Attribute Details

#groupObject (readonly)

Returns the value of attribute group.



75
76
77
# File 'lib/active_samba_ldap/base.rb', line 75

def group
  @group
end

#membersObject (readonly)

Returns the value of attribute members.



75
76
77
# File 'lib/active_samba_ldap/base.rb', line 75

def members
  @members
end