Sha256: 293409ed4a90063396943160575d143a979edbd2cb3edf9f51f7f920ef0a7057

Contents?: true

Size: 603 Bytes

Versions: 64

Compression:

Stored size: 603 Bytes

Contents

module Katello
  class HostTracer < Katello::Model
    include Katello::Authorization::HostTracer

    belongs_to :host, :inverse_of => :host_traces, :class_name => '::Host::Managed'

    scope :reboot_required, -> { where(app_type: 'static') }

    validates :application, :length => {:maximum => 255}, :presence => true
    validates :app_type, :length => {:maximum => 255}, :presence => true

    scoped_search :on => :application, :complete_value => true
    scoped_search :on => :app_type
    scoped_search :on => :helper

    def reboot_required?
      self.app_type == 'static'
    end
  end
end

Version data entries

64 entries across 64 versions & 1 rubygems

Version Path
katello-3.17.1 app/models/katello/host_tracer.rb
katello-3.16.2 app/models/katello/host_tracer.rb
katello-3.18.0.rc2.1 app/models/katello/host_tracer.rb
katello-3.18.0.rc2 app/models/katello/host_tracer.rb
katello-3.17.0 app/models/katello/host_tracer.rb
katello-3.18.0.rc1 app/models/katello/host_tracer.rb
katello-3.17.0.rc2.2 app/models/katello/host_tracer.rb
katello-3.17.0.rc2.1 app/models/katello/host_tracer.rb
katello-3.16.1.2 app/models/katello/host_tracer.rb
katello-3.16.1.1 app/models/katello/host_tracer.rb
katello-3.17.0.rc2 app/models/katello/host_tracer.rb
katello-3.16.1 app/models/katello/host_tracer.rb
katello-3.17.0.rc1 app/models/katello/host_tracer.rb
katello-3.16.0 app/models/katello/host_tracer.rb
katello-3.16.0.rc5.1 app/models/katello/host_tracer.rb
katello-3.16.0.rc5 app/models/katello/host_tracer.rb
katello-3.16.0.rc4.1 app/models/katello/host_tracer.rb
katello-3.16.0.rc4 app/models/katello/host_tracer.rb
katello-3.16.0.rc3.1 app/models/katello/host_tracer.rb
katello-3.16.0.rc3 app/models/katello/host_tracer.rb