Class: Yoker::Detectors::DatabaseDetector
- Inherits:
-
Object
- Object
- Yoker::Detectors::DatabaseDetector
- Defined in:
- lib/yoker/detectors/database_detector.rb
Class Method Summary collapse
Class Method Details
.detect ⇒ Object
6 7 8 9 10 11 12 13 |
# File 'lib/yoker/detectors/database_detector.rb', line 6 def self.detect return "postgresql" if gemfile_includes?("pg") return "mysql" if gemfile_includes?("mysql2") return "sqlite3" if gemfile_includes?("sqlite3") # Check database.yml detect_from_database_yml end |