Sha256: a09450f484ca739c6c735312be5d60c84dad75659bdd834361bb1bf76ddf5368

Contents?: true

Size: 538 Bytes

Versions: 15

Compression:

Stored size: 538 Bytes

Contents

module Watchmen
	
	def self.test
		@watchmen.each do |cmd|
			puts "Running #{cmd.name}:"
			puts cmd.data
			puts "Done."
		end
	end
	
	def self.data
		@watchmen.inject({}) do |acc,cmd|
			acc[cmd.name] = cmd.data
			acc
		end
	end
	
	def self.register(cls)
		@watchmen ||= []
		@watchmen << cls
	end
	
end

require 'city_watch/util/watchman'
require 'city_watch/watchmen/sysinfo'
require 'city_watch/watchmen/unicorns'
require 'city_watch/watchmen/nginx'
require 'city_watch/watchmen/cpu_usage'
require 'city_watch/watchmen/disk_usage'

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
city-watch-0.5.1 lib/city_watch/watchmen.rb
city-watch-0.5.0 lib/city_watch/watchmen.rb
city-watch-0.4.9 lib/city_watch/watchmen.rb
city-watch-0.4.7 lib/city_watch/watchmen.rb
city-watch-0.4.6 lib/city_watch/watchmen.rb
city-watch-0.4.5 lib/city_watch/watchmen.rb
city-watch-0.4.4 lib/city_watch/watchmen.rb
city-watch-0.4.3 lib/city_watch/watchmen.rb
city-watch-0.4.2 lib/city_watch/watchmen.rb
city-watch-0.4.1 lib/city_watch/watchmen.rb
city-watch-0.4.0 lib/city_watch/watchmen.rb
city-watch-0.3.3 lib/city_watch/watchmen.rb
city-watch-0.3.2 lib/city_watch/watchmen.rb
city-watch-0.3.1 lib/city_watch/watchmen.rb
city-watch-0.3.0 lib/city_watch/watchmen.rb