inspec/lib/vulcano/targets/core.rb
Christoph Hartmann 0e8651bf26 fix rubocop issues
2015-09-05 16:07:54 +02:00

25 lines
480 B
Ruby

# encoding: utf-8
require 'utils/modulator'
module Vulcano
module Targets
extend Modulator
def self.__resolve(items)
items.map do |item|
end.flatten
end
def self.resolve(targets)
Array(targets).map do |target|
handler = modules.values.find { |m| m.handles?(target) }
if handler.nil?
fail "Don't know how to handle target: #{target}"
end
handler.resolve(target)
end.flatten
end
end
end