Sha256: 61f6f1cdf78426a6f0724f09575dd8ebdfc581aee7ed351bb2974664bea40d05

Contents?: true

Size: 588 Bytes

Versions: 92

Compression:

Stored size: 588 Bytes

Contents

module UINotifications
  module Tasks
    class Base < ::UINotifications::Base
      def initialize(task)
        @subject = @task = task
      end

      def initiator
        User.anonymous_admin
      end

      def troubleshooting_help_generator
        return @troubleshooting_help_generator if defined? @troubleshooting_help_generator
        @troubleshooting_help_generator = if @task.main_action
                                            ForemanTasks::TroubleshootingHelpGenerator.new(@task.main_action)
                                          end
      end
    end
  end
end

Version data entries

92 entries across 92 versions & 1 rubygems

Version Path
foreman-tasks-10.0.2 app/services/ui_notifications/tasks.rb
foreman-tasks-10.0.1 app/services/ui_notifications/tasks.rb
foreman-tasks-10.0.0 app/services/ui_notifications/tasks.rb
foreman-tasks-9.2.3 app/services/ui_notifications/tasks.rb
foreman-tasks-9.2.2 app/services/ui_notifications/tasks.rb
foreman-tasks-9.2.1 app/services/ui_notifications/tasks.rb
foreman-tasks-9.2.0 app/services/ui_notifications/tasks.rb
foreman-tasks-9.1.1 app/services/ui_notifications/tasks.rb
foreman-tasks-9.0.4 app/services/ui_notifications/tasks.rb
foreman-tasks-9.1.0 app/services/ui_notifications/tasks.rb
foreman-tasks-9.0.2 app/services/ui_notifications/tasks.rb
foreman-tasks-9.0.1 app/services/ui_notifications/tasks.rb
foreman-tasks-8.3.3 app/services/ui_notifications/tasks.rb
foreman-tasks-9.0.0 app/services/ui_notifications/tasks.rb
foreman-tasks-8.2.1 app/services/ui_notifications/tasks.rb
foreman-tasks-8.1.4 app/services/ui_notifications/tasks.rb
foreman-tasks-8.3.2 app/services/ui_notifications/tasks.rb
foreman-tasks-8.3.1 app/services/ui_notifications/tasks.rb
foreman-tasks-8.1.3 app/services/ui_notifications/tasks.rb
foreman-tasks-8.3.0 app/services/ui_notifications/tasks.rb