This method actually checks whether the file owner is in sync.
Renamed to is_owner_insync?

Paired-with: Jesse Wolfe <[email protected]>
Signed-off-by: Paul Berry <[email protected]>
---
 lib/puppet/provider/file/posix.rb |    2 +-
 lib/puppet/provider/file/win32.rb |    2 +-
 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 6cbf98e..415a5af 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 8ead69a..23aa491 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 d473da2..483cc7f 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
-- 
1.7.2

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Developers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-dev?hl=en.

Reply via email to