Class: LinuxAdmin::RegistrationSystem

Inherits:
Object
  • Object
show all
Includes:
Logging
Defined in:
lib/linux_admin/registration_system.rb

Direct Known Subclasses

SubscriptionManager

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Logging

#logger

Class Method Details

.method_missing(meth, *args, &block) ⇒ Object



11
12
13
14
15
16
17
18
19
# File 'lib/linux_admin/registration_system.rb', line 11

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



5
6
7
8
9
# File 'lib/linux_admin/registration_system.rb', line 5

def self.registration_type(reload = false)
  @registration_type ||= nil
  return @registration_type if @registration_type && !reload
  @registration_type = registration_type_uncached
end

Instance Method Details

#registered?(_options = nil) ⇒ Boolean

Returns:

  • (Boolean)


21
22
23
# File 'lib/linux_admin/registration_system.rb', line 21

def registered?(_options = nil)
  false
end