Method: Puppet::Property::MultiVDev#insync?
- Defined in:
- lib/vendor/puppet/type/zpool.rb
#insync?(is) ⇒ Boolean
19 20 21 22 23 24 25 26 27 28 |
# File 'lib/vendor/puppet/type/zpool.rb', line 19 def insync?(is) return @should == [:absent] if is == :absent return false unless is.length == @should.length is.each_with_index { |list, i| return false unless flatten_and_sort(list) == flatten_and_sort(@should[i]) } #if we made it this far we are in sync true end |