envred 0.3.1 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +10 -8
- data/bin/envred +2 -2
- data/lib/envred/version.rb +1 -1
- data/wercker.yml +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f969d03ca8ecbd56ad911934664988b078a364b6
|
4
|
+
data.tar.gz: 0a7f11ecffb202d8a64b27bd93bbaf6dbcdcaff7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|

|
6
6
|
|
7
|
-
This is a simple tool in flavor of
|
8
|
-
loading environment from directory, it loads it for redis hash
|
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
|
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
|
40
|
-
`
|
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
|
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['
|
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]
|
data/lib/envred/version.rb
CHANGED
data/wercker.yml
CHANGED
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.
|
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-
|
11
|
+
date: 2014-03-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|