rails_enterprise_setup 0.1.5 → 0.1.6
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 +16 -6
- data/lib/generators/db_credentials/db_credentials_generator.rb +2 -3
- data/lib/rails_setup/version.rb +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: 3dc5eb3ece3b47fba3eac50e446f23a22573ac78
|
4
|
+
data.tar.gz: dc512681cbcaa33b38593a4ccee73a342418c6b1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d8642f441ddec3de6052a5709dcb50dbd629b873b8e6c8994fcb992fa6ddf56ea244b342674be7e90fbfcc1073def2791d969cddeacfd42c2971ba94ce3abe65
|
7
|
+
data.tar.gz: 50d77ff4cfa2146934e77b2dca9991acd5b975502e4d86ea376c30f3903859f3d57b0d8fa5856c952c3afe1c6c4d789d54aeb8b46f347613f5dd2996d9efa235
|
data/README.md
CHANGED
@@ -12,21 +12,31 @@ gem 'rails_enterprise_setup'
|
|
12
12
|
|
13
13
|
And then execute:
|
14
14
|
|
15
|
-
$ bundle
|
16
|
-
|
17
|
-
Or install it yourself as:
|
18
|
-
|
19
|
-
$ gem install rails_setup
|
15
|
+
$ bundle install
|
20
16
|
|
21
17
|
## Usage
|
22
18
|
|
23
19
|
```ruby
|
24
20
|
rails generate setup_rails
|
25
21
|
```
|
26
|
-
|
22
|
+
|
23
|
+
You will have the option of choosing all or any of the setups:
|
24
|
+
|
25
|
+
```ruby
|
26
|
+
all[Aa]:
|
27
|
+
db_connect[Cc]:
|
28
|
+
db_credentials[Rr]:
|
29
|
+
ssl_mode[Ss]:
|
30
|
+
none[]:
|
31
|
+
```
|
27
32
|
|
28
33
|
Note: You can enter more then 1 letter.
|
29
34
|
|
35
|
+
e.g.
|
36
|
+
"What setup would you like to run. (Default: none)[AaCcRsSs]:" cr
|
37
|
+
|
38
|
+
typing 'cr' will run db_connect and db_credentials sequentially. running 'crs' will be the same as 'a'
|
39
|
+
|
30
40
|
## More Info
|
31
41
|
|
32
42
|
```ruby
|
@@ -17,8 +17,7 @@ class DbCredentialsGenerator < Rails::Generators::NamedBase
|
|
17
17
|
# username: ...
|
18
18
|
# password: ...
|
19
19
|
#
|
20
|
-
#{Rails.env}:
|
21
|
-
#{file_name}:
|
20
|
+
#{file_name}_#{Rails.env}:
|
22
21
|
home_path: "#{Dir.home}"
|
23
22
|
username: "config/passwords/#{Rails.env}_#{file_name}_username.txt"
|
24
23
|
password: "config/passwords/#{Rails.env}_#{file_name}_password.txt"
|
@@ -27,7 +26,7 @@ class DbCredentialsGenerator < Rails::Generators::NamedBase
|
|
27
26
|
else
|
28
27
|
unless File.open('config/database_credentials.yml').read().include? "#{file_name}:"
|
29
28
|
inject_into_file 'config/database_credentials.yml',"
|
30
|
-
#{file_name}:
|
29
|
+
#{file_name}_#{Rails.env}:
|
31
30
|
home_path: \"#{Dir.home}\"
|
32
31
|
username: \"config/passwords/#{Rails.env}_#{file_name}_username.txt\"
|
33
32
|
password: \"config/passwords/#{Rails.env}_#{file_name}_password.txt\"
|
data/lib/rails_setup/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails_enterprise_setup
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mikhli, Uri
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-06-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|