Sha256: ade8d553e0b09723e7b12bc136a2a126c076e311e2567324d467c3ad6008f2bb

Contents?: true

Size: 854 Bytes

Versions: 20

Compression:

Stored size: 854 Bytes

Contents

module Actions
  module Katello
    module Host
      module PackageGroup
        class Remove < Actions::EntryAction
          include Helpers::Presenter

          def plan(host, groups)
            action_subject(host, :groups => groups)
            plan_action(Pulp::Consumer::ContentUninstall,
                        consumer_uuid: host.content_facet.uuid,
                        type:          'package_group',
                        args:          groups)
          end

          def humanized_name
            _("Remove package group")
          end

          def humanized_input
            [input[:groups].join(', ')] + super
          end

          def presenter
            Helpers::Presenter::Delegated.new(
                self, planned_actions(Pulp::Consumer::ContentUninstall))
          end
        end
      end
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
katello-3.2.1.1 app/lib/actions/katello/host/package_group/remove.rb
katello-3.2.1 app/lib/actions/katello/host/package_group/remove.rb
katello-3.2.0 app/lib/actions/katello/host/package_group/remove.rb
katello-3.2.0.rc3 app/lib/actions/katello/host/package_group/remove.rb
katello-3.2.0.rc2 app/lib/actions/katello/host/package_group/remove.rb
katello-3.2.0.rc1.1 app/lib/actions/katello/host/package_group/remove.rb
katello-3.2.0.rc1 app/lib/actions/katello/host/package_group/remove.rb
katello-3.1.0.1 app/lib/actions/katello/host/package_group/remove.rb
katello-3.1.0 app/lib/actions/katello/host/package_group/remove.rb
katello-3.1.0.rc2.1 app/lib/actions/katello/host/package_group/remove.rb
katello-3.0.2 app/lib/actions/katello/host/package_group/remove.rb
katello-3.1.0.rc1 app/lib/actions/katello/host/package_group/remove.rb
katello-3.0.1 app/lib/actions/katello/host/package_group/remove.rb
katello-3.0.0 app/lib/actions/katello/host/package_group/remove.rb
katello-3.0.0.rc7 app/lib/actions/katello/host/package_group/remove.rb
katello-3.0.0.rc5 app/lib/actions/katello/host/package_group/remove.rb
katello-3.0.0.rc4 app/lib/actions/katello/host/package_group/remove.rb
katello-3.0.0.rc3 app/lib/actions/katello/host/package_group/remove.rb
katello-3.0.0.rc2 app/lib/actions/katello/host/package_group/remove.rb
katello-3.0.0.rc1 app/lib/actions/katello/host/package_group/remove.rb