filterfish / smith2

A complete rewrite of Smith
12 stars 7 forks source link

Enable Dynamic Smith Config #20

Closed DylanGriffith closed 9 years ago

DylanGriffith commented 9 years ago

It would be useful to have a way of starting smith without needing a .smithrc. This would mean that require 'smith' would not raise if it couldn't find a '.smithrc', but perhaps could still try. A client may do something like:

require 'smith'
Smith.configure(my_smith_options)
filterfish commented 9 years ago

Smith now has a sensible default config and the rest can be set using environment variables. The only config that needs to be set are:

which can also be set using the environment variables:

respectively.