Sha256: 0067fa4bd67f2fe6911fa1cf085b7b99285381b665abb0bc6a2cbba4628a851a
Contents?: true
Size: 441 Bytes
Versions: 5
Compression:
Stored size: 441 Bytes
Contents
require "redis" require "pp" module Ampere @@connection = nil def self.connect(options = {}) @@connection = Redis.connect(options) end def self.disconnect return unless connected? @@connection.quit @@connection = nil end def self.connected? !! @@connection end def self.connection @@connection end end Dir[File.join(File.dirname(__FILE__), 'ampere', '**', '*.rb')].each {|f| require f}
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
ampere-1.1.0 | lib/ampere.rb |
ampere-1.0.0 | lib/ampere.rb |
ampere-0.1.3 | lib/ampere.rb |
ampere-0.1.2 | lib/ampere.rb |
ampere-0.1.0 | lib/ampere.rb |