mirror of
https://github.com/inspec/inspec
synced 2024-12-18 17:14:33 +00:00
24 lines
405 B
Ruby
24 lines
405 B
Ruby
|
# 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
|