mirror of
https://github.com/inspec/inspec
synced 2024-11-23 13:13:22 +00:00
expose backend file path
Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
This commit is contained in:
parent
c80b712287
commit
7137a9625b
2 changed files with 2 additions and 1 deletions
|
@ -6,7 +6,7 @@ class Vulcano::Plugins::Backend
|
|||
# backend File
|
||||
%w{
|
||||
exists? mode owner group link_target content mtime size
|
||||
selinux_label product_version file_version
|
||||
selinux_label product_version file_version path
|
||||
}.each do |m|
|
||||
define_method m.to_sym do
|
||||
fail NotImplementedError, "File must implement the #{m}() method."
|
||||
|
|
|
@ -4,6 +4,7 @@ require 'shellwords'
|
|||
|
||||
class Vulcano::Plugins::Backend
|
||||
class LinuxFile < FileCommon
|
||||
attr_reader :path
|
||||
def initialize(backend, path)
|
||||
@backend = backend
|
||||
@path = path
|
||||
|
|
Loading…
Reference in a new issue