freighthop 0.2.0 → 0.2.1
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.
- data/README.md +2 -0
- data/Vagrantfile +3 -3
- data/lib/freighthop/version.rb +1 -1
- data/lib/freighthop.rb +6 -0
- metadata +2 -2
data/README.md
CHANGED
|
@@ -26,6 +26,8 @@ With a few commands from the project root of any `{Ruby,Clojure}` web app, Freig
|
|
|
26
26
|
### Get the prerequisites
|
|
27
27
|
|
|
28
28
|
* Vagrant 1.3.1
|
|
29
|
+
* A little speed boost:
|
|
30
|
+
* `vagrant plugin install vagrant-cachier`
|
|
29
31
|
* And for DNS magic:
|
|
30
32
|
* `vagrant plugin install landrush`
|
|
31
33
|
* `vagrant landrush install`
|
data/Vagrantfile
CHANGED
|
@@ -13,7 +13,7 @@ Vagrant.configure('2') do |config|
|
|
|
13
13
|
config.landrush.enable
|
|
14
14
|
|
|
15
15
|
config.cache.auto_detect = true
|
|
16
|
-
config.cache.enable_nfs =
|
|
16
|
+
config.cache.enable_nfs = Freighthop.nfs?
|
|
17
17
|
|
|
18
18
|
config.vm.define Freighthop.app_name do |node_config|
|
|
19
19
|
node_config.vm.hostname = Freighthop.hostname
|
|
@@ -32,11 +32,11 @@ Vagrant.configure('2') do |config|
|
|
|
32
32
|
node_config.vm.synced_folder(
|
|
33
33
|
Freighthop.host_root,
|
|
34
34
|
Freighthop.guest_root,
|
|
35
|
-
nfs:
|
|
35
|
+
nfs: Freighthop.nfs?
|
|
36
36
|
)
|
|
37
37
|
|
|
38
38
|
Freighthop.mounts.each do |host, guest|
|
|
39
|
-
node_config.vm.synced_folder(host, guest, nfs:
|
|
39
|
+
node_config.vm.synced_folder(host, guest, nfs: Freighthop.nfs?)
|
|
40
40
|
end
|
|
41
41
|
|
|
42
42
|
node_config.vm.provision :shell, path: 'init/bootstrap_puppet_omnibus.sh'
|
data/lib/freighthop/version.rb
CHANGED
data/lib/freighthop.rb
CHANGED
|
@@ -31,6 +31,12 @@ module Freighthop
|
|
|
31
31
|
"#{app_name}.vagrant.dev"
|
|
32
32
|
end
|
|
33
33
|
|
|
34
|
+
# For now only use NFS on vmware to work around this issue:
|
|
35
|
+
# https://github.com/phinze/landrush/issues/17
|
|
36
|
+
def nfs?
|
|
37
|
+
vmware?
|
|
38
|
+
end
|
|
39
|
+
|
|
34
40
|
def box_url
|
|
35
41
|
if vmware?
|
|
36
42
|
'http://files.vagrantup.com/precise64_vmware.box'
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: freighthop
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.1
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2013-11-
|
|
12
|
+
date: 2013-11-22 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: bundler
|