Skip to content

Commit 4cf6a7b

Browse files
committed
Update README for installing on other ruby projects
1 parent eb405d7 commit 4cf6a7b

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,16 @@ set :root, File.dirname(__FILE__)
6464
register Config
6565
```
6666

67+
### Installing on other ruby projects
68+
69+
Add the gem to your `Gemfile` and run `bundle install` to install it.
70+
Then initialize `Config` manually within your configure block.
71+
72+
```ruby
73+
require 'config'
74+
Config.load_and_set_settings(Config.setting_files("/path/to/config_root", "your_project_environment"))
75+
```
76+
6777
It's also possible to initialize `Config` manually within your configure block if you want to just give it some yml
6878
paths to load from.
6979

0 commit comments

Comments
 (0)