Exception: ActiveSambaLdap::PrimaryGroupCanNotBeDestroyed
- Defined in:
- lib/active_samba_ldap/base.rb
Instance Attribute Summary collapse
-
#group ⇒ Object
readonly
Returns the value of attribute group.
-
#members ⇒ Object
readonly
Returns the value of attribute members.
Instance Method Summary collapse
-
#initialize(group, members) ⇒ PrimaryGroupCanNotBeDestroyed
constructor
A new instance of PrimaryGroupCanNotBeDestroyed.
Methods included from GetTextSupport
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
#group ⇒ Object (readonly)
Returns the value of attribute group.
75 76 77 |
# File 'lib/active_samba_ldap/base.rb', line 75 def group @group end |
#members ⇒ Object (readonly)
Returns the value of attribute members.
75 76 77 |
# File 'lib/active_samba_ldap/base.rb', line 75 def members @members end |