Sha256: 328feeab45700a4c5ff4397e19a0ef0607c0f4022078066bb274630620beb261

Contents?: true

Size: 874 Bytes

Versions: 10

Compression:

Stored size: 874 Bytes

Contents

module Actions
  module Pulp
    module Consumer
      class ContentInstall < AbstractContentAction
        include Helpers::Presenter
        include Actions::Pulp::ExpectOneTask

        input_format do
          param :consumer_uuid, String
          param :type, %w(rpm package_group erratum)
          param :args, array_of(String)
        end

        def invoke_external_task
          task = pulp_extensions.consumer.install_content(input[:consumer_uuid],
                                                   input[:type],
                                                   input[:args],
                                                    "importkeys" => true)
          schedule_timeout(Setting['content_action_accept_timeout'])
          task
        end

        def presenter
          Consumer::ContentPresenter.new(self)
        end
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
katello-2.4.5 app/lib/actions/pulp/consumer/content_install.rb
katello-2.4.4 app/lib/actions/pulp/consumer/content_install.rb
katello-2.4.3 app/lib/actions/pulp/consumer/content_install.rb
katello-2.4.2 app/lib/actions/pulp/consumer/content_install.rb
katello-3.0.0.rc1 app/lib/actions/pulp/consumer/content_install.rb
katello-2.4.1 app/lib/actions/pulp/consumer/content_install.rb
katello-2.4.0 app/lib/actions/pulp/consumer/content_install.rb
katello-2.4.0.rc3 app/lib/actions/pulp/consumer/content_install.rb
katello-2.4.0.rc2 app/lib/actions/pulp/consumer/content_install.rb
katello-2.4.0.rc1 app/lib/actions/pulp/consumer/content_install.rb