Sha256: 2a3cef83158b88986d028417d0da6ca0dac6cfbe9c0789e200ae6b03a980c5ae

Contents?: true

Size: 766 Bytes

Versions: 5

Compression:

Stored size: 766 Bytes

Contents

require 'active_support'
require 'keymap/version'

module Keymap

  extend ActiveSupport::Autoload

  eager_autoload do
    autoload :KeymapError, 'keymap/errors'
    autoload :ConnectionNotEstablished, 'keymap/errors'
    autoload :ConnectionAdapters, 'keymap/connection_adapters/abstract_adapter'
    autoload :Base
  end

  module ConnectionAdapters
    extend ActiveSupport::Autoload

    eager_autoload do
      autoload :AbstractAdapter
      autoload :ConnectionManagement, 'keymap/connection_adapters/abstract/connection_pool'
    end
  end

  def env
    @_env ||= ActiveSupport::StringInquirer.new(ENV["KEYMAP_ENV"] || ENV["KEYMAP_ENV"] || "development")
  end

  def env=(environment)
    @_env = ActiveSupport::StringInquirer.new(environment)
  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
keymap-0.3.2 lib/keymap.rb
keymap-0.3.1 lib/keymap.rb
keymap-0.3.0 lib/keymap.rb
keymap-0.2.0 lib/keymap.rb
keymap-0.1.0 lib/keymap.rb