mirror of
https://github.com/inspec/inspec
synced 2024-12-19 01:23:50 +00:00
9ba4fb1d00
Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
13 lines
178 B
Ruby
13 lines
178 B
Ruby
# encoding: utf-8
|
|
|
|
class FileTarget
|
|
def handles?(target)
|
|
File::file?(target)
|
|
end
|
|
|
|
def resolve(target)
|
|
target
|
|
end
|
|
end
|
|
|
|
Vulcano::Targets.add_module(FileTarget.new)
|