Module: ActiveSambaLdap::SambaEntry

Included in:
Computer, Group, SambaGroupEntry, User
Defined in:
lib/active_samba_ldap/samba_entry.rb

Instance Method Summary collapse

Instance Method Details

#ensure_samba_availableObject



11
12
13
# File 'lib/active_samba_ldap/samba_entry.rb', line 11

def ensure_samba_available
  add_class(*samba_object_classes)
end

#remove_samba_availabilityObject



7
8
9
# File 'lib/active_samba_ldap/samba_entry.rb', line 7

def remove_samba_availability
  remove_class(*samba_object_classes)
end

#samba_available?Boolean

Returns:

  • (Boolean)


3
4
5
# File 'lib/active_samba_ldap/samba_entry.rb', line 3

def samba_available?
  (samba_object_classes - classes).empty?
end

#samba_object_classesObject



15
16
17
# File 'lib/active_samba_ldap/samba_entry.rb', line 15

def samba_object_classes
  self.class.samba_object_classes
end