diff --git a/lib/resources/file.rb b/lib/resources/file.rb index 199404814..1ab552c0f 100644 --- a/lib/resources/file.rb +++ b/lib/resources/file.rb @@ -15,7 +15,7 @@ module Vulcano::Resources type exists? file? block_device? character_device? socket? directory? symlink? pipe? mode mode? owner owned_by? group grouped_into? link_target linked_to? - content mtime ctime size selinux_label + content mtime size selinux_label mounted? immutable? product_version file_version version? md5sum sha256sum }.each do |name| diff --git a/lib/vulcano/backend/specinfra.rb b/lib/vulcano/backend/specinfra.rb index 377cd2995..7e4c307a1 100644 --- a/lib/vulcano/backend/specinfra.rb +++ b/lib/vulcano/backend/specinfra.rb @@ -220,10 +220,6 @@ module Vulcano::Backends Specinfra::Runner.get_file_mtime(@path).stdout.strip end - def ctime - Specinfra::Runner.get_file_ctime(@path).stdout.strip - end - def size Specinfra::Runner.get_file_size(@path).stdout.strip.to_i end diff --git a/lib/vulcano/plugins/backend.rb b/lib/vulcano/plugins/backend.rb index ce4d79c9b..0e6a2f43f 100644 --- a/lib/vulcano/plugins/backend.rb +++ b/lib/vulcano/plugins/backend.rb @@ -25,7 +25,7 @@ module Vulcano::Plugins # interface methods: these fields should be implemented by every # backend File %w{ - exists? mode owner group link_target content mtime ctime size + exists? mode owner group link_target content mtime size selinux_label product_version file_version }