Sha256: c9c67a4ee1a0fcba78c9b9ee59b251d851448f0d4bad38e4e638abc32472fa63

Contents?: true

Size: 668 Bytes

Versions: 4

Compression:

Stored size: 668 Bytes

Contents

module Katello
  class Hypervisor < System
    validates_lengths_from_database

    UNSUPPORTED_ACTIONS = [:package_profile, :pulp_facts, :simple_packages, :errata, :del_pulp_consumer, :set_pulp_consumer,
                           :update_pulp_consumer, :upload_package_profile, :install_package, :uninstall_package,
                           :update_package, :install_package_group, :uninstall_package_group].freeze

    UNSUPPORTED_ACTIONS.each do |unsupported_action|
      define_method(unsupported_action) do
        fail Errors::UnsupportedActionException.new(unsupported_action, self, _("Hypervisor does not support this action"))
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
katello-3.1.0.1 app/models/katello/hypervisor.rb
katello-3.1.0 app/models/katello/hypervisor.rb
katello-3.1.0.rc2.1 app/models/katello/hypervisor.rb
katello-3.1.0.rc1 app/models/katello/hypervisor.rb