mirror of
https://github.com/inspec/inspec
synced 2024-12-18 09:03:12 +00:00
a8ed53c337
use the same structure as for resources Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
23 lines
405 B
Ruby
23 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
|