# File lib/puppet/property/ensure.rb, line 8
 8:   def self.defaultvalues
 9:     newvalue(:present) do
10:       if @resource.provider and @resource.provider.respond_to?(:create)
11:         @resource.provider.create
12:       else
13:         @resource.create
14:       end
15:       nil # return nil so the event is autogenerated
16:     end
17: 
18:     newvalue(:absent) do
19:       if @resource.provider and @resource.provider.respond_to?(:destroy)
20:         @resource.provider.destroy
21:       else
22:         @resource.destroy
23:       end
24:       nil # return nil so the event is autogenerated
25:     end
26: 
27:     defaultto do
28:       if @resource.managed?
29:         :present
30:       else
31:         nil
32:       end
33:     end
34: 
35:     # This doc will probably get overridden
36:     @doc ||= "The basic property that the resource should be in."
37:   end