ManageIQ/manageiq-providers-redfish

View on GitHub
lib/manageiq/providers/redfish/engine.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
92%
module ManageIQ
  module Providers
    module Redfish
      class Engine < ::Rails::Engine
        isolate_namespace ManageIQ::Providers::Redfish

        config.autoload_paths << root.join('lib').to_s

        initializer :append_secrets do |app|
          app.config.paths["config/secrets"] << root.join("config", "secrets.defaults.yml").to_s
          app.config.paths["config/secrets"] << root.join("config", "secrets.yml").to_s
        end

        def self.vmdb_plugin?
          true
        end

        def self.plugin_name
          _('Redfish Provider')
        end
      end
    end
  end
end