Class: LinuxAdmin::RegistrationSystem

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

Direct Known Subclasses

Rhn, SubscriptionManager

Constant Summary

Constants inherited from LinuxAdmin

VERSION

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Common

#cmd, #run, #run!

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

Returns:

  • (Boolean)


18
19
20
# File 'lib/linux_admin/registration_system.rb', line 18

def registered?
  false
end