lib/freighthop.rb in freighthop-0.2.1 vs lib/freighthop.rb in freighthop-0.3.0
- old
+ new
@@ -1,6 +1,7 @@
require 'pathname'
+require 'json'
require_relative 'freighthop/version'
require_relative 'freighthop/config'
require_relative 'freighthop/cli'
require_relative 'freighthop/vagrant_env'
@@ -32,10 +33,14 @@
end
# For now only use NFS on vmware to work around this issue:
# https://github.com/phinze/landrush/issues/17
def nfs?
- vmware?
+ if ENV.key? 'FREIGHTHOP_NFS'
+ ['1','true','on'].include?(ENV['FREIGHTHOP_NFS'])
+ else
+ vmware?
+ end
end
def box_url
if vmware?
'http://files.vagrantup.com/precise64_vmware.box'