Exception: DrushDeploy::Database::FieldNotFound
- Defined in:
- lib/drush_deploy/database.rb
Instance Method Summary collapse
-
#initialize(key, site_name = 'default', db_name = 'default') ⇒ FieldNotFound
constructor
A new instance of FieldNotFound.
Constructor Details
#initialize(key, site_name = 'default', db_name = 'default') ⇒ FieldNotFound
Returns a new instance of FieldNotFound.
16 17 18 19 20 21 22 |
# File 'lib/drush_deploy/database.rb', line 16 def initialize(key,site_name = 'default',db_name = 'default') key = [key] unless key.is_a? Array key = key.map {|k| "'#{k}'"}.join(',') super "Couldn't find #{key} field#{key.size == 1 ? '' : 's'} in database configuration #{site_name}/#{db_name}."\ " Please check your database configuration." end |