Sha256: 7fdbf698ab50ed4356c0ba7435f870060d503e18b620cc198a77ef488e2249d0
Contents?: true
Size: 663 Bytes
Versions: 189
Compression:
Stored size: 663 Bytes
Contents
module Katello module UINotifications class TaskNotification < AbstractNotification def initialize(options) @subject = options[:subject] @task = options[:task] fail(Foreman::Exception, 'must provide notification subject') if @subject.nil? fail(Foreman::Exception, 'must provide related task') if @task.nil? end protected def actions ::UINotifications::URLResolver.new( @task, :links => [ { :path_method => :foreman_tasks_task_path, :title => _('Task detail') } ] ).actions end end end end
Version data entries
189 entries across 189 versions & 1 rubygems