diff options
| author | Paul Berry <paul@puppetlabs.com> | 2011-01-25 14:03:14 -0800 |
|---|---|---|
| committer | Paul Berry <paul@puppetlabs.com> | 2011-01-25 15:11:33 -0800 |
| commit | 0765afbd2459a60f5ded89a4c34a3bcb3c560399 (patch) | |
| tree | ace5f484dea1ee685a1230f26df5e81645749340 /lib | |
| parent | 41090d3617d99f9eaa58df32be93f3d16467bc50 (diff) | |
Maint: Rename misleading insync? method in file provider
This method actually checks whether the file owner is in sync.
Renamed to is_owner_insync?
Paired-with: Jesse Wolfe <jesse@puppetlabs.com>
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/puppet/provider/file/posix.rb | 2 | ||||
| -rw-r--r-- | lib/puppet/provider/file/win32.rb | 2 | ||||
| -rwxr-xr-x | lib/puppet/type/file/owner.rb | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/lib/puppet/provider/file/posix.rb b/lib/puppet/provider/file/posix.rb index 6cbf98e9a..415a5af40 100644 --- a/lib/puppet/provider/file/posix.rb +++ b/lib/puppet/provider/file/posix.rb @@ -27,7 +27,7 @@ Puppet::Type.type(:file).provide :posix do end end - def insync?(current, should) + def is_owner_insync?(current, should) return true unless should should.each do |value| diff --git a/lib/puppet/provider/file/win32.rb b/lib/puppet/provider/file/win32.rb index 8ead69a89..23aa491dc 100644 --- a/lib/puppet/provider/file/win32.rb +++ b/lib/puppet/provider/file/win32.rb @@ -14,7 +14,7 @@ Puppet::Type.type(:file).provide :microsoft_windows do id end - def insync?(current, should) + def is_owner_insync?(current, should) return true unless should should.each do |value| diff --git a/lib/puppet/type/file/owner.rb b/lib/puppet/type/file/owner.rb index d473da20e..483cc7fce 100755 --- a/lib/puppet/type/file/owner.rb +++ b/lib/puppet/type/file/owner.rb @@ -6,7 +6,7 @@ module Puppet @event = :file_changed def insync?(current) - provider.insync?(current, @should) + provider.is_owner_insync?(current, @should) end # We want to print names, not numbers |
