Skip to content

Commit 3df3ebb

Browse files
authored
Merge pull request #151 from inouetakuya/readme-about-installing-on-other-ruby-projects
Update README for installing on other ruby projects
2 parents eb405d7 + f24159b commit 3df3ebb

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,15 @@ 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+
Config.load_and_set_settings(Config.setting_files("/path/to/config_root", "your_project_environment"))
74+
```
75+
6776
It's also possible to initialize `Config` manually within your configure block if you want to just give it some yml
6877
paths to load from.
6978

0 commit comments

Comments
 (0)