inspec/lib/vulcano/targets/url.rb

16 lines
247 B
Ruby
Raw Normal View History

# encoding: utf-8
require 'uri'
class UrlTarget
def handles?(target)
uri = URI.parse(target)
%{ http https }.include? uri.scheme
end
def resolve(target)
raise "TODO"
end
end
Vulcano::Targets.add_module('url', UrlTarget.new)