Sha256: 60668d0d6fd5bb2216c4e5952fe271a5251866308f6583b4e7fbc902ed6f14ea
Contents?: true
Size: 627 Bytes
Versions: 1
Compression:
Stored size: 627 Bytes
Contents
$:.unshift(File.dirname(__FILE__)) unless $:.include?(File.dirname(__FILE__)) || $:.include?(File.expand_path(File.dirname(__FILE__))) require 'mongo' require 'set' require 'magent/utils' require 'magent/channel' require 'magent/push' require 'magent/actor' require 'magent/processor' module Magent VERSION = '0.0.1' def self.connection @@connection ||= Mongo::Connection.new end def self.connection=(new_connection) @@connection = new_connection end def self.database=(name) @@database = Magent.connection.db(name) end def self.database @@database end end Magent.database = 'magent'
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
magent-0.0.1 | lib/magent.rb |