Skip to content

Instantly share code, notes, and snippets.

@seancribbs
Forked from fujin/compare_user.rb
Created February 10, 2009 22:15
Show Gist options
  • Save seancribbs/61628 to your computer and use it in GitHub Desktop.
Save seancribbs/61628 to your computer and use it in GitHub Desktop.
def compare_user
%w{uid gid comment home shell password}.any? do |att|
!@new_resource.send(att).nil? && @new_resource.send(att) != @current_resource.send(att)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment