Allow for configuration file
eamelink opened this issue · comments
I think the current script is not very handy. This is hardly easier than just loading sql files yourself. I propose the following user interface:
script list
This will show a list of all the test-data sets that are available. The output should also indicate if there are any 'destroy' scripts for that test-data set.
script load NAME
This will load the named test-data set.
script reset NAME
This will first destroy, and then load the named data set.
Note that there are no credentials or database names given, as these are stored in configuration files in each data set.
It would be useful however, to override the configured values, like this:
script load identities --database identities-test
This would load the data set 'identities' into the database 'identities-test'
Ruby ships with a YAML parser. I suppose that’s good enough as a configuration syntax.
Actually, since Chef uses JSON I think I am going to go with that instead.