Environment
Environment variables in are not available to scripts running as crons and/or services. This gem allows ruby scripts running as a cron and/or as a service full access to the system environment variables.
Installation
# gem install environment
Usage
The global constant ENV is left untouched. A constant Environment::ENV is available; Environment::ENV is a Hash and so all hash operations can be run on it.
Example usage:
require "rubygems"
require "environment"
path = Environment::ENV['PATH']