Sha256: e69a41f718aeb14ca62cf082718df5384176b61d7c10d185bc7125659f51214d

Contents?: true

Size: 546 Bytes

Versions: 2

Compression:

Stored size: 546 Bytes

Contents

module Actions
  module Katello
    module Applicability
      module Hosts
        class Generate < Actions::EntryAction
          input_format do
            param :host_ids, Array
          end

          def run
            input[:host_ids].each do |host_id|
              ::Katello::EventQueue.push_event(::Katello::Events::GenerateHostApplicability::EVENT_TYPE, host_id)
            end
          end

          def humanized_name
            _("Bulk generate applicability for hosts")
          end
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
katello-3.16.0.rc1.1 app/lib/actions/katello/applicability/hosts/generate.rb
katello-3.16.0.rc1 app/lib/actions/katello/applicability/hosts/generate.rb