blob: 7c77393cb13e5c3f6558a50bec97c0397ef01958 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#!/usr/bin/env ruby
platforms = ARGV.shift
old_platforms = Gem.platforms
Gem.platforms = platforms.split(" ").map { |p| Gem::Platform.new(p) }
puts "bundle-platform set Gem.platforms to #{Gem.platforms.map { |p| p.to_s }} (was #{old_platforms.map { |p| p.to_s } })"
# The rest of this is a normal bundler binstub
require "pathname"
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../../Gemfile",
Pathname.new(__FILE__).realpath)
require "rubygems"
load Gem.bin_path("bundler", "bundle")
|