diff --git a/lib/vulcano/plugins/backend_file_common.rb b/lib/vulcano/plugins/backend_file_common.rb index 4dfd2c6c8..97898c8f5 100644 --- a/lib/vulcano/plugins/backend_file_common.rb +++ b/lib/vulcano/plugins/backend_file_common.rb @@ -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." diff --git a/lib/vulcano/plugins/backend_linux_file.rb b/lib/vulcano/plugins/backend_linux_file.rb index 5be32a1e4..e6a5545e3 100644 --- a/lib/vulcano/plugins/backend_linux_file.rb +++ b/lib/vulcano/plugins/backend_linux_file.rb @@ -4,6 +4,7 @@ require 'shellwords' class Vulcano::Plugins::Backend class LinuxFile < FileCommon + attr_reader :path def initialize(backend, path) @backend = backend @path = path