envred 0.3.1 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 98d4243dae6c5ecaec48e08176b356ff1f6effd3
4
- data.tar.gz: 18a7d93607ddd5e1018dcfdaf74f54e98a071b00
3
+ metadata.gz: f969d03ca8ecbd56ad911934664988b078a364b6
4
+ data.tar.gz: 0a7f11ecffb202d8a64b27bd93bbaf6dbcdcaff7
5
5
  SHA512:
6
- metadata.gz: 48ce0bbacc58881b8a1944897eb0916b6da5c0c09e990a93c78ccff1eecfb02e8207ed4a1132a05c627d41708dd0fce0bfe4834b96ad52077e9517097af1d86f
7
- data.tar.gz: 88f41927e507c9a030c767f2ee5c25625404c08fc1fc2a911e5c4784afd4ffa578941f534d99536b29b0b8a7154bd053c1cd5a3abacc2805f3c2423868416ac5
6
+ metadata.gz: 89704e95d64345c114b54720f114be367adff9b8498b372af3b6766eb0e596abeb8d4818c72ecddf696cfdc9d21e97f1ec903824514daf5361e00745e329c71c
7
+ data.tar.gz: efd3654916d8516a22f5bcdca3a11bb7ff8e4fd43a3c68f2b81f6859ea39be27643e87b3ae8e1684ccf585f1e7c38fdb0590b2013b28b7f94a490dd441b10d56
data/README.md CHANGED
@@ -1,12 +1,12 @@
1
1
  # envred
2
2
 
3
- **Environment config loader backed by Redis**
3
+ **Environment config loader backed by Redis.**
4
4
 
5
5
  ![Build Status](https://app.wercker.com/status/0aa6c6c8ed8cd84fb608604ae7dc7604/s/)
6
6
 
7
- This is a simple tool in flavor of `envdir` from daemontools package. Instead of
8
- loading environment from directory, it loads it for redis hash specified in
9
- the central url. See examples section for details.
7
+ This is a simple tool in flavor of [envdir](http://cr.yp.to/daemontools/envdir.html) from
8
+ daemontools package. Instead of loading environment from directory, it loads it for redis hash
9
+ specified in the central url. See examples section for details.
10
10
 
11
11
  ## Installation
12
12
 
@@ -29,17 +29,19 @@ Now you can run any application with environment loaded from Redis server:
29
29
 
30
30
  To list all your variables use:
31
31
 
32
- $ envred -c localhost:6379/0~myapp list
32
+ $ envred -c localhost:6379/0 -a myapp list
33
33
 
34
34
  You can remove specific keys or purge all config:
35
35
 
36
36
  $ envred -c localhost:6379/0 -a myapp unset FOO BAR
37
37
  $ envred -c localhost:6379/0 -a myapp purge
38
38
 
39
- Note! Instead of specifying central url all the time, you can store it in
40
- `ENVRED_CENTRAL` env variable:
39
+ Note! Instead of specifying central url all the time, you can store it
40
+ in `ENVRED_CENTRAL_URL` env variable. Analogically, you can do the same with app
41
+ name by providing `ENVRED_APP_NAME`:
41
42
 
42
- $ export ENVRED_CENTRAL=localhost:6379/0
43
+ $ export ENVRED_CENTRAL_URL=localhost:6379/0
44
+ $ export ENVRED_APP_NAME=myapp
43
45
 
44
46
  ## Hacking
45
47
 
data/bin/envred CHANGED
@@ -9,10 +9,10 @@ include GLI::App
9
9
  program_desc "Environment configuration backed with Redis."
10
10
 
11
11
  desc "The URL of central env server."
12
- flag [:c, :central], :default_value => ENV['ENVRED_CENTRAL']
12
+ flag [:c, :central], :default_value => ENV['ENVRED_CENTRAL_URL']
13
13
 
14
14
  desc "The name of the app."
15
- flag [:a, :app]
15
+ flag [:a, :app], :default_value => ENV['ENVRED_APP_NAME']
16
16
 
17
17
  pre do |globals, command, options, args|
18
18
  unless globals[:app]
@@ -1,3 +1,3 @@
1
1
  class Envred
2
- VERSION = "0.3.1"
2
+ VERSION = "0.4.0"
3
3
  end
@@ -1,6 +1,6 @@
1
1
  box: wercker/rvm
2
2
  services:
3
- - wercker/redis@0
3
+ - wercker/redis@0.0.8
4
4
  build:
5
5
  steps:
6
6
  - rvm-use:
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: envred
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kris Kovalik
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-03-25 00:00:00.000000000 Z
11
+ date: 2014-03-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler