class OvirtMetrics::Configurator
Attributes
connection_specification_name[R]
suppress_warnings[RW]
Public Class Methods
new()
click to toggle source
# File lib/ovirt_metrics/configurator.rb, line 3 def initialize self.suppress_warnings = false self.connection_specification_name = 'ovirt_metrics' if ActiveRecord::VERSION::MAJOR >= 5 end
Public Instance Methods
connection_specification_name=(value)
click to toggle source
# File lib/ovirt_metrics/configurator.rb, line 12 def connection_specification_name=(value) if ActiveRecord::VERSION::MAJOR < 5 OvirtMetrics.warn "WARNING: ovirt_metric's " \ "connection_specification_name option is only available with " \ "Active Record 5 or newer. The main application pool " \ "('primary') will be used by default until you connect to a " \ "separate Ovirt database." else @connection_specification_name = value end end