Sha256: 2dba2dfae756079ad02350c3f3bd80b09fb7a401b8db69f33876e7945158ffb3

Contents?: true

Size: 946 Bytes

Versions: 1

Compression:

Stored size: 946 Bytes

Contents

begin
  ::FactImporter.register_fact_importer(:foreman_salt, ForemanSalt::FactImporter)
  ::FactParser.register_fact_parser(:foreman_salt, ForemanSalt::FactParser)

  # Helper Extensions
  ::HostsHelper.send :include, ForemanSalt::HostsHelperExtensions
  ::SmartProxiesHelper.send :include, ForemanSalt::SmartProxiesHelperExtensions

  # Model Extensions
  ::Host::Managed.send :include, ForemanSalt::Concerns::HostManagedExtensions
  ::Host::Managed.send :include, ForemanSalt::Concerns::Orchestration::Salt
  ::Hostgroup.send :include, ForemanSalt::Concerns::HostgroupExtensions

  # Controller Extensions
  ::UnattendedController.send :include, ForemanSalt::Concerns::UnattendedControllerExtensions
  ::HostsController.send :include, ForemanSalt::Concerns::HostsControllerExtensions
  ::HostgroupsController.send :include, ForemanSalt::Concerns::HostgroupsControllerExtensions
rescue => e
  puts "ForemanSalt: skipping engine hook (#{e})"
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
foreman_salt-4.0.0 lib/foreman_salt/extensions.rb