Sha256: c161252da4697cd4efb3610b5c172fe258f08deb69a8a7e590d68a3e2ac22802

Contents?: true

Size: 636 Bytes

Versions: 134

Compression:

Stored size: 636 Bytes

Contents

module Actions
  module Katello
    module Applicability
      module Host
        class Generate < Actions::EntryAction
          # This should be run through Katello::Events::GenerateHostApplicability

          input_format do
            param :host_id, Integer
          end

          def run
            content_facet = ::Host.find(input[:host_id]).content_facet
            content_facet.calculate_and_import_applicability
          end

          def resource_locks
            :link
          end

          def humanized_name
            _("Generate host applicability")
          end
        end
      end
    end
  end
end

Version data entries

134 entries across 134 versions & 1 rubygems

Version Path
katello-4.0.0.rc3 app/lib/actions/katello/applicability/host/generate.rb
katello-3.18.2.1 app/lib/actions/katello/applicability/host/generate.rb
katello-3.18.2 app/lib/actions/katello/applicability/host/generate.rb
katello-3.17.3 app/lib/actions/katello/applicability/host/generate.rb
katello-4.0.0.rc2 app/lib/actions/katello/applicability/host/generate.rb
katello-3.18.1.1 app/lib/actions/katello/applicability/host/generate.rb
katello-3.17.2 app/lib/actions/katello/applicability/host/generate.rb
katello-4.0.0.rc1 app/lib/actions/katello/applicability/host/generate.rb
katello-3.18.1 app/lib/actions/katello/applicability/host/generate.rb
katello-3.18.0 app/lib/actions/katello/applicability/host/generate.rb
katello-3.17.1 app/lib/actions/katello/applicability/host/generate.rb
katello-3.16.2 app/lib/actions/katello/applicability/host/generate.rb
katello-3.18.0.rc2.1 app/lib/actions/katello/applicability/host/generate.rb
katello-3.18.0.rc2 app/lib/actions/katello/applicability/host/generate.rb
katello-3.17.0 app/lib/actions/katello/applicability/host/generate.rb
katello-3.18.0.rc1 app/lib/actions/katello/applicability/host/generate.rb
katello-3.17.0.rc2.2 app/lib/actions/katello/applicability/host/generate.rb
katello-3.17.0.rc2.1 app/lib/actions/katello/applicability/host/generate.rb
katello-3.16.1.2 app/lib/actions/katello/applicability/host/generate.rb
katello-3.16.1.1 app/lib/actions/katello/applicability/host/generate.rb