mirror of
https://github.com/inspec/inspec
synced 2024-11-15 09:27:20 +00:00
api: specinfra mtime returns unix seconds
Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
This commit is contained in:
parent
04a8cfddf4
commit
60f9e643aa
1 changed files with 3 additions and 1 deletions
|
@ -244,7 +244,9 @@ module Vulcano::Backends
|
|||
end
|
||||
|
||||
def mtime
|
||||
Specinfra::Runner.get_file_mtime(@path).stdout.strip
|
||||
mt = Specinfra::Runner.get_file_mtime(@path).stdout.strip
|
||||
return -1 if mt.empty?
|
||||
mt.to_i
|
||||
end
|
||||
|
||||
def size
|
||||
|
|
Loading…
Reference in a new issue