Sha256: b3e2c2f4bca49a168349591ed108b11e8db33e3424af891eb10d38d4de4e9c15

Contents?: true

Size: 661 Bytes

Versions: 28

Compression:

Stored size: 661 Bytes

Contents

#!/usr/bin/env ruby
require_relative "bundler_patch"

platforms = ARGV.shift
platforms = platforms.split(" ").map { |p| Gem::Platform.new(p) }
Gem::Platform.instance_eval { @local = platforms.last }
old_platforms = Gem.platforms
Gem.platforms = platforms
puts "bundle-platform set Gem.platforms to #{Gem.platforms.map { |p| p.to_s }} (was #{old_platforms.map { |p| p.to_s }})"

desired_version = ARGV.shift.delete("_")

# 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", desired_version)

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
chef-12.22.5 tasks/bin/bundle-platform
chef-12.22.5-universal-mingw32 tasks/bin/bundle-platform
chef-12.22.3 tasks/bin/bundle-platform
chef-12.22.3-universal-mingw32 tasks/bin/bundle-platform
chef-12.21.31 tasks/bin/bundle-platform
chef-12.21.31-universal-mingw32 tasks/bin/bundle-platform
chef-12.21.26 tasks/bin/bundle-platform
chef-12.21.26-universal-mingw32 tasks/bin/bundle-platform
chef-12.21.20-universal-mingw32 tasks/bin/bundle-platform
chef-12.21.20 tasks/bin/bundle-platform
chef-12.21.14-universal-mingw32 tasks/bin/bundle-platform
chef-12.21.14 tasks/bin/bundle-platform
chef-12.21.12-universal-mingw32 tasks/bin/bundle-platform
chef-12.21.12 tasks/bin/bundle-platform
chef-12.21.10 tasks/bin/bundle-platform
chef-12.21.10-universal-mingw32 tasks/bin/bundle-platform
chef-12.21.4 tasks/bin/bundle-platform
chef-12.21.4-universal-mingw32 tasks/bin/bundle-platform
chef-12.21.1-universal-mingw32 tasks/bin/bundle-platform
chef-12.21.1 tasks/bin/bundle-platform