summaryrefslogtreecommitdiff
path: root/lib/oxidized/node.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/oxidized/node.rb')
-rw-r--r--lib/oxidized/node.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/oxidized/node.rb b/lib/oxidized/node.rb
index 3c32b8e..300221e 100644
--- a/lib/oxidized/node.rb
+++ b/lib/oxidized/node.rb
@@ -95,6 +95,7 @@ module Oxidized
:model => @model.class.to_s,
:last => nil,
:vars => @vars,
+ :mtime => @stats.mtime,
}
h[:full_name] = [@group, @name].join('/') if @group
if @last
@@ -126,6 +127,10 @@ module Oxidized
@retry = 0
end
+ def modified
+ @stats.update_mtime
+ end
+
private
def resolve_prompt opt