Sha256: 3630a4b6c2c620b0c9eeaa8ec6ebaef79a95bcf30560ce1fe6671ff3f3a555b9

Contents?: true

Size: 629 Bytes

Versions: 16

Compression:

Stored size: 629 Bytes

Contents

#!/usr/bin/env ruby

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

16 entries across 16 versions & 2 rubygems

Version Path
chef-dk-1.6.11 tasks/bin/bundle-platform
chef-dk-1.6.1 tasks/bin/bundle-platform
chef-dk-1.5.0 tasks/bin/bundle-platform
chef-dk-1.4.3 tasks/bin/bundle-platform
chef-dk-1.3.43 tasks/bin/bundle-platform
chef-dk-1.3.40 tasks/bin/bundle-platform
chef-12.13.37-universal-mingw32 tasks/bin/bundle-platform
chef-12.13.37 tasks/bin/bundle-platform
chef-12.13.30 tasks/bin/bundle-platform
chef-12.13.30-universal-mingw32 tasks/bin/bundle-platform
chef-12.12.15-universal-mingw32 tasks/bin/bundle-platform
chef-12.12.15 tasks/bin/bundle-platform
chef-12.12.13 tasks/bin/bundle-platform
chef-12.12.13-universal-mingw32 tasks/bin/bundle-platform
chef-12.11.18-universal-mingw32 tasks/bin/bundle-platform
chef-12.11.18 tasks/bin/bundle-platform