Sha256: ae9759af29a641a3e958eea4d1817f8f642556e97df1f74643a9f6e7ba59d4fd
Contents?: true
Size: 784 Bytes
Versions: 1
Compression:
Stored size: 784 Bytes
Contents
require 'deface' module ForemanAnsible class Engine < ::Rails::Engine engine_name 'foreman_ansible' config.autoload_paths += Dir["#{config.root}/app/overrides"] config.autoload_paths += Dir["#{config.root}/app/services"] initializer 'foreman_ansible.register_plugin', :after => :finisher_hook do Foreman::Plugin.register :foreman_ansible do requires_foreman '>= 1.6' end end config.to_prepare do begin ::FactImporter.register_fact_importer(:ansible, ForemanAnsible::FactImporter) ::FactParser.register_fact_parser(:ansible, ForemanAnsible::FactParser) rescue => e Rails.logger "Foreman Ansible: skipping engine hook (#{e})" end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
foreman_ansible-0.1.0 | lib/foreman_ansible/engine.rb |