Project

General

Profile

Revision 29812b3a

Added by Dominic Cleal over 8 years ago

Update to pass CR class to plugin registration

View differences:

lib/foreman_docker/engine.rb
16 16
    end
17 17

  
18 18
    initializer 'foreman_docker.register_plugin', :after=> :finisher_hook do |app|
19
      require File.expand_path('../../../app/models/compute_resources/foreman/model/docker', __FILE__)
20 19
      Foreman::Plugin.register :foreman_docker do
21 20
        requires_foreman '> 1.4'
22 21
        # Register docker compute resource in foreman
23
        compute_resource 'Docker'
22
        compute_resource ForemanDocker::Docker
24 23
      end
25 24

  
26 25
    end
......
34 33
  require File.expand_path('../../../app/models/concerns/fog_extensions/fogdocker/image', __FILE__)
35 34
  Fog::Compute::Fogdocker::Server.send(:include, ::FogExtensions::Fogdocker::Server)
36 35
  Fog::Compute::Fogdocker::Image.send(:include, ::FogExtensions::Fogdocker::Image)
37
end
36
end

Also available in: Unified diff