Method: Puppet::Type::RelationshipMetaparam#validate_relationship
- Defined in:
- lib/vendor/puppet/type.rb
#validate_relationship ⇒ Object
1188 1189 1190 1191 1192 1193 1194 1195 |
# File 'lib/vendor/puppet/type.rb', line 1188 def validate_relationship @value.each do |ref| unless @resource.catalog.resource(ref.to_s) description = self.class.direction == :in ? "dependency" : "dependent" fail "Could not find #{description} #{ref} for #{resource.ref}" end end end |