Sha256: 584b59ae7f64fbcdb1f863f03cbc2710594704ab60844f1fcae2cd33d1d555bb

Contents?: true

Size: 671 Bytes

Versions: 7

Compression:

Stored size: 671 Bytes

Contents

class Setting::ForemanTasks < Setting

  def self.load_defaults
    # Check the table exists
    return unless super

    self.transaction do
      [
          self.set('dynflow_allow_dangerous_actions', N_("Allow unlocking actions which can have dangerous consequences."), false),
          self.set('dynflow_enable_console', N_("Enable the dynflow console (/foreman_tasks/dynflow) for debugging"), true),
          self.set('dynflow_console_require_auth', N_("Require user to be authenticated as user with admin rights when accessing dynflow console"), true)
      ].each { |s| self.create! s.update(:category => "Setting::ForemanTasks")}
    end

    true

  end

end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
foreman-tasks-0.7.4 app/models/setting/foreman_tasks.rb
foreman-tasks-0.7.3 app/models/setting/foreman_tasks.rb
foreman-tasks-0.7.2 app/models/setting/foreman_tasks.rb
foreman-tasks-0.7.1 app/models/setting/foreman_tasks.rb
foreman-tasks-0.7.0 app/models/setting/foreman_tasks.rb
foreman-tasks-0.6.15 app/models/setting/foreman_tasks.rb
foreman-tasks-0.6.14 app/models/setting/foreman_tasks.rb