mirror of
https://github.com/inspec/inspec
synced 2024-12-19 01:23:50 +00:00
14 lines
178 B
Ruby
14 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)
|