module Database
Public Class Methods
factory(application)
click to toggle source
# File lib/capistrano-db-pull/database.rb, line 2 def self.factory application if application.postgresql? Database::PostgreSQL.new elsif application.sqlite3? Database::SQLite3.new elsif application.mysql? Database::MySQL.new else raise 'Not implemented' end end