New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

confit

Package Overview
Dependencies
Maintainers
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

confit

  • 1.1.0
  • Rubygems
  • Socket score

Version published
Maintainers
2
Created
Source

N.B. Confit 1.0 breaks backwards-compatibility with earlier versions!

Installation

  • sudo gem install confit

Initialization

  • require 'confit' confit('path/to/file_name.yml')

Usage

  • puts confit.file_name.some_key # "The value of this key!"

Notes

  • Optional initialization params include environment, strict mode, and force reload of file
  • confit('path/to/file_name.yml', 'development', true, true) # confit.file_name.key_name -- from the yaml block named "development"
  • Strict mode raises a MissingVariableError if that key hasn't been loaded from your yaml file.
  • Force reload ensures that the file is processed, even if Confit has already seen it before. This is useful for loading multiple environments at different times from within one file.

FAQs

Package last updated on 02 Aug 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc