exportr 0.2.5 → 0.2.6
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +23 -6
- data/lib/exportr/railtie.rb +1 -1
- data/lib/exportr/version.rb +1 -1
- metadata +1 -1
data/README.md
CHANGED
@@ -4,11 +4,11 @@
|
|
4
4
|
|
5
5
|
Managing environment variables locally is kind of a drag. If you only build one application at a time, you *could* simply export environment variables in your .bashrc. But in reality you're working on 5 apps at a time, each requiring different settings for Facebook, Google, AmazonS3, etc.
|
6
6
|
|
7
|
-
|
7
|
+
If you set environment variables on your production servers to store configuration options for these services, you might also hard code 'default' options to fall back to on your local machine. Hardcoding default configuation options, especially private keys and passwords for third party apis is an *insane* security risk.
|
8
8
|
|
9
9
|
**Problem solved**.
|
10
10
|
|
11
|
-
Exportr helps you manage local environment variables. Each set is scoped to a specific rails application in `config/exportr.yml`. The file is 'git ignored' when created, so it never leaves your machine. Its key:value pairs are loaded as environment variables
|
11
|
+
Exportr helps you manage *local* environment variables. Each set is scoped to a specific rails application in `config/exportr.yml`. The file is 'git ignored' when created, so it never leaves your machine. Its key:value pairs are loaded as environment variables right before your application initializes.
|
12
12
|
|
13
13
|
### Setup
|
14
14
|
|
@@ -28,16 +28,33 @@ The generator creates a yaml file in your config directory. It will store key:va
|
|
28
28
|
|
29
29
|
### CLI
|
30
30
|
|
31
|
-
|
32
|
-
You can use flags longform `--add, --remove, --clear, --list` or shorhand `-a, -r, -c, -l`.
|
31
|
+
You can edit the yaml config file directly, or use the handy CLI. There are several simple options for managing your configuration.
|
32
|
+
You can use flags longform *e.g.* `--add, --remove, --clear, --list` or shorhand *e.g.* `-a, -r, -c, -l`.
|
33
|
+
|
34
|
+
**Add**
|
33
35
|
|
34
36
|
$ exportr --add KEY=VALUE
|
35
37
|
|
38
|
+
**Remove**
|
39
|
+
|
36
40
|
$ exportr --remove KEY
|
37
|
-
|
41
|
+
|
42
|
+
**Clear**
|
43
|
+
|
38
44
|
$ exportr --clear
|
39
|
-
|
45
|
+
|
46
|
+
**List**
|
47
|
+
|
40
48
|
$ exportr --list
|
49
|
+
|
50
|
+
**Version**
|
51
|
+
|
52
|
+
$ exportr --version
|
53
|
+
|
54
|
+
**Help**
|
55
|
+
|
56
|
+
$ exportr --help
|
57
|
+
|
41
58
|
|
42
59
|
### FYI
|
43
60
|
|
data/lib/exportr/railtie.rb
CHANGED
data/lib/exportr/version.rb
CHANGED