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.15.0.rc2 app/lib/actions/katello/applicability/host/generate.rb
katello-4.15.0.rc1 app/lib/actions/katello/applicability/host/generate.rb
katello-4.14.1 app/lib/actions/katello/applicability/host/generate.rb
katello-4.14.0 app/lib/actions/katello/applicability/host/generate.rb
katello-4.14.0.rc3 app/lib/actions/katello/applicability/host/generate.rb
katello-4.14.0.rc2 app/lib/actions/katello/applicability/host/generate.rb
katello-4.14.0.rc1.1 app/lib/actions/katello/applicability/host/generate.rb
katello-4.14.0.rc1 app/lib/actions/katello/applicability/host/generate.rb
katello-4.13.1 app/lib/actions/katello/applicability/host/generate.rb
katello-4.13.0 app/lib/actions/katello/applicability/host/generate.rb
katello-4.12.1 app/lib/actions/katello/applicability/host/generate.rb
katello-4.13.0.rc1 app/lib/actions/katello/applicability/host/generate.rb
katello-4.12.0 app/lib/actions/katello/applicability/host/generate.rb
katello-4.12.0.rc3 app/lib/actions/katello/applicability/host/generate.rb
katello-4.12.0.rc2 app/lib/actions/katello/applicability/host/generate.rb
katello-4.12.0.rc1 app/lib/actions/katello/applicability/host/generate.rb
katello-4.11.1 app/lib/actions/katello/applicability/host/generate.rb
katello-4.11.0 app/lib/actions/katello/applicability/host/generate.rb
katello-4.11.0.rc2 app/lib/actions/katello/applicability/host/generate.rb
katello-4.11.0.rc1 app/lib/actions/katello/applicability/host/generate.rb