OCIConfigReader
A simple gem to read data from oci config file. So in Ruby sample codes you don't need to write down/copy-paste the same information again-and-again.
Installation
Add this line to your application's Gemfile:
gem 'oci_config_reader'And then execute:
$ bundle install
Or install it yourself as:
$ gem install oci_config_reader
Usage
The gem will try to read the data from: ~/.oci/config
user = OciConfigReader.oci_config_data["user"]
fingerprint = OciConfigReader.oci_config_data["fingerprint"]
key_file = OciConfigReader.oci_config_data["key_file"]
tenancy = OciConfigReader.oci_config_data["tenancy"]Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/kicsipixel/oci_config_reader.
License
The gem is available as open source under the terms of the MIT License.