Class: LinuxAdmin::RegistrationSystem
- Inherits:
-
LinuxAdmin
- Object
- LinuxAdmin
- LinuxAdmin::RegistrationSystem
- Defined in:
- lib/linux_admin/registration_system.rb
Direct Known Subclasses
Constant Summary
Constants inherited from LinuxAdmin
Class Method Summary collapse
Instance Method Summary collapse
Methods included from Common
Class Method Details
.method_missing(meth, *args, &block) ⇒ Object
8 9 10 11 12 13 14 15 16 |
# File 'lib/linux_admin/registration_system.rb', line 8 def self.method_missing(meth, *args, &block) if white_list_methods.include?(meth) r = self.registration_type.new raise NotImplementedError, "#{meth} not implemented for #{self.name}" unless r.respond_to?(meth) r.send(meth, *args, &block) else super end end |
.registration_type(reload = false) ⇒ Object
3 4 5 6 |
# File 'lib/linux_admin/registration_system.rb', line 3 def self.registration_type(reload = false) return @registration_type if @registration_type && !reload @registration_type = registration_type_uncached end |
Instance Method Details
#registered? ⇒ Boolean
18 19 20 |
# File 'lib/linux_admin/registration_system.rb', line 18 def registered? false end |