Sha256: b50cf3d826e6c061179f7636f9f3b7b0b84e12053d0cbf053cb952937c8ae2a0

Contents?: true

Size: 447 Bytes

Versions: 14

Compression:

Stored size: 447 Bytes

Contents

module Jets::Db ; end

# Thanks: https://makandracards.com/makandra/42521-detecting-if-a-ruby-gem-is-loaded
if File.exist?("#{Jets.root}config/database.yml")
  require "active_record"
  specs = Gem.loaded_specs
  require "mysql2" if specs.key?('mysql2')
  require "pg" if specs.key?('pg')
end

if File.exist?("#{Jets.root}config/dynamodb.yml")
  specs = Gem.loaded_specs
  specs.key?('dynomite')
  require "dynomite" if specs.key?('dynomite')
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
jets-1.6.1 lib/jets/db.rb
jets-1.6.0 lib/jets/db.rb
jets-1.5.10 lib/jets/db.rb
jets-1.5.9 lib/jets/db.rb
jets-1.5.8 lib/jets/db.rb
jets-1.5.7 lib/jets/db.rb
jets-1.5.6 lib/jets/db.rb
jets-1.5.5 lib/jets/db.rb
jets-1.5.4 lib/jets/db.rb
jets-1.5.3 lib/jets/db.rb
jets-1.5.2 lib/jets/db.rb
jets-1.5.1 lib/jets/db.rb
jets-1.5.0 lib/jets/db.rb
jets-1.4.11 lib/jets/db.rb