Sha256: 88af5467bdb5431553ee8e9005a09c8078f526c8c75ac562688eca1710ed516a

Contents?: true

Size: 491 Bytes

Versions: 5

Compression:

Stored size: 491 Bytes

Contents

require 'diffy'
require 'git'

module ForemanTemplates
  #Inherit from the Rails module of the parent app (Foreman), not the plugin.
  #Thus, inhereits from ::Rails::Engine and not from Rails::Engine
  class Engine < ::Rails::Engine

    initializer 'foreman_templates.register_plugin', :after=> :finisher_hook do |app|
      Foreman::Plugin.register :foreman_templates do
        requires_foreman '>= 1.9'
      end
    end

    rake_tasks do
      load "templates.rake"
    end

  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
foreman_templates-2.1.0 lib/foreman_templates/engine.rb
foreman_templates-2.0.3 lib/foreman_templates/engine.rb
foreman_templates-2.0.2 lib/foreman_templates/engine.rb
foreman_templates-2.0.1 lib/foreman_templates/engine.rb
foreman_templates-2.0.0 lib/foreman_templates/engine.rb