Sha256: b3873474b8867ba538d29fab329385aab10fa1bcd8843ccb506b8f45fc02d4aa

Contents?: true

Size: 876 Bytes

Versions: 20

Compression:

Stored size: 876 Bytes

Contents

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

          def plan(host, groups)
            Type! host, ::Host::Managed

            action_subject(host, :groups => groups)
            plan_action(Pulp::Consumer::ContentInstall,
                        consumer_uuid: host.content_facet.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

20 entries across 20 versions & 1 rubygems

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