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 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
- You probably set environment variables on your production servers to store configuration options for these services. Yet 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.
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 when your application initializes.
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
- There are four simple options for use with the command line tool: **add**, **remove**, **clear** and **list**.
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
 
@@ -8,7 +8,7 @@ module Exportr
8
8
 
9
9
  config.before_initialize do
10
10
  if File.exists? config_file
11
- config = YAML.load(File.open(config_file)
11
+ config = YAML.load(File.open(config_file))
12
12
  config.each_pair { |key,value| ENV[key] = value } if config
13
13
  end
14
14
  end
@@ -1,3 +1,3 @@
1
1
  module Exportr
2
- VERSION = "0.2.5"
2
+ VERSION = "0.2.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: exportr
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.5
4
+ version: 0.2.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: