lib/sensu/extensions/loader.rb
# Load instances of the loaded extensions.
#
# @param [String] sensu service to load extensions for.
Load instances of the loaded extensions.
Load instances of the loaded extensions .
def load_instances(service=nil)
        service ||= sensu_service_name
        categories_to_load(service).each do |category|
          extension_type = category.to_s.chop
          Extension.const_get(extension_type.capitalize).descendants.each do |klass|
            extension = klass.new
            @extensions[category][extension.name] = extension
            if extension.name_alias
              @extensions[category][extension.name_alias] = extension
            end
            warning("loaded extension", {
              :type => extension_type,
              :name => extension.name,
              :description => extension.description
            })
          end
        end
      end
def load_instances ( service = nil ) service ||= sensu_service_name categories_to_load ( service ) . each do | category | extension_type = category . to_s . chop Extension . const_get ( extension_type . capitalize ) . descendants . each do | klass | extension = klass . new @extensions [ category ] [ extension . name ] = extension if extension . name_alias @extensions [ category ] [ extension . name_alias ] = extension end warning ( "loaded extension" , { :type => extension_type , :name => extension . name , :description => extension . description } ) end end end
Load instances of the loaded extensions.
Load instances of the loaded extensions .
service
<not_specific>
<not_specific>
sensu service to load extensions for.
sensu service to load extensions for .