Sha256: 1cf5d3b158b0f455859da48e0c2063847310f9ed36c62afd65fc884d1c27b34d

Contents?: true

Size: 989 Bytes

Versions: 6

Compression:

Stored size: 989 Bytes

Contents

module Actions
  module Katello
    module Organization
      module SimpleContentAccess
        class Enable < Toggle
          def plan(organization_id, auto_create_overrides: true)
            input[:auto_create_overrides] = auto_create_overrides
            sequence do
              if auto_create_overrides
                plan_action(PrepareContentOverrides, organization_id)
              end
              super(organization_id) # puts plan_self inside the sequence
            end
          end

          def content_access_mode_value
            SIMPLE_CONTENT_ACCESS_ENABLED_VALUE
          end

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

          def task_success_notification
            ::Katello::UINotifications::Subscriptions::SCAEnableSuccess
          end

          def task_error_notification
            ::Katello::UINotifications::Subscriptions::SCAEnableError
          end
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
katello-4.8.4 app/lib/actions/katello/organization/simple_content_access/enable.rb
katello-4.8.3 app/lib/actions/katello/organization/simple_content_access/enable.rb
katello-4.7.6 app/lib/actions/katello/organization/simple_content_access/enable.rb
katello-4.8.2 app/lib/actions/katello/organization/simple_content_access/enable.rb
katello-4.8.1 app/lib/actions/katello/organization/simple_content_access/enable.rb
katello-4.7.5 app/lib/actions/katello/organization/simple_content_access/enable.rb