inspec/lib/vulcano/plugins/backend.rb

24 lines
405 B
Ruby
Raw Normal View History

# encoding: utf-8
module Vulcano
module Plugins
class Backend
def self.name( name )
Vulcano::Plugins::Backend.__register(name, self)
end
def self.__register(name, obj)
cl = Class.new(obj) do
include Vulcano::Plugins::BackendCommon
end
Vulcano::Backend.registry[name] = obj
end
end
module BackendCommon
end
end
end