Sha256: 8ba3224964cf7ba95c76d5f0b812ef84c825da0d766e62fe577927c69f4df90c

Contents?: true

Size: 874 Bytes

Versions: 9

Compression:

Stored size: 874 Bytes

Contents

module Actions
  module Katello
    module System
      module PackageGroup
        class Install < Actions::EntryAction
          include Helpers::Presenter

          def plan(system, groups)
            Type! system, ::Katello::System

            action_subject(system, :groups => groups)
            plan_action(Pulp::Consumer::ContentInstall,
                        consumer_uuid: system.uuid,
                        type:          'package_group',
                        args:          groups)
          end

          def humanized_name
            _("Install package group")
          end

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

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

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
katello-2.4.5 app/lib/actions/katello/system/package_group/install.rb
katello-2.4.4 app/lib/actions/katello/system/package_group/install.rb
katello-2.4.3 app/lib/actions/katello/system/package_group/install.rb
katello-2.4.2 app/lib/actions/katello/system/package_group/install.rb
katello-2.4.1 app/lib/actions/katello/system/package_group/install.rb
katello-2.4.0 app/lib/actions/katello/system/package_group/install.rb
katello-2.4.0.rc3 app/lib/actions/katello/system/package_group/install.rb
katello-2.4.0.rc2 app/lib/actions/katello/system/package_group/install.rb
katello-2.4.0.rc1 app/lib/actions/katello/system/package_group/install.rb