# File lib/puppet/type/zpool.rb, line 20 20: def insync?(is) 21: return true unless self.should 22: 23: return @should == [:absent] if is == :absent 24: 25: return false unless is.length == @should.length 26: 27: is.each_with_index { |list, i| return false unless flatten_and_sort(list) == flatten_and_sort(@should[i]) } 28: 29: #if we made it this far we are in sync 30: true 31: end