No commit activity in last 3 years
No release in over 3 years
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.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies
 Project Readme

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.