You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

exportr

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

exportr

0.4.4
bundlerRubygems
Version published
Maintainers
1
Created
Source

Exportr: An environment manager for Ruby development

Description

Exportr is a simple environment variable manager for Ruby development. It reads key-value pairs from a yaml file and merges these pairs into Ruby's ENV hash when you require 'exportr'.

The yaml file must be in one of Exportr's predefined locations. The paths are relative to the present working directory of the Ruby process. (The list will grow as Exportr is tested in various frameworks.)

/exportr.yml
/config/exportr.yml

Basic Usage

Install the gem.

$ gem install exportr

Create an exportr.yml file in one of the predefined locations.

Require the gem.

require 'exportr'

Rails

Exportr comes with a rails generator that will create config/exportr.yml and add it to your .gitignore file.

Add the gem to your Gemfile

group :development do
  gem 'exportr'
end   

Run bundle install.

$ bundle install

Start your app server.

$ rails server

Notes

You will need to restart your server/ruby process after changing the yaml file. You can optionally manually load additions to the yaml file by calling Exportr.export.

FAQs

Package last updated on 02 Oct 2013

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