# File lib/puppet/provider/naginator.rb, line 12
12:   def self.nagios_type
13:     unless @nagios_type
14:       name = resource_type.name.to_s.sub(/^nagios_/, '')
15:       unless @nagios_type = Nagios::Base.type(name.to_sym)
16:         raise Puppet::DevError, "Could not find nagios type '#{name}'"
17:       end
18: 
19:       # And add our 'ensure' settings, since they aren't a part of
20:       # Naginator by default
21:       @nagios_type.send(:attr_accessor, :ensure, :target, :on_disk)
22:     end
23:     @nagios_type
24:   end