Sha256: 8b20283f0ecf0ba3111c4b6174f96f2687e1e6e0795789a5e8410be8c471d6cf
Contents?: true
Size: 1.41 KB
Versions: 1
Compression:
Stored size: 1.41 KB
Contents
module Dradis module Plugins module HtmlExport class Engine < ::Rails::Engine # Standard Rails Engine stuff isolate_namespace Dradis::Plugins::HtmlExport engine_name 'dradis_html_export' # use rspec for tests config.generators do |g| g.test_framework :rspec end # Connect to the Framework include Dradis::Plugins::Base # plugin_name 'HTML export' provides :export, :rtp description 'Generate advanced HTML reports' addon_settings :html_export do settings.default_enabled = false end if defined?(Dradis::Pro) initializer 'dradis-html_export.mount_engine' do if (ActiveRecord::Base.connection rescue false) && ::Configuration.table_exists? Rails.application.routes.append do # Enabling/disabling integrations calls Rails.application.reload_routes! we need the enable # check inside the block to ensure the routes can be re-enabled without a server restart if Engine.enabled? mount Engine => '/', as: :html_export end end end end initializer 'dradis-html_export.include_helper' do ActiveSupport.on_load(:action_view) do Dradis::Plugins::HtmlExport::Exporter.include(ApplicationHelper) end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
dradis-html_export-4.10.1 | lib/dradis/plugins/html_export/engine.rb |