# File lib/puppet/property.rb, line 408
408:         def self.defaultvalues
409:             newvalue(:present) do
410:                 if @resource.provider and @resource.provider.respond_to?(:create)
411:                     @resource.provider.create
412:                 else
413:                     @resource.create
414:                 end
415:                 nil # return nil so the event is autogenerated
416:             end
417: 
418:             newvalue(:absent) do
419:                 if @resource.provider and @resource.provider.respond_to?(:destroy)
420:                     @resource.provider.destroy
421:                 else
422:                     @resource.destroy
423:                 end
424:                 nil # return nil so the event is autogenerated
425:             end
426: 
427:             defaultto do
428:                 if @resource.managed?
429:                     :present
430:                 else
431:                     nil
432:                 end
433:             end
434: 
435:             # This doc will probably get overridden
436:             @doc ||= "The basic property that the resource should be in."
437:         end