Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dylanlacey/glasshouse
Control the environment your code runs in
https://github.com/dylanlacey/glasshouse
Last synced: about 6 hours ago
JSON representation
Control the environment your code runs in
- Host: GitHub
- URL: https://github.com/dylanlacey/glasshouse
- Owner: DylanLacey
- Created: 2015-11-22T06:13:54.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-02-05T06:19:11.000Z (almost 9 years ago)
- Last Synced: 2023-03-12T06:43:50.021Z (over 1 year ago)
- Language: Ruby
- Size: 6.84 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Glasshouse
Have a known ENV for running code. Grow the lushest code and juciest methods.
## Usage
### Grow new environment variables for a short time
```ruby
ENV[:tomatoes] #=> nil
Glasshouse.plant {:tomatoes => 'delicious'} do
ENV[:tomatoes] #=> 'delicious'
end
ENV[:tomatoes] #=> nil
```### Remove an environment variable for a short time
```ruby
ENV[:peppers] #=> 'awful'Glasshouse.prune :peppers do
ENV[:peppers] #=> nil
endENV[:peppers] #=> 'awful'
```## Installation
Add this line to your application's Gemfile:
```ruby
gem 'glasshouse'
```And then execute:
$ bundle
Or install it yourself as:
$ gem install glasshouse
## Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/glasshouse. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](contributor-covenant.org) code of conduct.