Apollo-Ruby
🚀Ruby client for ctrip/apollo (https://github.com/apolloconfig/apollo)
Installation
Install the gem and add to the Rails application's Gemfile by executing:
$ bundle add apollo-ruby
If bundler is not being used to manage dependencies, install the gem by executing:
$ gem install apollo-ruby
Usage
You'll need to configure it in config/initializers/apollo.rb:
Apollo.configure do |config|
config.appid = ENV['APOLLO_APPID']
config.secret = ENV['APOLLO_SECRET']
config.server = ENV['APOLLO_SERVER']
end
Then you can get the configuration from Apollo using the following code:
Apollo.fetch("your configuration key")
Contributing
- Fork it
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Added some feature')
- Push to the branch (git push origin my-new-feature)
- Create new Pull Request
License
The gem is available as open source under the terms of the MIT License.
Changelog
See the CHANGELOGS.md.