Sha256: 56656795d2f0cf0f88ac7ec98d5674c762014cae346fd69e063a651186a20e81
Contents?: true
Size: 491 Bytes
Versions: 20
Compression:
Stored size: 491 Bytes
Contents
# frozen_string_literal: true module Puppet Puppet::Type.type(:file).newproperty(:mtime) do desc %q{A read-only state to check the file mtime. On \*nix-like systems, this is the time of the most recent change to the content of the file.} def retrieve current_value = :absent stat = @resource.stat if stat current_value = stat.mtime end current_value.to_s end validate do |val| fail "mtime is read-only" end end end
Version data entries
20 entries across 20 versions & 1 rubygems