~ubuntu-branches/ubuntu/wily/puppet/wily

« back to all changes in this revision

Viewing changes to lib/puppet/type/tidy.rb

  • Committer: Package Import Robot
  • Author(s): Stig Sandbeck Mathisen
  • Date: 2014-01-07 12:04:39 UTC
  • mfrom: (3.1.57 sid)
  • Revision ID: package-import@ubuntu.com-20140107120439-42anap22xfs9260x
Tags: 3.4.2-1
ImportedĀ upstreamĀ releaseĀ 3.4.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
312
312
 
313
313
  def stat(path)
314
314
    begin
315
 
      ::File.lstat(path)
 
315
      Puppet::FileSystem::File.new(path).lstat
316
316
    rescue Errno::ENOENT => error
317
317
      info "File does not exist"
318
318
      return nil