This repository has been archived by the owner on Jan 15, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 12
/
Gemfile
67 lines (50 loc) · 2.06 KB
/
Gemfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
ruby '2.3.4'
source "http://rubygems.org"
source "http://gems.hashicorp.com"
require 'fileutils'
embedded_locations = %w{/Applications/Vagrant/embedded /opt/vagrant/embedded C:\\HashiCorp\Vagrant\embedded}
embedded_locations.each do |p|
if File.directory?(p)
ENV["VAGRANT_INSTALLER_EMBEDDED_DIR"] = p
end
end
unless ENV.has_key?('VAGRANT_INSTALLER_EMBEDDED_DIR')
$stderr.puts "Couldn't find a packaged install of vagrant, and we need this"
$stderr.puts "in order to make use of the RubyEncoder libraries."
$stderr.puts "I looked in:"
embedded_locations.each do |p|
$stderr.puts " #{p}"
end
end
group :development do
# We depend on Vagrant for development, but we don't add it as a
# gem dependency because we expect to be installed within the
# Vagrant environment itself using `vagrant plugin`.
gem "vagrant", :git => "https://github.com/mitchellh/vagrant.git"
gem "rake"
if ENV['VAGRANT_DEFAULT_PROVIDER'] == 'vmware_fusion'
# Jump through annoying hoops so we can use this plugin in the
# bundler environment.
fusion_path = Gem::Specification.find_by_name('vagrant-vmware-fusion').gem_dir
unless File.symlink?( File.join( fusion_path, 'rgloader' ) )
$stderr.puts "Linking local 'rgloader' file to embedded installer"
FileUtils.ln_s(
File.join( ENV["VAGRANT_INSTALLER_EMBEDDED_DIR"], 'rgloader' ),
File.join( fusion_path, 'rgloader' )
)
end
unless File.symlink?( File.join( fusion_path, 'license-vagrant-vmware-fusion.lic' ) )
$stderr.puts "Linking your license file for vmware plugin"
FileUtils.ln_s(
File.join( ENV["HOME"], '.vagrant.d', 'license-vagrant-vmware-fusion.lic' ),
File.join( fusion_path, 'license-vagrant-vmware-fusion.lic' )
)
end
end
end
group :plugins do
gem "vagrant-multiprovider-snap", path: "."
if ENV['VAGRANT_DEFAULT_PROVIDER'] == 'vmware_fusion'
gem "vagrant-vmware-fusion"
end
end