Class: Puppet::Property::MultiVDev
- Inherits:
-
VDev
- Object
- Puppet::Property
- VDev
- Puppet::Property::MultiVDev
- Defined in:
- lib/puppet/type/zpool.rb
Overview
MultiVDev class
Instance Method Summary collapse
-
#insync?(is) ⇒ Boolean
If the resource is in sync with what it should be.
Methods inherited from VDev
Instance Method Details
#insync?(is) ⇒ Boolean
Returns if the resource is in sync with what it should be.
27 28 29 30 31 32 33 34 35 36 |
# File 'lib/puppet/type/zpool.rb', line 27 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 |