diff options
author | Luke Kanies <luke@madstop.com> | 2008-10-31 16:19:01 -0500 |
---|---|---|
committer | Luke Kanies <luke@madstop.com> | 2008-11-04 16:20:44 -0600 |
commit | cccd83853883a84a31f22446e9d3be8501655739 (patch) | |
tree | 0879ce240e5c9f9d05daf7ddbeb24550fdab5ce2 /lib | |
parent | 255c9fbcc00c4f2bb2252b9eadff195a1feb77f4 (diff) | |
download | puppet-cccd83853883a84a31f22446e9d3be8501655739.tar.gz puppet-cccd83853883a84a31f22446e9d3be8501655739.tar.xz puppet-cccd83853883a84a31f22446e9d3be8501655739.zip |
Adding a starting point for spec tests for tidy.
So far it just validates that lstat is used instead of stat.
Signed-off-by: Luke Kanies <luke@madstop.com>
Conflicts:
spec/unit/type/tidy.rb
Diffstat (limited to 'lib')
-rw-r--r-- | lib/puppet/type/file.rb | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/lib/puppet/type/file.rb b/lib/puppet/type/file.rb index 35eccef83..c55ff29a7 100644 --- a/lib/puppet/type/file.rb +++ b/lib/puppet/type/file.rb @@ -729,11 +729,6 @@ module Puppet method = :lstat end path = self[:path] - # Just skip them when they don't exist at all. - unless FileTest.exists?(path) or FileTest.symlink?(path) - @stat = nil - return @stat - end if @stat.nil? or refresh == true begin @stat = File.send(method, self[:path]) |