lib/bastet.rb in bastet-0.0.2 vs lib/bastet.rb in bastet-0.1.0

- old
+ new

@@ -1,9 +1,24 @@ -require "bastet/version" +require 'bastet/version' +require 'bastet/base' +require 'bastet/group' module Bastet - autoload "Base", "bastet/base" + class << self + def redis + @@redis + end - def self.setup redis - Bastet::Base.new(redis) + def redis=(redis) + @@redis = redis + end + + def groups + @@groups ||= [] + end + + def setup(redis) + self.redis = redis + Bastet::Base.instance + end end end