Class: Actions::Katello::Organization::SimpleContentAccess::Disable

Inherits:
Toggle show all
Defined in:
app/lib/actions/katello/organization/simple_content_access/disable.rb

Constant Summary

Constants inherited from Toggle

Toggle::SIMPLE_CONTENT_ACCESS_DISABLED_VALUE, Toggle::SIMPLE_CONTENT_ACCESS_ENABLED_VALUE

Instance Attribute Summary

Attributes inherited from Toggle

#organization

Instance Method Summary collapse

Methods inherited from Toggle

#failure_notification, #humanized_input, #plan, #run, #success_notification

Methods included from Helpers::Notifications

#failure_notification, #get_foreman_task, included, #plan_failed?, #send_notification, #subject_organization, #success_notification

Methods inherited from AbstractAsyncTask

#humanized_output, #rescue_strategy

Instance Method Details

#content_access_mode_valueObject



6
7
8
# File 'app/lib/actions/katello/organization/simple_content_access/disable.rb', line 6

def content_access_mode_value
  SIMPLE_CONTENT_ACCESS_DISABLED_VALUE
end

#humanized_nameObject



10
11
12
# File 'app/lib/actions/katello/organization/simple_content_access/disable.rb', line 10

def humanized_name
  N_("Disable Simple Content Access")
end

#task_error_notificationObject



18
19
20
# File 'app/lib/actions/katello/organization/simple_content_access/disable.rb', line 18

def task_error_notification
  ::Katello::UINotifications::Subscriptions::SCADisableError
end

#task_success_notificationObject



14
15
16
# File 'app/lib/actions/katello/organization/simple_content_access/disable.rb', line 14

def task_success_notification
  ::Katello::UINotifications::Subscriptions::SCADisableSuccess
end