Sha256: 918db3e8cc44d4e44953b7b0a474118c50fd223d9ffc46dae7e426bb79cb2537

Contents?: true

Size: 492 Bytes

Versions: 11

Compression:

Stored size: 492 Bytes

Contents

=begin rdoc
  Monitor class
  
  TODO: Fill this out
=end
module PoolParty
  module Monitors
    
    def self.register_monitor(*args)
      args.each do |arg|
        (available_monitors << "#{arg}".downcase.to_sym)
      end
    end

    def self.available_monitors
      $available_monitors ||= []
    end
    
    class BaseMonitor
      
      def self.run
        new.run
      end
            
    end
    
  end
end

Dir["#{File.dirname(__FILE__)}/monitors/*.rb"].each {|f| require f}

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
auser-poolparty-0.2.15 lib/poolparty/monitors/base_monitor.rb
auser-poolparty-0.2.16 lib/poolparty/monitors/base_monitor.rb
auser-poolparty-0.2.20 lib/poolparty/monitors/base_monitor.rb
auser-poolparty-0.2.21 lib/poolparty/monitors/base_monitor.rb
auser-poolparty-0.2.22 lib/poolparty/monitors/base_monitor.rb
auser-poolparty-0.2.23 lib/poolparty/monitors/base_monitor.rb
auser-poolparty-0.2.24 lib/poolparty/monitors/base_monitor.rb
auser-poolparty-0.2.25 lib/poolparty/monitors/base_monitor.rb
auser-poolparty-0.2.26 lib/poolparty/monitors/base_monitor.rb
auser-poolparty-0.2.35 lib/poolparty/monitors/base_monitor.rb
poolparty-0.2.18 lib/poolparty/monitors/base_monitor.rb