Sha256: 890f2e510127b4982ab4b4d3171d53bb0e13953d60f953fcbadafeabb729de79

Contents?: true

Size: 963 Bytes

Versions: 42

Compression:

Stored size: 963 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

          def rescue_strategy
            Dynflow::Action::Rescue::Skip
          end
        end
      end
    end
  end
end

Version data entries

42 entries across 42 versions & 1 rubygems

Version Path
katello-3.9.1 app/lib/actions/katello/host/package_group/install.rb
katello-3.9.0 app/lib/actions/katello/host/package_group/install.rb
katello-3.8.1 app/lib/actions/katello/host/package_group/install.rb
katello-3.9.0.rc2 app/lib/actions/katello/host/package_group/install.rb
katello-3.9.0.rc1 app/lib/actions/katello/host/package_group/install.rb
katello-3.7.1.1 app/lib/actions/katello/host/package_group/install.rb
katello-3.7.1 app/lib/actions/katello/host/package_group/install.rb
katello-3.8.0 app/lib/actions/katello/host/package_group/install.rb
katello-3.8.0.rc3 app/lib/actions/katello/host/package_group/install.rb
katello-3.8.0.rc2 app/lib/actions/katello/host/package_group/install.rb
katello-3.7.0 app/lib/actions/katello/host/package_group/install.rb
katello-3.8.0.rc1 app/lib/actions/katello/host/package_group/install.rb
katello-3.7.0.rc2 app/lib/actions/katello/host/package_group/install.rb
katello-3.7.0.rc1 app/lib/actions/katello/host/package_group/install.rb
katello-3.5.2 app/lib/actions/katello/host/package_group/install.rb
katello-3.6.0 app/lib/actions/katello/host/package_group/install.rb
katello-3.6.0.1.rc2 app/lib/actions/katello/host/package_group/install.rb
katello-3.6.0.rc2 app/lib/actions/katello/host/package_group/install.rb
katello-3.6.0.rc1 app/lib/actions/katello/host/package_group/install.rb
katello-3.5.1.1 app/lib/actions/katello/host/package_group/install.rb