Exception: DrushDeploy::Database::FieldNotFound

Inherits:
Error
  • Object
show all
Defined in:
lib/drush_deploy/database.rb

Instance Method Summary collapse

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