inspec/lib/vulcano/plugins/backend.rb
Dominik Richter a8ed53c337 move backend to new plugin structure
use the same structure as for resources

Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
2015-08-29 16:11:23 -07:00

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