mirror of
https://github.com/inspec/inspec
synced 2024-11-30 00:20:28 +00:00
remove file ctime
Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
This commit is contained in:
parent
708fa8485d
commit
29a143a67f
3 changed files with 2 additions and 6 deletions
|
@ -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|
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue