Sha256: ec85e96472fd9b649b44a1481d8736550a9b01228a5ce7ecfa37dd4611b6a8be

Contents?: true

Size: 662 Bytes

Versions: 12

Compression:

Stored size: 662 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

12 entries across 12 versions & 1 rubygems

Version Path
chef-12.17.44-universal-mingw32 tasks/bin/bundle-platform
chef-12.17.44 tasks/bin/bundle-platform
chef-12.16.42 tasks/bin/bundle-platform
chef-12.16.42-universal-mingw32 tasks/bin/bundle-platform
chef-12.15.19 tasks/bin/bundle-platform
chef-12.15.19-universal-mingw32 tasks/bin/bundle-platform
chef-12.14.89-universal-mingw32 tasks/bin/bundle-platform
chef-12.14.89 tasks/bin/bundle-platform
chef-12.14.77-universal-mingw32 tasks/bin/bundle-platform
chef-12.14.77 tasks/bin/bundle-platform
chef-12.14.60-universal-mingw32 tasks/bin/bundle-platform
chef-12.14.60 tasks/bin/bundle-platform