expose backend file path

Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
This commit is contained in:
Dominik Richter 2015-09-16 11:22:40 +02:00
parent c80b712287
commit 7137a9625b
2 changed files with 2 additions and 1 deletions

View file

@ -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."

View file

@ -4,6 +4,7 @@ require 'shellwords'
class Vulcano::Plugins::Backend
class LinuxFile < FileCommon
attr_reader :path
def initialize(backend, path)
@backend = backend
@path = path