Class: LinuxAdmin::RegistrationSystem

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

Direct Known Subclasses

Rhn, SubscriptionManager

Constant Summary

Constants included from Common

Common::BIN_DIRS

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Common

#cmd, #cmd?, #run, #run!

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



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

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)


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

def registered?
  false
end