crane_rails 0.2.3 → 0.2.4
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/Gemfile.lock +1 -1
- data/README.md +18 -10
- data/features/generator.feature +5 -3
- data/lib/crane_rails/templates/Vagrantfile +1 -1
- data/lib/crane_rails/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: b148e9e2d83ab78509c6bc21278578acf01cbf6b
|
4
|
+
data.tar.gz: 08ec3c1de4b045b8e07363465ab4e6dcd1504db9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2b1476ec69278ac3a8c012946c979db563d9d46f46e2ab87965314f25f7b6d1266cd64a149a1714fc201f3d972802ca01bf955cbb3e7b3eaa6cc3625bed81d42
|
7
|
+
data.tar.gz: f59c87e23be3ca8112ff6ccbb950faab41690dea62a3947f9caf84d95d1d0b30476cd5199cdc2936a44e28ca73285f35601a8b73e3f7f9e212a1645a7f750b99
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -1,27 +1,35 @@
|
|
1
1
|
# Crane::Rails
|
2
2
|
|
3
|
-
##
|
4
|
-
|
5
|
-
Add this line to your application's Gemfile:
|
6
|
-
|
7
|
-
gem 'crane_rails'
|
3
|
+
## Prerequisites
|
8
4
|
|
9
|
-
|
5
|
+
This gem makes the assumption you have the following installed:
|
10
6
|
|
11
|
-
|
7
|
+
* Virtualbox
|
8
|
+
* Vagrant
|
9
|
+
* Tmuxinator
|
12
10
|
|
13
|
-
|
11
|
+
## Installation
|
14
12
|
|
15
|
-
|
13
|
+
```
|
14
|
+
gem install crane_rails
|
15
|
+
```
|
16
|
+
There is really no point in adding this gem to your gemfile as it will override your current Gemfile
|
16
17
|
|
17
18
|
## Usage
|
18
19
|
|
19
20
|
Run this command in a rails project
|
21
|
+
|
20
22
|
```
|
21
23
|
rails g crane:bootstrap
|
22
24
|
```
|
23
25
|
|
24
|
-
|
26
|
+
Next comes Tmuxinator
|
27
|
+
|
28
|
+
```
|
29
|
+
mv tmuxinator-sample.yml ~/.tmuxinator/rails.yml
|
30
|
+
tmuxinator start rails
|
31
|
+
```
|
32
|
+
|
25
33
|
|
26
34
|
## Contributing
|
27
35
|
|
data/features/generator.feature
CHANGED
@@ -7,9 +7,11 @@ Feature: Generating Config Files
|
|
7
7
|
When I run `crane_rails bootstrap`
|
8
8
|
Then the file "Vagrantfile" should contain:
|
9
9
|
"""
|
10
|
-
|
11
|
-
|
12
|
-
|
10
|
+
config.vm.provision 'docker' do |d|
|
11
|
+
d.run 'shicholas/postgresql', args: '-d --name=pg'
|
12
|
+
d.pull_images 'shicholas/rails-server'
|
13
|
+
d.pull_images 'shicholas/rails-guard'
|
14
|
+
end
|
13
15
|
"""
|
14
16
|
Then the file "Gemfile" should contain:
|
15
17
|
"""
|
@@ -6,7 +6,7 @@ Vagrant.configure('2') do |config|
|
|
6
6
|
config.vm.network 'forwarded_port', guest: 3000, host: 3000
|
7
7
|
|
8
8
|
config.vm.provision 'docker' do |d|
|
9
|
-
d.run 'shicholas/postgresql', args: '-d
|
9
|
+
d.run 'pg', image: 'shicholas/postgresql', args: '-d'
|
10
10
|
d.pull_images 'shicholas/rails-server'
|
11
11
|
d.pull_images 'shicholas/rails-guard'
|
12
12
|
end
|
data/lib/crane_rails/version.rb
CHANGED