rails_enterprise_setup 0.1.4 → 0.1.5
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 -1
- data/lib/generators/db_connect/USAGE +4 -4
- data/lib/generators/db_credentials/USAGE +1 -1
- data/lib/generators/setup_rails/USAGE +17 -6
- data/lib/rails_setup/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3fdc53f0b9ee602b9feab79c8fefb9ce60f38a8d
|
4
|
+
data.tar.gz: 5e6cc11d8f0d591abeeeb44b8d82bac0b7f4c180
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 404af4aa77dfd56d6a868bedc59c6eb138aa71efb0f7835adf8265df844041174c74cdd305f6335c894fd5a185d2bb44fa46d1fea3a89d25adaf0f638dbb77b2
|
7
|
+
data.tar.gz: 77053c6d1a189dcc6cdd812ec8a2f27879ca5d1b73c061396c66ab78a5ef7471b80205b5a8accc5fee9818125c56b3dc763015f2192db35ca257a571f7eeca63
|
data/README.md
CHANGED
@@ -23,10 +23,19 @@ Or install it yourself as:
|
|
23
23
|
```ruby
|
24
24
|
rails generate setup_rails
|
25
25
|
```
|
26
|
-
Follow directions.
|
26
|
+
Follow the directions.
|
27
27
|
|
28
28
|
Note: You can enter more then 1 letter.
|
29
29
|
|
30
|
+
## More Info
|
31
|
+
|
32
|
+
```ruby
|
33
|
+
rails generate setup_rails -h
|
34
|
+
|
35
|
+
rails generate db_connect -h
|
36
|
+
rails generate db_credentials -h
|
37
|
+
rails generate ssl_mode -h
|
38
|
+
```
|
30
39
|
|
31
40
|
## Contributing
|
32
41
|
|
@@ -2,12 +2,12 @@ Description:
|
|
2
2
|
generates an abstract Database connection class that acts as the interface to the given database
|
3
3
|
|
4
4
|
Example:
|
5
|
-
$ rails generate
|
5
|
+
$ rails generate db_connect <Name of Database>
|
6
6
|
|
7
7
|
This will create:
|
8
|
-
create app/models
|
8
|
+
create app/models/name_of_database_db.rb
|
9
9
|
-----
|
10
|
-
class
|
10
|
+
class NameOfDatabaseDb < ActiveRecord::Base
|
11
11
|
self.abstract_class = true
|
12
12
|
...
|
13
13
|
-----
|
@@ -18,6 +18,6 @@ Example:
|
|
18
18
|
-----
|
19
19
|
rails model: app/models/some_table.rb
|
20
20
|
-----
|
21
|
-
class SomeTable <
|
21
|
+
class SomeTable < NameOfDatabaseDb
|
22
22
|
...
|
23
23
|
-----
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Description:
|
2
2
|
Create a database credentials yml file that holds the path to the username and password files.
|
3
|
-
Create an initializer that adds the
|
3
|
+
Create an initializer that adds the credentials to ActiveRecord.
|
4
4
|
Example:
|
5
5
|
rails generate db_credentials database_name
|
6
6
|
|
@@ -3,12 +3,23 @@ Description:
|
|
3
3
|
Generators invoked:
|
4
4
|
* db_connect
|
5
5
|
* db_credentials
|
6
|
-
* ssl_mode
|
7
|
-
|
8
|
-
You will have the option of choosing all or any of the setups.
|
6
|
+
* ssl_mode
|
9
7
|
|
10
|
-
|
11
|
-
rails generate
|
8
|
+
For more info on each generator run:
|
9
|
+
rails generate db_connect -h
|
10
|
+
rails generate db_credentials -h
|
11
|
+
rails generate ssl_mode -h
|
12
12
|
|
13
|
-
|
13
|
+
Usage:
|
14
|
+
You will have the option of choosing all or any of the setups:
|
15
|
+
all[Aa]:
|
16
|
+
db_connect[Cc]:
|
17
|
+
db_credentials[Rr]:
|
18
|
+
ssl_mode[Ss]:
|
19
|
+
none[]:
|
14
20
|
|
21
|
+
You can pick more then one setup:
|
22
|
+
|
23
|
+
"What setup would you like to run. (Default: none)[AaCcRsSs]:" cr
|
24
|
+
|
25
|
+
Typing 'cr' would run both db_connect and db_credentials sequentially
|
data/lib/rails_setup/version.rb
CHANGED