Sha256: 4f00a900d0e136d08dfaf750ec1ebc57737b3d8752d5fa430fa85c3722dc4522

Contents?: true

Size: 1.04 KB

Versions: 23

Compression:

Stored size: 1.04 KB

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),
          self.set('foreman_tasks_proxy_action_retry_count', N_("Number of attempts to start a task on the smart proxy before failing"), 4),
          self.set('foreman_tasks_proxy_action_retry_interval', N_("Time in seconds between retries"), 15),
          self.set('foreman_tasks_proxy_action_start_timeout', N_("Time in second during which a task has to be started on the proxy"), 60)
      ].each { |s| self.create! s.update(:category => "Setting::ForemanTasks")}
    end

    true

  end

end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
foreman-tasks-0.8.6 app/models/setting/foreman_tasks.rb
foreman-tasks-0.8.5 app/models/setting/foreman_tasks.rb
foreman-tasks-0.8.4 app/models/setting/foreman_tasks.rb
foreman-tasks-0.8.3 app/models/setting/foreman_tasks.rb
foreman-tasks-0.8.2 app/models/setting/foreman_tasks.rb
foreman-tasks-0.8.1 app/models/setting/foreman_tasks.rb
foreman-tasks-0.8.0 app/models/setting/foreman_tasks.rb
foreman-tasks-0.7.20 app/models/setting/foreman_tasks.rb
foreman-tasks-0.7.19 app/models/setting/foreman_tasks.rb
foreman-tasks-0.7.18 app/models/setting/foreman_tasks.rb
foreman-tasks-0.7.17 app/models/setting/foreman_tasks.rb
foreman-tasks-0.7.16 app/models/setting/foreman_tasks.rb
foreman-tasks-0.7.15 app/models/setting/foreman_tasks.rb
foreman-tasks-0.7.14 app/models/setting/foreman_tasks.rb
foreman-tasks-0.7.13 app/models/setting/foreman_tasks.rb
foreman-tasks-0.7.12 app/models/setting/foreman_tasks.rb
foreman-tasks-0.7.11 app/models/setting/foreman_tasks.rb
foreman-tasks-0.7.10 app/models/setting/foreman_tasks.rb
foreman-tasks-0.7.9 app/models/setting/foreman_tasks.rb
foreman-tasks-0.7.8 app/models/setting/foreman_tasks.rb