Class: Google::Storage::Property::Base
- Inherits:
-
Puppet::Property
- Object
- Puppet::Property
- Google::Storage::Property::Base
- Defined in:
- lib/google/storage/property/base.rb
Overview
A Puppet property that can compare its values
Direct Known Subclasses
Array, Boolean, BucketAccessControlProjectTeam, BucketAcl, BucketAction, BucketCondition, BucketCors, BucketDefaultObjectAcl, BucketLifecycle, BucketLogging, BucketOwner, BucketProjectTeam, BucketRule, BucketVersioning, BucketWebsite, DefaultObjectACLProjectTeam, Enum, Integer, ObjectAccessControlProjectTeam, String, Time
Instance Method Summary collapse
Instance Method Details
#insync?(is) ⇒ Boolean
35 36 37 38 39 40 41 42 43 |
# File 'lib/google/storage/property/base.rb', line 35 def insync?(is) debug("insync? #{name}: '#{is}' == '#{should}'") insync = false insync = true if is == :absent && should == :absent insync = (is == should) unless is == :absent || should == :absent debug("insync? #{name}: '#{is}' == '#{should}': #{insync}") resource.provider.dirty name, is, should unless insync insync end |