diff options
| author | Luke Kanies <luke@madstop.com> | 2008-03-17 00:23:59 -0500 |
|---|---|---|
| committer | Luke Kanies <luke@madstop.com> | 2008-03-17 00:23:59 -0500 |
| commit | 4e76626dcad80bc5bb50f2c4ada21e6d3f4bbd83 (patch) | |
| tree | 734df466c8f1021755dc6e833fe6bc04739a400f /lib/puppet/indirector/yaml.rb | |
| parent | ab720489b491b00be2a0340f0b3aa4e186089281 (diff) | |
| parent | bba0b43a594273b82721b6e272aa5d95ab4e89f1 (diff) | |
| download | puppet-4e76626dcad80bc5bb50f2c4ada21e6d3f4bbd83.tar.gz puppet-4e76626dcad80bc5bb50f2c4ada21e6d3f4bbd83.tar.xz puppet-4e76626dcad80bc5bb50f2c4ada21e6d3f4bbd83.zip | |
Merge branch '0.24.x' of ssh://reductivelabs.com/opt/rl/git/puppet into 0.24.x
Diffstat (limited to 'lib/puppet/indirector/yaml.rb')
| -rw-r--r-- | lib/puppet/indirector/yaml.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/puppet/indirector/yaml.rb b/lib/puppet/indirector/yaml.rb index 16816d941..4baeb38db 100644 --- a/lib/puppet/indirector/yaml.rb +++ b/lib/puppet/indirector/yaml.rb @@ -40,6 +40,11 @@ class Puppet::Indirector::Yaml < Puppet::Indirector::Terminus end end + def version(name) + return nil unless FileTest.exist?(path(name)) + return File.stat(path(name)).mtime + end + private def from_yaml(text) |
