This repository has been archived by the owner on Sep 19, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathGemfile
68 lines (56 loc) · 2.16 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
68
source 'http://rubygems.org'
source 'http://gems.hashicorp.com'
require 'fileutils'
embedded_locations = %w(/Applications/Vagrant/embedded /opt/vagrant/embedded)
embedded_locations.each do |p|
ENV['VAGRANT_INSTALLER_EMBEDDED_DIR'] = p if File.directory?(p)
end
unless ENV.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: 'git://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_gem = Gem::Specification.find_by_name('vagrant-vmware-fusion')
fusion_path = fusion_gem.gem_dir
fusion_license_path = File.join(
fusion_path,
'license-vagrant-vmware-fusion.lic'
)
fusion_license_vagrantd_path = File.join(
ENV['HOME'],
'.vagrant.d',
'license-vagrant-vmware-fusion.lic'
)
rgloader_local_path = File.join(fusion_path, 'rgloader')
rgloader_embedded_path = File.join(
ENV['VAGRANT_INSTALLER_EMBEDDED_DIR'],
'rgloader'
)
unless File.symlink?(rgloader_local_path)
$stderr.puts "Linking local 'rgloader' file to embedded installer"
FileUtils.ln_s(rgloader_embedded_path, rgloader_local_path)
end
unless File.symlink?(fusion_license_path)
$stderr.puts 'Linking your license file for vmware plugin'
FileUtils.ln_s(fusion_license_vagrantd_path, fusion_license_path)
end
end
end
group :plugins do
gem 'vagrant-vmware-fusion'
gem 'vagrant-cucumber', path: '.'
gem 'to_regexp'
gem 'cucumber'
end