Sha256: 58286f4c18215536629cdd27c7b91cdad87af3521002dd3285df92f0eb376b0d

Contents?: true

Size: 952 Bytes

Versions: 42

Compression:

Stored size: 952 Bytes

Contents

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

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

            action_subject(host, :packages => packages)
            plan_action(Pulp::Consumer::ContentInstall,
                        consumer_uuid: host.content_facet.uuid,
                        type:          'rpm',
                        args:          packages)
          end

          def humanized_name
            _("Install package")
          end

          def humanized_input
            [input[:packages].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/install.rb
katello-3.9.0 app/lib/actions/katello/host/package/install.rb
katello-3.8.1 app/lib/actions/katello/host/package/install.rb
katello-3.9.0.rc2 app/lib/actions/katello/host/package/install.rb
katello-3.9.0.rc1 app/lib/actions/katello/host/package/install.rb
katello-3.7.1.1 app/lib/actions/katello/host/package/install.rb
katello-3.7.1 app/lib/actions/katello/host/package/install.rb
katello-3.8.0 app/lib/actions/katello/host/package/install.rb
katello-3.8.0.rc3 app/lib/actions/katello/host/package/install.rb
katello-3.8.0.rc2 app/lib/actions/katello/host/package/install.rb
katello-3.7.0 app/lib/actions/katello/host/package/install.rb
katello-3.8.0.rc1 app/lib/actions/katello/host/package/install.rb
katello-3.7.0.rc2 app/lib/actions/katello/host/package/install.rb
katello-3.7.0.rc1 app/lib/actions/katello/host/package/install.rb
katello-3.5.2 app/lib/actions/katello/host/package/install.rb
katello-3.6.0 app/lib/actions/katello/host/package/install.rb
katello-3.6.0.1.rc2 app/lib/actions/katello/host/package/install.rb
katello-3.6.0.rc2 app/lib/actions/katello/host/package/install.rb
katello-3.6.0.rc1 app/lib/actions/katello/host/package/install.rb
katello-3.5.1.1 app/lib/actions/katello/host/package/install.rb