Skip to content

servicient/env_inquiry

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EnvInquiry

Use dot notation to access ENV vars. A handy companion to dotenv-* gems

EnvInquiry::Env.https_enabled? instead of ENV['HTTPS_ENABLED'] == 'true'

Installation

Add this line to your application's Gemfile:

gem 'env_inquiry'

And then execute:

$ bundle

Or install it yourself as:

$ gem install env_inquiry

In Rails (optional)

# auto-load in config/initializers/whatever.rb
require 'env_inquiry'
EnvInquiry::Env.inquire

Usage

require 'env_inquiry'

EnvInquiry::Env.inquire

EnvInquiry::Env.https_enabled?

# feel free to shorten in your app with something like:
EnvInq = EnvInquiry::Env
EnvInq.https_enabled?

Run Tests

$ bundle exec rspec spec

Contributing

  1. Fork it ( http://github.com/servicient/env_inquiry/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

About

Use dot notation to access ENV vars. A handy companion to dotenv-* gems

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages