Sha256: fbc4e24b01ebd134f879c3488b49bb78b39ef2d858205477cbf927f04bddb61f

Contents?: true

Size: 568 Bytes

Versions: 3

Compression:

Stored size: 568 Bytes

Contents

# frozen_string_literal: true

require 'active_record'
require 'postgres/vacuum/configuration'
require 'postgres/vacuum/monitor/version'
require 'postgres/vacuum/monitor/query'
require 'postgres/vacuum/jobs/monitor_job'

module Postgres
  module Vacuum
    module Monitor
      class << self
        attr_accessor :config
      end

      def self.configuration
        @configuration ||= Configuration.new
      end

      def self.reset
        @config = Configuration.new
      end

      def self.configure
        yield(configuration)
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
postgres-vacuum-monitor-0.17.0 lib/postgres/vacuum/monitor.rb
postgres-vacuum-monitor-0.16.0 lib/postgres/vacuum/monitor.rb
postgres-vacuum-monitor-0.15.0 lib/postgres/vacuum/monitor.rb