Sha256: d3a2a92b7951b23812e55d42f3870be49e19141d454cac3dfaa61c55fcf44b6b

Contents?: true

Size: 661 Bytes

Versions: 16

Compression:

Stored size: 661 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]

    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

16 entries across 16 versions & 1 rubygems

Version Path
katello-3.0.2 app/models/katello/hypervisor.rb
katello-2.4.5 app/models/katello/hypervisor.rb
katello-3.0.1 app/models/katello/hypervisor.rb
katello-2.4.4 app/models/katello/hypervisor.rb
katello-3.0.0 app/models/katello/hypervisor.rb
katello-2.4.3 app/models/katello/hypervisor.rb
katello-3.0.0.rc7 app/models/katello/hypervisor.rb
katello-3.0.0.rc5 app/models/katello/hypervisor.rb
katello-2.4.2 app/models/katello/hypervisor.rb
katello-3.0.0.rc4 app/models/katello/hypervisor.rb
katello-3.0.0.rc3 app/models/katello/hypervisor.rb
katello-3.0.0.rc2 app/models/katello/hypervisor.rb
katello-3.0.0.rc1 app/models/katello/hypervisor.rb
katello-2.4.1 app/models/katello/hypervisor.rb
katello-2.4.0 app/models/katello/hypervisor.rb
katello-2.4.0.rc3 app/models/katello/hypervisor.rb