Class: ForemanTasks::Dynflow
- Inherits:
-
Dynflow::Rails
- Object
- Dynflow::Rails
- ForemanTasks::Dynflow
- Defined in:
- lib/foreman_tasks/dynflow.rb
Overview
Class for configuring and preparing the Dynflow runtime environment.
Defined Under Namespace
Classes: Configuration, ConsoleAuthorizer, SidekiqConsoleConstraint
Instance Method Summary collapse
Instance Method Details
#web_console ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/foreman_tasks/dynflow.rb', line 8 def web_console ::Dynflow::Web.setup do before do if !Setting[:dynflow_enable_console] || (Setting[:dynflow_console_require_auth] && !ConsoleAuthorizer.from_env(env).allow?) halt 403, 'Access forbidden' end end set(:custom_navigation) do { _('Back to tasks') => "/#{ForemanTasks::TasksController.controller_path}" } end set(:world) { ::Rails.application.dynflow.world } end end |