Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow sequel command line tool to work with yaml config files with sy…
…mbol keys This commit will try the following in order to find the parameters to use: # Assume yaml_hash is the hash returned by YAML.load for the # file given on the command line, and env is the environment # specified by the user (or 'development' by default) params = yaml_hash[env] || yaml_hash[env.to_sym] || yaml_hash Notice that in addition to supporting symbol keys (such as :development), Sequel now also supports a plain yaml file for parameters, such as: --- :adapter: sqlite :database: ':memory:'
- Loading branch information